Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.275/4.275, allocations: 432.6 MB / 445.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.083e-05/4.111e-05, allocations: 3.547 kB / 0.5383 GB, free: 10.31 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3007, allocations: 98.73 MB / 0.6347 GB, free: 1.922 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3253/0.6261, allocations: 127.2 MB / 0.7589 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000406/0.6266, allocations: 83.94 kB / 0.759 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03419/0.6608, allocations: 5.613 MB / 0.7645 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.054e-06/0.6609, allocations: 0 / 0.7645 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.867e-05/0.6609, allocations: 4 kB / 0.7645 GB, free: 12.86 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001594/0.6625, allocations: 0.5505 MB / 0.765 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 7.125e-05/0.6626, allocations: 8.031 kB / 0.765 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.6628, allocations: 50.48 kB / 0.7651 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.6629, allocations: 31.67 kB / 0.7651 GB, free: 12.15 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007829/0.6637, allocations: 281.8 kB / 0.7654 GB, free: 11.84 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.699e-05/0.6638, allocations: 8.234 kB / 0.7654 GB, free: 11.83 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.559e-05/0.6638, allocations: 16 kB / 0.7654 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007201/0.6646, allocations: 209.6 kB / 0.7656 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.6646, allocations: 3.984 kB / 0.7656 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/0.6647, allocations: 8 kB / 0.7656 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.6647, allocations: 4 kB / 0.7656 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004907/0.6652, allocations: 128.4 kB / 0.7657 GB, free: 11.46 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.6669, allocations: 0.5632 MB / 0.7663 GB, free: 10.84 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00051/0.6674, allocations: 150.6 kB / 0.7664 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003189/0.6677, allocations: 100.9 kB / 0.7665 GB, free: 10.59 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.6678, allocations: 8.016 kB / 0.7665 GB, free: 10.58 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004767/0.6683, allocations: 177 kB / 0.7667 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 3.076e-06/0.6683, allocations: 0 / 0.7667 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0009921/0.6693, allocations: 256.6 kB / 0.7669 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/0.6694, allocations: 140.5 kB / 0.7671 GB, free: 9.953 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000479/0.6699, allocations: 234.9 kB / 0.7673 GB, free: 9.719 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.794e-05/0.67, allocations: 29.7 kB / 0.7673 GB, free: 9.684 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001936/0.6702, allocations: 148.3 kB / 0.7675 GB, free: 9.535 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.283e-05/0.6703, allocations: 39.45 kB / 0.7675 GB, free: 9.496 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/0.6704, allocations: 4 kB / 0.7675 GB, free: 9.492 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000184/0.6706, allocations: 338.8 kB / 0.7678 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003157/0.6709, allocations: 87.97 kB / 0.7679 GB, free: 9.066 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000374/0.6713, allocations: 123.4 kB / 0.768 GB, free: 8.934 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.6717, allocations: 112.2 kB / 0.7681 GB, free: 8.82 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.6717, allocations: 3.984 kB / 0.7681 GB, free: 8.816 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000966/0.6727, allocations: 282.9 kB / 0.7684 GB, free: 8.527 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 7e-05/0.6728, allocations: 40.34 kB / 0.7685 GB, free: 8.484 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.6728, allocations: 0 / 0.7685 GB, free: 8.484 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.6728, allocations: 4.062 kB / 0.7685 GB, free: 8.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.6731, allocations: 31.94 kB / 0.7685 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.6732, allocations: 0 / 0.7685 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003916/0.6736, allocations: 39.83 kB / 0.7685 GB, free: 8.41 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.878e-05/0.6737, allocations: 15.92 kB / 0.7685 GB, free: 8.395 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002029/0.6739, allocations: 154.7 kB / 0.7687 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.31e-05/0.674, allocations: 23.72 kB / 0.7687 GB, free: 8.207 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.851e-05/0.6741, allocations: 25.95 kB / 0.7687 GB, free: 8.184 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.6741, allocations: 4 kB / 0.7687 GB, free: 8.18 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.6741, allocations: 3.953 kB / 0.7687 GB, free: 8.176 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.6741, allocations: 0 / 0.7687 GB, free: 8.176 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005458/0.6747, allocations: 297.4 kB / 0.769 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.6747, allocations: 0 / 0.769 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002547/0.675, allocations: 23.98 kB / 0.7691 GB, free: 7.812 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.675, allocations: 0 / 0.7691 GB, free: 7.812 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-05/0.6751, allocations: 8 kB / 0.7691 GB, free: 7.805 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.6751, allocations: 0 / 0.7691 GB, free: 7.805 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.6751, allocations: 4 kB / 0.7691 GB, free: 7.801 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.6766, allocations: 451.7 kB / 0.7695 GB, free: 7.336 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.6767, allocations: 100.9 kB / 0.7696 GB, free: 7.219 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.247e-05/0.6768, allocations: 8.062 kB / 0.7696 GB, free: 7.211 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/0.6772, allocations: 35.97 kB / 0.7696 GB, free: 7.176 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.6774, allocations: 24.14 kB / 0.7697 GB, free: 7.152 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.978e-05/0.6774, allocations: 8 kB / 0.7697 GB, free: 7.145 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0003691/0.6778, allocations: 199 kB / 0.7699 GB, free: 6.953 MB / 0.6511 GB Notification: Performance of sort global known variables: time 9.02e-07/0.6778, allocations: 4 kB / 0.7699 GB, free: 6.949 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006627/0.6785, allocations: 63.89 kB / 0.7699 GB, free: 6.887 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001582/0.6801, allocations: 0.9379 MB / 0.7708 GB, free: 5.914 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0007048/0.6808, allocations: 263.4 kB / 0.7711 GB, free: 5.645 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.6809, allocations: 7.938 kB / 0.7711 GB, free: 5.637 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.6813, allocations: 175.3 kB / 0.7713 GB, free: 5.453 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004583/0.6817, allocations: 24.55 kB / 0.7713 GB, free: 5.43 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.6838, allocations: 417.8 kB / 0.7717 GB, free: 4.98 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005112/0.6843, allocations: 0.7545 MB / 0.7724 GB, free: 4.199 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001686/0.6845, allocations: 21.19 kB / 0.7724 GB, free: 4.18 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.6847, allocations: 67.41 kB / 0.7725 GB, free: 4.113 MB / 0.6511 GB Notification: Performance of SimCode: time 1.513e-06/0.6847, allocations: 0 / 0.7725 GB, free: 4.113 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5816/1.266, allocations: 4.584 MB / 0.777 GB, free: 139.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002372/1.267, allocations: 154.6 kB / 0.7771 GB, free: 139.4 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.574/3.841, allocations: 0 / 0.7771 GB, free: 139.4 MB / 0.6511 GB