Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json 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/IDEAS 3.0.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00138/0.00138, allocations: 181.6 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.697/0.697, allocations: 132.2 MB / 148.9 MB, free: 12.16 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 403.3 MB, free: 7.141 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 108.8 kB / 484.4 MB, free: 8.73 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 47.92 kB / 0.5618 GB, free: 71.09 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1513, allocations: 80.2 MB / 0.6402 GB, free: 6.816 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00358/0.1549, allocations: 1.996 MB / 0.6421 GB, free: 4.797 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.1563, allocations: 0.7323 MB / 0.6428 GB, free: 4.062 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001963/0.1565, allocations: 7.938 kB / 0.6428 GB, free: 4.055 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.1568, allocations: 67.77 kB / 0.6429 GB, free: 3.988 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.157, allocations: 91.69 kB / 0.643 GB, free: 3.898 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006247/0.1576, allocations: 157.5 kB / 0.6431 GB, free: 3.746 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.158, allocations: 239.5 kB / 0.6434 GB, free: 3.512 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.1582, allocations: 70.11 kB / 0.6434 GB, free: 3.441 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.1584, allocations: 95.66 kB / 0.6435 GB, free: 3.348 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.1586, allocations: 139.5 kB / 0.6437 GB, free: 3.211 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.1587, allocations: 19.88 kB / 0.6437 GB, free: 3.191 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.1589, allocations: 79.92 kB / 0.6438 GB, free: 3.113 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.159, allocations: 47.83 kB / 0.6438 GB, free: 3.066 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.1591, allocations: 95.34 kB / 0.6439 GB, free: 2.973 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003632/0.1595, allocations: 283.1 kB / 0.6442 GB, free: 2.695 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1595, allocations: 0 / 0.6442 GB, free: 2.695 MB / 442.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1595, allocations: 0 / 0.6442 GB, free: 2.695 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.1595, allocations: 4 kB / 0.6442 GB, free: 2.691 MB / 442.7 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.0009662/0.1605, allocations: 0.5742 MB / 0.6447 GB, free: 2.062 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.1605, allocations: 11.97 kB / 0.6447 GB, free: 2.051 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.946e-05/0.1606, allocations: 32.66 kB / 0.6448 GB, free: 2.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004902/0.1611, allocations: 298.7 kB / 0.6451 GB, free: 1.691 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.1612, allocations: 16.38 kB / 0.6451 GB, free: 1.676 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.1612, allocations: 19.94 kB / 0.6451 GB, free: 1.656 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004058/0.1616, allocations: 219.2 kB / 0.6453 GB, free: 1.418 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1616, allocations: 0 / 0.6453 GB, free: 1.418 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.1617, allocations: 8 kB / 0.6453 GB, free: 1.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.1617, allocations: 3.984 kB / 0.6453 GB, free: 1.406 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002596/0.1619, allocations: 136.3 kB / 0.6454 GB, free: 1.273 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008948/0.1628, allocations: 0.6924 MB / 0.6461 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003605/0.1632, allocations: 158.5 kB / 0.6463 GB, free: 368 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.1634, allocations: 96.95 kB / 0.6464 GB, free: 268 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.1634, allocations: 4 kB / 0.6464 GB, free: 264 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003682/0.1638, allocations: 173.1 kB / 0.6465 GB, free: 72 kB / 442.7 MB Notification: Performance of pre-optimization done (n=15): time 1.864e-06/0.1638, allocations: 0 / 0.6465 GB, free: 72 kB / 442.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007392/0.1646, allocations: 380.5 kB / 0.6469 GB, free: 15.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.948e-05/0.1646, allocations: 132.5 kB / 0.647 GB, free: 15.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003004/0.165, allocations: 286.6 kB / 0.6473 GB, free: 15.24 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.165, allocations: 29.7 kB / 0.6473 GB, free: 15.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/0.1651, allocations: 164.1 kB / 0.6475 GB, free: 15.04 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.668e-05/0.1652, allocations: 35.45 kB / 0.6475 GB, free: 15 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.754e-05/0.1653, allocations: 41.7 kB / 0.6476 GB, free: 14.95 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1654, allocations: 342.8 kB / 0.6479 GB, free: 14.61 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.1656, allocations: 83.95 kB / 0.648 GB, free: 14.53 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.1658, allocations: 135.5 kB / 0.6481 GB, free: 14.38 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003362/0.1662, allocations: 242.1 kB / 0.6483 GB, free: 14.12 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.1662, allocations: 7.969 kB / 0.6483 GB, free: 14.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005069/0.1667, allocations: 335 kB / 0.6486 GB, free: 13.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.1667, allocations: 37.69 kB / 0.6487 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1668, allocations: 0 / 0.6487 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.1668, allocations: 4 kB / 0.6487 GB, free: 13.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.1669, allocations: 23.92 kB / 0.6487 GB, free: 13.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.167, allocations: 4 kB / 0.6487 GB, free: 13.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.1671, allocations: 31.86 kB / 0.6487 GB, free: 13.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.1671, allocations: 8 kB / 0.6487 GB, free: 13.66 MB / 458.7 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.0001847/0.1673, allocations: 190 kB / 0.6489 GB, free: 13.46 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.052e-05/0.1674, allocations: 27.72 kB / 0.649 GB, free: 13.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.909e-05/0.1674, allocations: 33.81 kB / 0.649 GB, free: 13.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1675, allocations: 0 / 0.649 GB, free: 13.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1675, allocations: 0 / 0.649 GB, free: 13.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.1675, allocations: 7.938 kB / 0.649 GB, free: 13.39 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.1678, allocations: 293.5 kB / 0.6493 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1678, allocations: 0 / 0.6493 GB, free: 13.06 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.1679, allocations: 15.98 kB / 0.6493 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1679, allocations: 0 / 0.6493 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.1679, allocations: 8 kB / 0.6493 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.168, allocations: 4 kB / 0.6493 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.168, allocations: 0 / 0.6493 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004364/0.1723, allocations: 2.971 MB / 0.6522 GB, free: 9.891 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.1724, allocations: 100.8 kB / 0.6523 GB, free: 9.773 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.1725, allocations: 15.94 kB / 0.6523 GB, free: 9.758 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.1726, allocations: 11.98 kB / 0.6523 GB, free: 9.746 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.8e-05/0.1727, allocations: 23.95 kB / 0.6523 GB, free: 9.723 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.372e-05/0.1727, allocations: 4 kB / 0.6524 GB, free: 9.719 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002137/0.1729, allocations: 206 kB / 0.6525 GB, free: 9.52 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1729, allocations: 0 / 0.6525 GB, free: 9.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0004339/0.1734, allocations: 79.91 kB / 0.6526 GB, free: 9.441 MB / 458.7 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.0002199/0.1736, allocations: 123.2 kB / 0.6527 GB, free: 9.312 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0005227/0.1741, allocations: 303.1 kB / 0.653 GB, free: 9.004 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.1742, allocations: 4.188 kB / 0.653 GB, free: 9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000229/0.1744, allocations: 179.4 kB / 0.6532 GB, free: 8.812 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.1747, allocations: 32.55 kB / 0.6532 GB, free: 8.781 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.176, allocations: 0.7467 MB / 0.654 GB, free: 7.98 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.1763, allocations: 0.7634 MB / 0.6547 GB, free: 7.191 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.000111/0.1765, allocations: 25.53 kB / 0.6547 GB, free: 7.164 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.839e-05/0.1765, allocations: 19.61 kB / 0.6548 GB, free: 7.145 MB / 458.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1765, allocations: 0 / 0.6548 GB, free: 7.145 MB / 458.7 MB Notification: Performance of Templates: time 0.00677/0.1833, allocations: 3.037 MB / 0.6577 GB, free: 4.129 MB / 458.7 MB make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)