Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004994/0.004994, allocations: 102 kB / 15.73 MB, free: 6.051 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.001132/0.001132, allocations: 195 kB / 16.68 MB, free: 5.969 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.285/1.285, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002012/0.002012, allocations: 282.8 kB / 290.8 MB, free: 1.766 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9102/0.9102, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 99.83 kB / 0.6814 GB, free: 15.5 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1579, allocations: 86.98 MB / 0.7664 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002903/0.1608, allocations: 1.944 MB / 0.7683 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.162, allocations: 0.705 MB / 0.769 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1622, allocations: 4 kB / 0.769 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002024/0.1624, allocations: 83.64 kB / 0.7691 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.1625, allocations: 95.56 kB / 0.7691 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.1631, allocations: 191.2 kB / 0.7693 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000303/0.1634, allocations: 263.4 kB / 0.7696 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001529/0.1636, allocations: 77.62 kB / 0.7696 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001566/0.1637, allocations: 119.6 kB / 0.7698 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.1639, allocations: 151.5 kB / 0.7699 GB, free: 4.809 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.863e-05/0.164, allocations: 20 kB / 0.7699 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.1641, allocations: 95.92 kB / 0.77 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.584e-05/0.1642, allocations: 55.84 kB / 0.7701 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.61e-05/0.1643, allocations: 111.3 kB / 0.7702 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003343/0.1647, allocations: 307 kB / 0.7705 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1647, allocations: 4 kB / 0.7705 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.794e-06/0.1647, allocations: 4 kB / 0.7705 GB, free: 4.223 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.1647, allocations: 0 / 0.7705 GB, free: 4.223 MB / 0.5606 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.0007687/0.1655, allocations: 0.5857 MB / 0.7711 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1655, allocations: 16.02 kB / 0.7711 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.455e-05/0.1656, allocations: 24.66 kB / 0.7711 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.166, allocations: 302.8 kB / 0.7714 GB, free: 3.211 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.166, allocations: 16.38 kB / 0.7714 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.188e-05/0.1661, allocations: 16.38 kB / 0.7714 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.1664, allocations: 219.3 kB / 0.7716 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1665, allocations: 0 / 0.7716 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1665, allocations: 4 kB / 0.7716 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1665, allocations: 4 kB / 0.7716 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002326/0.1667, allocations: 136.3 kB / 0.7718 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007661/0.1675, allocations: 0.673 MB / 0.7724 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.1678, allocations: 166.5 kB / 0.7726 GB, free: 1.898 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.168, allocations: 105 kB / 0.7727 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.168, allocations: 0 / 0.7727 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000252/0.1683, allocations: 169.1 kB / 0.7728 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.1683, allocations: 4 kB / 0.7728 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15): time 0.0006153/0.1689, allocations: 385.2 kB / 0.7732 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.169, allocations: 132.5 kB / 0.7733 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000246/0.1692, allocations: 282.6 kB / 0.7736 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.1693, allocations: 37.64 kB / 0.7736 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.21e-05/0.1694, allocations: 152.2 kB / 0.7738 GB, free: 0.5859 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.483e-05/0.1694, allocations: 47.44 kB / 0.7738 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.512e-05/0.1695, allocations: 45.7 kB / 0.7739 GB, free: 500 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1696, allocations: 330.8 kB / 0.7742 GB, free: 160 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.1698, allocations: 91.89 kB / 0.7743 GB, free: 68 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3072/0.477, allocations: 123.1 kB / 0.7744 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003951/0.4774, allocations: 242.6 kB / 0.7746 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.4774, allocations: 0 / 0.7746 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005712/0.478, allocations: 335.4 kB / 0.7749 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.478, allocations: 42.44 kB / 0.775 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.478, allocations: 1.422 kB / 0.775 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.4781, allocations: 1.531 kB / 0.775 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.4782, allocations: 23.45 kB / 0.775 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.4782, allocations: 6.703 kB / 0.775 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.4784, allocations: 24.19 kB / 0.775 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.4784, allocations: 6.594 kB / 0.775 GB, free: 14.72 MB / 0.5606 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.0001751/0.4786, allocations: 191.8 kB / 0.7752 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.4786, allocations: 27.41 kB / 0.7753 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.403e-05/0.4787, allocations: 30.61 kB / 0.7753 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.4787, allocations: 1.438 kB / 0.7753 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4787, allocations: 1.031 kB / 0.7753 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.4787, allocations: 4.266 kB / 0.7753 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002271/0.4789, allocations: 286.8 kB / 0.7756 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.4789, allocations: 0 / 0.7756 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.479, allocations: 17.2 kB / 0.7756 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.4791, allocations: 1.75 kB / 0.7756 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.4791, allocations: 7.672 kB / 0.7756 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.4791, allocations: 2.188 kB / 0.7756 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4791, allocations: 0.5625 kB / 0.7756 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006531/0.4797, allocations: 468.1 kB / 0.776 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.4798, allocations: 103.2 kB / 0.7761 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.4798, allocations: 5.125 kB / 0.7761 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001028/0.48, allocations: 15.88 kB / 0.7762 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.636e-05/0.48, allocations: 29.44 kB / 0.7762 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.4801, allocations: 10.94 kB / 0.7762 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001733/0.4802, allocations: 200.3 kB / 0.7764 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.12e-07/0.4802, allocations: 0.875 kB / 0.7764 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002816/0.4805, allocations: 67.19 kB / 0.7764 GB, free: 14.11 MB / 0.5606 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.0001715/0.4807, allocations: 130.8 kB / 0.7766 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000457/0.4812, allocations: 291.4 kB / 0.7769 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4812, allocations: 2.875 kB / 0.7769 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002102/0.4814, allocations: 188.4 kB / 0.777 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.4817, allocations: 35.78 kB / 0.7771 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008666/0.4826, allocations: 469.2 kB / 0.7775 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.4828, allocations: 0.7528 MB / 0.7783 GB, free: 13 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.176e-05/0.4828, allocations: 19.56 kB / 0.7783 GB, free: 13 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.418e-05/0.4829, allocations: 19.05 kB / 0.7783 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.4829, allocations: 3.609 kB / 0.7783 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of Templates: time 0.006297/0.4892, allocations: 2.914 MB / 0.7811 GB, free: 12.84 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)