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.001366/0.001365, allocations: 111.3 kB / 16.41 MB, free: 6.496 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.001183/0.001183, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.399/1.399, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.778/0.778, allocations: 122.9 MB / 414.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 71.67 kB / 0.5679 GB, free: 29.13 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1497, allocations: 77.93 MB / 0.644 GB, free: 9.668 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003524/0.1533, allocations: 1.929 MB / 0.6459 GB, free: 7.727 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001348/0.1547, allocations: 0.7167 MB / 0.6466 GB, free: 7.004 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001321/0.1548, allocations: 4 kB / 0.6466 GB, free: 7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002658/0.1551, allocations: 83.62 kB / 0.6467 GB, free: 6.918 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.1553, allocations: 95.58 kB / 0.6468 GB, free: 6.824 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006201/0.1559, allocations: 186.9 kB / 0.647 GB, free: 6.645 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003228/0.1562, allocations: 271.3 kB / 0.6472 GB, free: 6.379 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.1564, allocations: 78.06 kB / 0.6473 GB, free: 6.305 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001405/0.1565, allocations: 115.7 kB / 0.6474 GB, free: 6.191 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.1568, allocations: 151.5 kB / 0.6476 GB, free: 6.043 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.799e-05/0.1568, allocations: 20 kB / 0.6476 GB, free: 6.023 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.157, allocations: 87.94 kB / 0.6477 GB, free: 5.938 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.126e-05/0.157, allocations: 63.81 kB / 0.6477 GB, free: 5.875 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.1572, allocations: 111.3 kB / 0.6478 GB, free: 5.766 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003905/0.1576, allocations: 306.8 kB / 0.6481 GB, free: 5.465 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1576, allocations: 4 kB / 0.6481 GB, free: 5.461 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1576, allocations: 0 / 0.6481 GB, free: 5.461 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.1576, allocations: 0 / 0.6481 GB, free: 5.461 MB / 494.1 MB 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.0008922/0.1585, allocations: 0.5894 MB / 0.6487 GB, free: 4.816 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.1586, allocations: 12.62 kB / 0.6487 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.518e-05/0.1586, allocations: 50.67 kB / 0.6488 GB, free: 4.746 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.642e-05/0.1587, allocations: 32.75 kB / 0.6488 GB, free: 4.715 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004954/0.1592, allocations: 295.1 kB / 0.6491 GB, free: 4.387 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.1592, allocations: 16.38 kB / 0.6491 GB, free: 4.371 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.1593, allocations: 20.38 kB / 0.6491 GB, free: 4.352 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003754/0.1596, allocations: 219.1 kB / 0.6493 GB, free: 4.113 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.1597, allocations: 0 / 0.6493 GB, free: 4.113 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.1597, allocations: 8 kB / 0.6493 GB, free: 4.105 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1597, allocations: 0 / 0.6493 GB, free: 4.105 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.16, allocations: 140.3 kB / 0.6495 GB, free: 3.969 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000798/0.1608, allocations: 0.6847 MB / 0.6501 GB, free: 3.227 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.1611, allocations: 166.5 kB / 0.6503 GB, free: 3.055 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.1613, allocations: 96.95 kB / 0.6504 GB, free: 2.957 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.1613, allocations: 4 kB / 0.6504 GB, free: 2.953 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002672/0.1616, allocations: 169.1 kB / 0.6506 GB, free: 2.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1616, allocations: 4 kB / 0.6506 GB, free: 2.766 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006683/0.1623, allocations: 369.5 kB / 0.6509 GB, free: 2.395 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.1624, allocations: 136.5 kB / 0.651 GB, free: 2.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002691/0.1627, allocations: 286.6 kB / 0.6513 GB, free: 1.938 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.1627, allocations: 29.7 kB / 0.6513 GB, free: 1.902 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1628, allocations: 164.3 kB / 0.6515 GB, free: 1.738 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.1629, allocations: 39.62 kB / 0.6515 GB, free: 1.699 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.77e-05/0.163, allocations: 45.7 kB / 0.6516 GB, free: 1.648 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1631, allocations: 342.8 kB / 0.6519 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.1633, allocations: 84.05 kB / 0.652 GB, free: 1.223 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.1635, allocations: 129.6 kB / 0.6521 GB, free: 1.078 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003287/0.1638, allocations: 243.6 kB / 0.6523 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1638, allocations: 0 / 0.6523 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004705/0.1643, allocations: 340.9 kB / 0.6527 GB, free: 484 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.839e-05/0.1643, allocations: 41.78 kB / 0.6527 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1643, allocations: 0 / 0.6527 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.1644, allocations: 0 / 0.6527 GB, free: 436 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.1645, allocations: 31.92 kB / 0.6527 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1645, allocations: 0 / 0.6527 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001174/0.1646, allocations: 23.88 kB / 0.6528 GB, free: 380 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.1647, allocations: 4 kB / 0.6528 GB, free: 376 kB / 494.1 MB 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.0001654/0.1648, allocations: 204 kB / 0.653 GB, free: 156 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.607e-05/0.1649, allocations: 23.86 kB / 0.653 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.798e-05/0.1649, allocations: 29.83 kB / 0.653 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.1649, allocations: 0 / 0.653 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1649, allocations: 0 / 0.653 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1649, allocations: 0 / 0.653 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002538/0.1652, allocations: 297.3 kB / 0.6533 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1652, allocations: 0 / 0.6533 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-05/0.1653, allocations: 12 kB / 0.6533 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.1653, allocations: 4 kB / 0.6533 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.833e-05/0.1653, allocations: 7.984 kB / 0.6533 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1654, allocations: 12 kB / 0.6533 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1654, allocations: 0 / 0.6533 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007093/0.1661, allocations: 466.3 kB / 0.6538 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.245e-05/0.1662, allocations: 116.8 kB / 0.6539 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.1662, allocations: 4 kB / 0.6539 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.1663, allocations: 20.05 kB / 0.6539 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.463e-05/0.1664, allocations: 19.97 kB / 0.6539 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.1664, allocations: 11.98 kB / 0.6539 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001798/0.1666, allocations: 198 kB / 0.6541 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1666, allocations: 4 kB / 0.6541 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002678/0.1669, allocations: 55.88 kB / 0.6542 GB, free: 14.81 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.001042/0.168, allocations: 1.024 MB / 0.6552 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004927/0.1685, allocations: 295.3 kB / 0.6555 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1685, allocations: 4 kB / 0.6555 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002532/0.1687, allocations: 191.7 kB / 0.6557 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.1691, allocations: 34.09 kB / 0.6557 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003495/0.1726, allocations: 2.781 MB / 0.6584 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003169/0.1729, allocations: 0.7514 MB / 0.6591 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.057e-05/0.173, allocations: 17.55 kB / 0.6592 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.1731, allocations: 75.41 kB / 0.6592 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1731, allocations: 0 / 0.6592 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.1968, allocations: 5.404 MB / 0.6645 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.692/7.889, allocations: 3.781 kB / 0.6645 GB, free: 4.148 MB / 0.4981 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)