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.001021/0.001021, allocations: 108 kB / 16.41 MB, free: 6.48 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.001009/0.001009, allocations: 193.8 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.255/1.255, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6877/0.6877, allocations: 115.3 MB / 406.5 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 64.67 kB / 0.5577 GB, free: 32.2 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1504, allocations: 76.18 MB / 0.6321 GB, free: 4.41 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003099/0.1536, allocations: 1.934 MB / 0.634 GB, free: 2.457 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.1548, allocations: 0.713 MB / 0.6346 GB, free: 1.738 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1549, allocations: 0 / 0.6346 GB, free: 1.738 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002114/0.1551, allocations: 87.62 kB / 0.6347 GB, free: 1.652 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.1552, allocations: 91.58 kB / 0.6348 GB, free: 1.562 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005177/0.1558, allocations: 181.8 kB / 0.635 GB, free: 1.387 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003442/0.1561, allocations: 271.4 kB / 0.6353 GB, free: 1.121 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.1563, allocations: 77.8 kB / 0.6353 GB, free: 1.047 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.1564, allocations: 111.7 kB / 0.6354 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.1566, allocations: 155.5 kB / 0.6356 GB, free: 0.7852 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.673e-05/0.1567, allocations: 20 kB / 0.6356 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.1568, allocations: 91.94 kB / 0.6357 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.363e-05/0.1569, allocations: 55.83 kB / 0.6357 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.493e-05/0.157, allocations: 115.3 kB / 0.6359 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003246/0.1574, allocations: 299.1 kB / 0.6361 GB, free: 220 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1574, allocations: 0 / 0.6361 GB, free: 220 kB / 478.1 MB Notification: Performance of FrontEnd: time 4.539e-06/0.1574, allocations: 0 / 0.6361 GB, free: 220 kB / 478.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1574, allocations: 3.938 kB / 0.6361 GB, free: 216 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.0008061/0.1582, allocations: 0.5819 MB / 0.6367 GB, free: 15.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.1582, allocations: 8.031 kB / 0.6367 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.573e-05/0.1583, allocations: 40.5 kB / 0.6368 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004154/0.1587, allocations: 298.9 kB / 0.637 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.1588, allocations: 12.38 kB / 0.6371 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.246e-05/0.1588, allocations: 16.38 kB / 0.6371 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.1592, allocations: 227.8 kB / 0.6373 GB, free: 14.92 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1592, allocations: 3.938 kB / 0.6373 GB, free: 14.92 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.1593, allocations: 4 kB / 0.6373 GB, free: 14.91 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.1593, allocations: 4 kB / 0.6373 GB, free: 14.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00025/0.1595, allocations: 132.4 kB / 0.6374 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008518/0.1604, allocations: 0.6807 MB / 0.6381 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003372/0.1607, allocations: 166.5 kB / 0.6382 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.1609, allocations: 108.9 kB / 0.6383 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.1609, allocations: 0 / 0.6383 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.1612, allocations: 169.1 kB / 0.6385 GB, free: 13.58 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.1612, allocations: 0 / 0.6385 GB, free: 13.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006293/0.1618, allocations: 374.9 kB / 0.6389 GB, free: 13.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.008e-05/0.1619, allocations: 140.5 kB / 0.639 GB, free: 13.03 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.1622, allocations: 278.6 kB / 0.6393 GB, free: 12.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.116e-05/0.1623, allocations: 33.7 kB / 0.6393 GB, free: 12.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.642e-05/0.1624, allocations: 156.2 kB / 0.6394 GB, free: 12.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.643e-05/0.1624, allocations: 43.44 kB / 0.6395 GB, free: 12.51 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.1626, allocations: 41.7 kB / 0.6395 GB, free: 12.46 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1627, allocations: 334.8 kB / 0.6398 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.1629, allocations: 95.89 kB / 0.6399 GB, free: 12.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.1631, allocations: 125.1 kB / 0.6401 GB, free: 11.89 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.1634, allocations: 252.7 kB / 0.6403 GB, free: 11.62 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.1634, allocations: 0 / 0.6403 GB, free: 11.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005036/0.1639, allocations: 327 kB / 0.6406 GB, free: 11.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.164, allocations: 41.69 kB / 0.6407 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.164, allocations: 0 / 0.6407 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.164, allocations: 4 kB / 0.6407 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.1641, allocations: 32.02 kB / 0.6407 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.1641, allocations: 4 kB / 0.6407 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.1643, allocations: 19.83 kB / 0.6407 GB, free: 11.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.1643, allocations: 12 kB / 0.6407 GB, free: 11.18 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.0001524/0.1644, allocations: 191.4 kB / 0.6409 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.576e-05/0.1645, allocations: 27.72 kB / 0.6409 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.203e-05/0.1645, allocations: 29.83 kB / 0.641 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.1645, allocations: 4 kB / 0.641 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1646, allocations: 0 / 0.641 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1646, allocations: 4 kB / 0.641 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002227/0.1648, allocations: 297.3 kB / 0.6412 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1648, allocations: 0 / 0.6412 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.563e-05/0.1649, allocations: 12 kB / 0.6413 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.1649, allocations: 3.984 kB / 0.6413 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.1649, allocations: 4 kB / 0.6413 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1649, allocations: 0 / 0.6413 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1649, allocations: 0 / 0.6413 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006404/0.1656, allocations: 477.2 kB / 0.6417 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.1657, allocations: 96.98 kB / 0.6418 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.752e-05/0.1657, allocations: 8 kB / 0.6418 GB, free: 9.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.1658, allocations: 15.92 kB / 0.6418 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.73e-05/0.1659, allocations: 23.97 kB / 0.6419 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.1659, allocations: 11.98 kB / 0.6419 GB, free: 9.883 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002211/0.1662, allocations: 202 kB / 0.6421 GB, free: 9.688 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1662, allocations: 3.938 kB / 0.6421 GB, free: 9.684 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002531/0.1664, allocations: 60.03 kB / 0.6421 GB, free: 9.625 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.0001729/0.1666, allocations: 131.1 kB / 0.6423 GB, free: 9.488 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004351/0.1671, allocations: 298.7 kB / 0.6425 GB, free: 9.188 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1671, allocations: 4 kB / 0.6425 GB, free: 9.184 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002062/0.1673, allocations: 183.4 kB / 0.6427 GB, free: 8.992 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002656/0.1676, allocations: 33.22 kB / 0.6427 GB, free: 8.961 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008552/0.1684, allocations: 477.3 kB / 0.6432 GB, free: 8.461 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.1689, allocations: 0.7509 MB / 0.6439 GB, free: 7.688 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.595e-05/0.1689, allocations: 21.53 kB / 0.644 GB, free: 7.668 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.428e-05/0.169, allocations: 23.44 kB / 0.644 GB, free: 7.645 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.169, allocations: 0 / 0.644 GB, free: 7.645 MB / 494.1 MB Notification: Performance of Templates: time 0.005833/0.1748, allocations: 2.833 MB / 0.6467 GB, free: 4.828 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)