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.001016/0.001016, allocations: 115.4 kB / 17.08 MB, free: 6.008 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.0009763/0.0009763, allocations: 196.7 kB / 18.02 MB, free: 5.086 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.254/1.254, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6906/0.6906, allocations: 115.3 MB / 407.2 MB, free: 6.211 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 62.45 kB / 0.5583 GB, free: 32.29 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.147, allocations: 76.18 MB / 0.6327 GB, free: 4.441 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00376/0.1509, allocations: 1.946 MB / 0.6346 GB, free: 2.477 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1521, allocations: 0.709 MB / 0.6353 GB, free: 1.762 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.1522, allocations: 4 kB / 0.6353 GB, free: 1.758 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002328/0.1525, allocations: 83.64 kB / 0.6354 GB, free: 1.676 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001169/0.1526, allocations: 91.62 kB / 0.6355 GB, free: 1.586 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005601/0.1532, allocations: 190.3 kB / 0.6357 GB, free: 1.402 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002983/0.1535, allocations: 259.5 kB / 0.6359 GB, free: 1.148 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.1537, allocations: 77.75 kB / 0.636 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.1538, allocations: 115.7 kB / 0.6361 GB, free: 0.9609 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.154, allocations: 151.5 kB / 0.6362 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.778e-05/0.1541, allocations: 20 kB / 0.6363 GB, free: 0.793 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.1542, allocations: 99.86 kB / 0.6363 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.11e-05/0.1543, allocations: 59.83 kB / 0.6364 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.1544, allocations: 107.3 kB / 0.6365 GB, free: 0.5312 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003287/0.1547, allocations: 303 kB / 0.6368 GB, free: 240 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.1548, allocations: 0 / 0.6368 GB, free: 240 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1548, allocations: 4 kB / 0.6368 GB, free: 236 kB / 478.1 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.1548, allocations: 0 / 0.6368 GB, free: 236 kB / 478.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.0008509/0.1556, allocations: 0.5818 MB / 0.6374 GB, free: 15.59 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1557, allocations: 12.03 kB / 0.6374 GB, free: 15.58 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.561e-05/0.1558, allocations: 28.56 kB / 0.6374 GB, free: 15.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004896/0.1563, allocations: 302.9 kB / 0.6377 GB, free: 15.22 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.1563, allocations: 20.36 kB / 0.6377 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.1563, allocations: 12.38 kB / 0.6377 GB, free: 15.19 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.1567, allocations: 231.7 kB / 0.6379 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1567, allocations: 0 / 0.6379 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.584e-05/0.1567, allocations: 4 kB / 0.6379 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1568, allocations: 4 kB / 0.638 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.157, allocations: 132.3 kB / 0.6381 GB, free: 14.8 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007805/0.1578, allocations: 0.6769 MB / 0.6387 GB, free: 14.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/0.1581, allocations: 178.3 kB / 0.6389 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.1583, allocations: 96.95 kB / 0.639 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.1583, allocations: 0 / 0.639 GB, free: 13.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002534/0.1586, allocations: 169 kB / 0.6392 GB, free: 13.6 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.1586, allocations: 8 kB / 0.6392 GB, free: 13.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006354/0.1592, allocations: 367 kB / 0.6395 GB, free: 13.22 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/0.1593, allocations: 136.5 kB / 0.6397 GB, free: 13.06 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002503/0.1596, allocations: 282.6 kB / 0.6399 GB, free: 12.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.1596, allocations: 33.7 kB / 0.64 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.1597, allocations: 156.2 kB / 0.6401 GB, free: 12.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.157e-05/0.1598, allocations: 43.44 kB / 0.6401 GB, free: 12.54 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.755e-05/0.1599, allocations: 49.64 kB / 0.6402 GB, free: 12.48 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.16, allocations: 334.8 kB / 0.6405 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001514/0.1601, allocations: 87.89 kB / 0.6406 GB, free: 12.06 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1603, allocations: 134.9 kB / 0.6407 GB, free: 11.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003085/0.1606, allocations: 240.7 kB / 0.641 GB, free: 11.65 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1607, allocations: 0 / 0.641 GB, free: 11.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004693/0.1611, allocations: 331.6 kB / 0.6413 GB, free: 11.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.115e-05/0.1612, allocations: 45.78 kB / 0.6413 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.1612, allocations: 4 kB / 0.6413 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1612, allocations: 0 / 0.6413 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.1613, allocations: 19.98 kB / 0.6413 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1614, allocations: 7.938 kB / 0.6413 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.1615, allocations: 31.83 kB / 0.6414 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.1615, allocations: 4 kB / 0.6414 GB, free: 11.2 MB / 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.0001647/0.1617, allocations: 193.5 kB / 0.6416 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.631e-05/0.1617, allocations: 27.7 kB / 0.6416 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.247e-05/0.1618, allocations: 25.84 kB / 0.6416 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.1618, allocations: 4 kB / 0.6416 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1618, allocations: 0 / 0.6416 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.289e-06/0.1618, allocations: 3.984 kB / 0.6416 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002358/0.162, allocations: 293.3 kB / 0.6419 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.162, allocations: 3.984 kB / 0.6419 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.1622, allocations: 15.94 kB / 0.6419 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1622, allocations: 0 / 0.6419 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.1622, allocations: 15.98 kB / 0.6419 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1622, allocations: 0 / 0.6419 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1622, allocations: 0 / 0.6419 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006554/0.1629, allocations: 461.2 kB / 0.6424 GB, free: 10.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.14e-05/0.1629, allocations: 100.9 kB / 0.6425 GB, free: 9.969 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.163, allocations: 15.94 kB / 0.6425 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.915e-05/0.1631, allocations: 15.98 kB / 0.6425 GB, free: 9.938 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.1632, allocations: 31.91 kB / 0.6425 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.1632, allocations: 7.984 kB / 0.6425 GB, free: 9.898 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001708/0.1634, allocations: 205.9 kB / 0.6427 GB, free: 9.699 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1634, allocations: 0 / 0.6427 GB, free: 9.699 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002581/0.1636, allocations: 60.03 kB / 0.6428 GB, free: 9.641 MB / 494.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 (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.0001771/0.1638, allocations: 138.3 kB / 0.6429 GB, free: 9.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004513/0.1643, allocations: 287.2 kB / 0.6432 GB, free: 9.207 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1643, allocations: 0 / 0.6432 GB, free: 9.207 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002227/0.1645, allocations: 187.3 kB / 0.6434 GB, free: 9.012 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.1648, allocations: 30.11 kB / 0.6434 GB, free: 8.984 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009234/0.1657, allocations: 0.4953 MB / 0.6439 GB, free: 8.449 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.1661, allocations: 0.7549 MB / 0.6446 GB, free: 7.672 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.845e-05/0.1661, allocations: 19.44 kB / 0.6446 GB, free: 7.652 MB / 494.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1661, allocations: 0 / 0.6446 GB, free: 7.652 MB / 494.1 MB Notification: Performance of Templates: time 0.004703/0.1708, allocations: 3.047 MB / 0.6476 GB, free: 4.609 MB / 494.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)