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: translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0009908/0.0009909, allocations: 88.17 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 177.2 kB / 16.58 MB, free: 6.852 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.405/1.405, allocations: 223.3 MB / 240.6 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7684/0.7684, allocations: 115.5 MB / 407.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003359/0.0003359, allocations: 9.438 kB / 495.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1573, allocations: 77.53 MB / 0.5593 GB, free: 9.434 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002058/0.1594, allocations: 1.608 MB / 0.5609 GB, free: 7.812 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.1606, allocations: 0.6551 MB / 0.5615 GB, free: 7.152 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.717e-05/0.1607, allocations: 3.938 kB / 0.5615 GB, free: 7.148 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.1609, allocations: 71.77 kB / 0.5616 GB, free: 7.078 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.161, allocations: 79.7 kB / 0.5617 GB, free: 7 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004833/0.1615, allocations: 131.8 kB / 0.5618 GB, free: 6.871 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002487/0.1618, allocations: 219.4 kB / 0.562 GB, free: 6.656 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.1619, allocations: 61.64 kB / 0.5621 GB, free: 6.598 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.162, allocations: 79.69 kB / 0.5622 GB, free: 6.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001853/0.1622, allocations: 123.6 kB / 0.5623 GB, free: 6.398 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.1623, allocations: 4 kB / 0.5623 GB, free: 6.395 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.1624, allocations: 75.88 kB / 0.5623 GB, free: 6.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.593e-05/0.1625, allocations: 39.83 kB / 0.5624 GB, free: 6.281 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.286e-05/0.1625, allocations: 61.58 kB / 0.5624 GB, free: 6.215 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002313/0.1628, allocations: 211.8 kB / 0.5626 GB, free: 6.008 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.1628, allocations: 11.94 kB / 0.5627 GB, free: 5.996 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1628, allocations: 0 / 0.5627 GB, free: 5.996 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.1628, allocations: 0 / 0.5627 GB, free: 5.996 MB / 430.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.0007946/0.1636, allocations: 0.5429 MB / 0.5632 GB, free: 5.398 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.1637, allocations: 8.031 kB / 0.5632 GB, free: 5.391 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.328e-05/0.1637, allocations: 31.62 kB / 0.5632 GB, free: 5.359 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.1642, allocations: 297.6 kB / 0.5635 GB, free: 5.031 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.1642, allocations: 12 kB / 0.5635 GB, free: 5.02 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.429e-05/0.1643, allocations: 19.95 kB / 0.5635 GB, free: 5 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.1646, allocations: 227.1 kB / 0.5638 GB, free: 4.754 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1647, allocations: 0 / 0.5638 GB, free: 4.754 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.1647, allocations: 4 kB / 0.5638 GB, free: 4.75 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1647, allocations: 4 kB / 0.5638 GB, free: 4.746 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002402/0.1649, allocations: 140.3 kB / 0.5639 GB, free: 4.609 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008361/0.1658, allocations: 0.6924 MB / 0.5646 GB, free: 3.859 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.1662, allocations: 182.6 kB / 0.5647 GB, free: 3.672 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.1663, allocations: 103.7 kB / 0.5648 GB, free: 3.57 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.716e-05/0.1664, allocations: 7.938 kB / 0.5649 GB, free: 3.562 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.1667, allocations: 174.9 kB / 0.565 GB, free: 3.375 MB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.1667, allocations: 0 / 0.565 GB, free: 3.375 MB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006505/0.1673, allocations: 375 kB / 0.5654 GB, free: 2.996 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.1674, allocations: 136.5 kB / 0.5655 GB, free: 2.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/0.1677, allocations: 286.6 kB / 0.5658 GB, free: 2.547 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.1677, allocations: 29.7 kB / 0.5658 GB, free: 2.512 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1678, allocations: 156.2 kB / 0.566 GB, free: 2.352 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.108e-05/0.1679, allocations: 47.38 kB / 0.566 GB, free: 2.305 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/0.1679, allocations: 4 kB / 0.566 GB, free: 2.301 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.168, allocations: 338.8 kB / 0.5663 GB, free: 1.961 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.1682, allocations: 92.08 kB / 0.5664 GB, free: 1.871 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/0.1684, allocations: 137.4 kB / 0.5665 GB, free: 1.719 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.1686, allocations: 119.7 kB / 0.5667 GB, free: 1.598 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1686, allocations: 4 kB / 0.5667 GB, free: 1.594 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004704/0.1691, allocations: 331 kB / 0.567 GB, free: 1.258 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.1691, allocations: 39.58 kB / 0.567 GB, free: 1.215 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1691, allocations: 96 / 0.567 GB, free: 1.215 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1691, allocations: 19.88 kB / 0.567 GB, free: 1.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.1693, allocations: 23.98 kB / 0.5671 GB, free: 1.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.1693, allocations: 0 / 0.5671 GB, free: 1.172 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.1694, allocations: 27.83 kB / 0.5671 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.1694, allocations: 8 kB / 0.5671 GB, free: 1.137 MB / 430.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 ($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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.1696, allocations: 192.3 kB / 0.5673 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.1696, allocations: 23.72 kB / 0.5673 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.408e-05/0.1697, allocations: 33.83 kB / 0.5673 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1697, allocations: 7.938 kB / 0.5673 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1697, allocations: 0 / 0.5673 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.1697, allocations: 7.984 kB / 0.5673 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.17, allocations: 281.5 kB / 0.5676 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.17, allocations: 0 / 0.5676 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.1701, allocations: 19.98 kB / 0.5676 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1701, allocations: 4 kB / 0.5676 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.1701, allocations: 7.984 kB / 0.5676 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.1701, allocations: 0 / 0.5676 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1701, allocations: 3.953 kB / 0.5677 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006513/0.1708, allocations: 487.2 kB / 0.5681 GB, free: 4 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.09e-05/0.1709, allocations: 100.8 kB / 0.5682 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.1709, allocations: 8.188 kB / 0.5682 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.171, allocations: 15.98 kB / 0.5682 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.232e-05/0.1711, allocations: 27.89 kB / 0.5683 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.483e-05/0.1712, allocations: 7.953 kB / 0.5683 GB, free: 15.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1713, allocations: 210 kB / 0.5685 GB, free: 15.63 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1714, allocations: 0 / 0.5685 GB, free: 15.63 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.1716, allocations: 60.06 kB / 0.5685 GB, free: 15.57 MB / 446.1 MB 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 (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.0001879/0.1718, allocations: 127.2 kB / 0.5686 GB, free: 15.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004522/0.1723, allocations: 295.4 kB / 0.5689 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1723, allocations: 0 / 0.5689 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002278/0.1725, allocations: 187.3 kB / 0.5691 GB, free: 14.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.1728, allocations: 38.36 kB / 0.5691 GB, free: 14.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009529/0.1738, allocations: 0.5182 MB / 0.5697 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003637/0.1742, allocations: 0.7558 MB / 0.5704 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.326e-05/0.1743, allocations: 17.55 kB / 0.5704 GB, free: 13.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.1743, allocations: 15.44 kB / 0.5704 GB, free: 13.55 MB / 446.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1743, allocations: 0 / 0.5704 GB, free: 13.55 MB / 446.1 MB Notification: Performance of Templates: time 0.00634/0.1807, allocations: 2.452 MB / 0.5728 GB, free: 11.12 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (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 & ./IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)