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/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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 108.8 kB / 16.41 MB, free: 6.465 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.001483/0.001483, allocations: 189.7 kB / 17.35 MB, free: 5.715 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.512/1.512, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7921/0.7921, allocations: 132.2 MB / 423.4 MB, free: 6.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 66.45 kB / 0.582 GB, free: 23.76 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1567, allocations: 80.2 MB / 0.6603 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003256/0.16, allocations: 1.941 MB / 0.6622 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.1614, allocations: 0.7207 MB / 0.6629 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001608/0.1615, allocations: 4 kB / 0.6629 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002289/0.1618, allocations: 83.64 kB / 0.663 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.162, allocations: 91.62 kB / 0.6631 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006139/0.1626, allocations: 185.2 kB / 0.6633 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.163, allocations: 263.5 kB / 0.6635 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.1631, allocations: 77.8 kB / 0.6636 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.1633, allocations: 123.6 kB / 0.6637 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.1636, allocations: 143.5 kB / 0.6638 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.988e-05/0.1636, allocations: 20 kB / 0.6639 GB, free: 6.621 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.1638, allocations: 99.86 kB / 0.664 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.039e-05/0.1639, allocations: 59.81 kB / 0.664 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.164, allocations: 103.4 kB / 0.6641 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003876/0.1644, allocations: 307 kB / 0.6644 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1644, allocations: 4 kB / 0.6644 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.356e-06/0.1644, allocations: 0 / 0.6644 GB, free: 6.059 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.036e-05/0.1644, allocations: 3.938 kB / 0.6644 GB, free: 6.055 MB / 0.4981 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.0009655/0.1654, allocations: 0.578 MB / 0.665 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1654, allocations: 12.03 kB / 0.665 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.263e-05/0.1655, allocations: 28.56 kB / 0.665 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.166, allocations: 302.9 kB / 0.6653 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.501e-05/0.166, allocations: 16.12 kB / 0.6653 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.1661, allocations: 12 kB / 0.6653 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.1665, allocations: 227.6 kB / 0.6655 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1665, allocations: 0 / 0.6655 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.1665, allocations: 4 kB / 0.6655 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.1665, allocations: 7.938 kB / 0.6656 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002537/0.1668, allocations: 132.3 kB / 0.6657 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008378/0.1676, allocations: 0.6846 MB / 0.6664 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003486/0.168, allocations: 162.5 kB / 0.6665 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1682, allocations: 105 kB / 0.6666 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/0.1682, allocations: 0 / 0.6666 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002691/0.1685, allocations: 169 kB / 0.6668 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.1685, allocations: 0 / 0.6668 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0006804/0.1692, allocations: 371 kB / 0.6671 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.1693, allocations: 140.5 kB / 0.6673 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002818/0.1695, allocations: 282.6 kB / 0.6675 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.1696, allocations: 29.7 kB / 0.6676 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.1697, allocations: 156.3 kB / 0.6677 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.247e-05/0.1697, allocations: 47.3 kB / 0.6677 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.094e-05/0.1698, allocations: 41.7 kB / 0.6678 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1699, allocations: 342.8 kB / 0.6681 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.1701, allocations: 83.95 kB / 0.6682 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001829/0.1703, allocations: 129.1 kB / 0.6683 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.1707, allocations: 240 kB / 0.6685 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1707, allocations: 0 / 0.6685 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004995/0.1712, allocations: 345.7 kB / 0.6689 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.1712, allocations: 37.69 kB / 0.6689 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.557e-06/0.1712, allocations: 4 kB / 0.6689 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.1713, allocations: 0 / 0.6689 GB, free: 1.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.1714, allocations: 27.98 kB / 0.6689 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.1714, allocations: 8.078 kB / 0.6689 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.1716, allocations: 31.77 kB / 0.669 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.1716, allocations: 7.938 kB / 0.669 GB, free: 1.016 MB / 0.4981 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.0001672/0.1718, allocations: 183.5 kB / 0.6692 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.895e-05/0.1718, allocations: 31.7 kB / 0.6692 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.947e-05/0.1719, allocations: 21.84 kB / 0.6692 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1719, allocations: 4 kB / 0.6692 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1719, allocations: 4 kB / 0.6692 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1719, allocations: 7.922 kB / 0.6692 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002477/0.1721, allocations: 289.4 kB / 0.6695 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.1722, allocations: 0 / 0.6695 GB, free: 432 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.1723, allocations: 15.98 kB / 0.6695 GB, free: 416 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.902e-06/0.1723, allocations: 3.984 kB / 0.6695 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.1723, allocations: 16.02 kB / 0.6695 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1723, allocations: 3.938 kB / 0.6695 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1723, allocations: 0 / 0.6695 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007073/0.173, allocations: 465.2 kB / 0.67 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.286e-05/0.1731, allocations: 112.7 kB / 0.6701 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.306e-05/0.1732, allocations: 4 kB / 0.6701 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1733, allocations: 15.98 kB / 0.6701 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.664e-05/0.1734, allocations: 23.91 kB / 0.6701 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.1734, allocations: 4 kB / 0.6701 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001821/0.1736, allocations: 213.9 kB / 0.6703 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1736, allocations: 0 / 0.6703 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002701/0.1739, allocations: 55.91 kB / 0.6704 GB, free: 15.47 MB / 0.5137 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.0002132/0.1741, allocations: 130.6 kB / 0.6705 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004701/0.1746, allocations: 287.2 kB / 0.6708 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1746, allocations: 4.188 kB / 0.6708 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.1748, allocations: 187.3 kB / 0.671 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.1751, allocations: 35.61 kB / 0.671 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009916/0.1761, allocations: 0.5067 MB / 0.6715 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003228/0.1765, allocations: 0.7436 MB / 0.6722 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.594e-05/0.1765, allocations: 23.44 kB / 0.6723 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of SimCode: time 2e-07/0.1765, allocations: 0 / 0.6723 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of Templates: time 0.005431/0.182, allocations: 3.003 MB / 0.6752 GB, free: 10.48 MB / 0.5137 GB 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)