Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001628, allocations: 104.9 kB / 16.4 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001824/0.001824, allocations: 192 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8261/0.8261, allocations: 126.7 MB / 417.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 73.33 kB / 0.5735 GB, free: 27.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.16, allocations: 78.86 MB / 0.6505 GB, free: 3.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003325/0.1633, allocations: 1.941 MB / 0.6524 GB, free: 1.652 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001328/0.1647, allocations: 0.717 MB / 0.6531 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001139/0.1648, allocations: 4 kB / 0.6531 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002604/0.1651, allocations: 79.62 kB / 0.6532 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001483/0.1653, allocations: 95.56 kB / 0.6533 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006108/0.1659, allocations: 188.3 kB / 0.6535 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003419/0.1662, allocations: 267.4 kB / 0.6537 GB, free: 324 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.1664, allocations: 73.81 kB / 0.6538 GB, free: 252 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.1666, allocations: 111.7 kB / 0.6539 GB, free: 140 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002396/0.1668, allocations: 159.5 kB / 0.6541 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.402e-05/0.1669, allocations: 20 kB / 0.6541 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.1671, allocations: 91.92 kB / 0.6542 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.052e-05/0.1672, allocations: 55.75 kB / 0.6542 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.1673, allocations: 107.3 kB / 0.6543 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1677, allocations: 310.8 kB / 0.6546 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1677, allocations: 0 / 0.6546 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.593e-06/0.1677, allocations: 0 / 0.6546 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.1677, allocations: 0 / 0.6546 GB, free: 15.41 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009162/0.1687, allocations: 0.5946 MB / 0.6552 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.1687, allocations: 8.625 kB / 0.6552 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.024e-05/0.1688, allocations: 50.73 kB / 0.6553 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.956e-05/0.1688, allocations: 28.75 kB / 0.6553 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005576/0.1694, allocations: 307.1 kB / 0.6556 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.1694, allocations: 19.94 kB / 0.6556 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.668e-05/0.1695, allocations: 12 kB / 0.6556 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.1699, allocations: 227.1 kB / 0.6558 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1699, allocations: 4 kB / 0.6558 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.17, allocations: 4 kB / 0.6558 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.17, allocations: 4 kB / 0.6558 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.1702, allocations: 128.3 kB / 0.656 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009421/0.1712, allocations: 0.6886 MB / 0.6566 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003877/0.1716, allocations: 162.6 kB / 0.6568 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.1718, allocations: 100.8 kB / 0.6569 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.31e-05/0.1718, allocations: 3.938 kB / 0.6569 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.1721, allocations: 173.1 kB / 0.6571 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.984e-06/0.1721, allocations: 4 kB / 0.6571 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0007236/0.1729, allocations: 370.2 kB / 0.6574 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.173, allocations: 136.5 kB / 0.6575 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.1733, allocations: 278.7 kB / 0.6578 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.1733, allocations: 37.69 kB / 0.6578 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.1735, allocations: 156.3 kB / 0.658 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.1735, allocations: 51.58 kB / 0.658 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.994e-05/0.1736, allocations: 41.7 kB / 0.6581 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1738, allocations: 338.8 kB / 0.6584 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.174, allocations: 83.91 kB / 0.6585 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.1742, allocations: 143.1 kB / 0.6586 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003611/0.1746, allocations: 235.6 kB / 0.6588 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1746, allocations: 0 / 0.6588 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005404/0.1751, allocations: 337 kB / 0.6592 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.582e-05/0.1752, allocations: 39.58 kB / 0.6592 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1752, allocations: 4 kB / 0.6592 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.1752, allocations: 3.984 kB / 0.6592 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.1754, allocations: 23.92 kB / 0.6592 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.1754, allocations: 7.938 kB / 0.6592 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.1755, allocations: 31.83 kB / 0.6593 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.1755, allocations: 8.094 kB / 0.6593 GB, free: 10.29 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001936/0.1757, allocations: 188.3 kB / 0.6595 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.1758, allocations: 23.86 kB / 0.6595 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.289e-05/0.1759, allocations: 29.83 kB / 0.6595 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1759, allocations: 4 kB / 0.6595 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.1759, allocations: 3.938 kB / 0.6595 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1759, allocations: 0 / 0.6595 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002941/0.1762, allocations: 289.4 kB / 0.6598 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1762, allocations: 7.938 kB / 0.6598 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.1763, allocations: 15.98 kB / 0.6598 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.1763, allocations: 0 / 0.6598 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.1763, allocations: 4 kB / 0.6598 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1763, allocations: 4 kB / 0.6598 GB, free: 9.672 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/0.1764, allocations: 7.922 kB / 0.6598 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007857/0.1771, allocations: 470.4 kB / 0.6603 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.405e-05/0.1772, allocations: 96.94 kB / 0.6604 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.319e-05/0.1773, allocations: 16.11 kB / 0.6604 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.883e-05/0.1774, allocations: 8 kB / 0.6604 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.1e-05/0.1775, allocations: 35.83 kB / 0.6604 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.1775, allocations: 8 kB / 0.6604 GB, free: 9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002003/0.1777, allocations: 205.9 kB / 0.6606 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1777, allocations: 0 / 0.6606 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002786/0.178, allocations: 55.89 kB / 0.6607 GB, free: 8.746 MB / 0.4981 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001186/0.1792, allocations: 1.02 MB / 0.6617 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005208/0.1797, allocations: 303.4 kB / 0.662 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1797, allocations: 0 / 0.662 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.18, allocations: 183.3 kB / 0.6622 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.1803, allocations: 36.48 kB / 0.6622 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003688/0.184, allocations: 2.782 MB / 0.6649 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.1844, allocations: 0.7514 MB / 0.6656 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.592e-05/0.1845, allocations: 21.55 kB / 0.6657 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.1846, allocations: 71.41 kB / 0.6657 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of SimCode: time 5.41e-07/0.1846, allocations: 0 / 0.6657 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02919/0.2138, allocations: 5.396 MB / 0.671 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.154/8.368, allocations: 8.625 kB / 0.671 GB, free: 14.09 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)