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.004669/0.004669, allocations: 100.6 kB / 15.73 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.001214/0.001214, allocations: 188.9 kB / 16.67 MB, free: 5.934 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.741/0.741, allocations: 132.2 MB / 422.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 61.25 kB / 0.5813 GB, free: 23.8 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.155/0.1562, allocations: 80.21 MB / 0.6597 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003364/0.1596, allocations: 1.941 MB / 0.6616 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1609, allocations: 0.7129 MB / 0.6623 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.1611, allocations: 7.938 kB / 0.6623 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002342/0.1614, allocations: 83.7 kB / 0.6623 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.1615, allocations: 91.55 kB / 0.6624 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006251/0.1622, allocations: 185.6 kB / 0.6626 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004214/0.1626, allocations: 267.4 kB / 0.6629 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.1628, allocations: 69.81 kB / 0.6629 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.163, allocations: 115.7 kB / 0.663 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000254/0.1633, allocations: 155.5 kB / 0.6632 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.406e-05/0.1633, allocations: 20 kB / 0.6632 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001694/0.1635, allocations: 91.92 kB / 0.6633 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.705e-05/0.1636, allocations: 55.84 kB / 0.6633 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.1637, allocations: 115.3 kB / 0.6635 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004441/0.1642, allocations: 302.8 kB / 0.6637 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1642, allocations: 4 kB / 0.6637 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.1642, allocations: 3.938 kB / 0.6637 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.593e-05/0.1642, allocations: 0 / 0.6637 GB, free: 6.07 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.0009516/0.1652, allocations: 0.5972 MB / 0.6643 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1652, allocations: 12.03 kB / 0.6643 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.745e-05/0.1653, allocations: 32.75 kB / 0.6644 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005043/0.1658, allocations: 299.1 kB / 0.6647 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.1659, allocations: 16.12 kB / 0.6647 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.698e-05/0.1659, allocations: 12 kB / 0.6647 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003924/0.1663, allocations: 223.7 kB / 0.6649 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.1663, allocations: 7.922 kB / 0.6649 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.1664, allocations: 4 kB / 0.6649 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.1664, allocations: 4 kB / 0.6649 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.1666, allocations: 128.4 kB / 0.665 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008072/0.1674, allocations: 0.6925 MB / 0.6657 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/0.1678, allocations: 162.7 kB / 0.6659 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001539/0.168, allocations: 96.95 kB / 0.666 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.168, allocations: 3.984 kB / 0.666 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002608/0.1683, allocations: 169.1 kB / 0.6661 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.783e-06/0.1683, allocations: 0 / 0.6661 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.000668/0.169, allocations: 375.1 kB / 0.6665 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.169, allocations: 132.5 kB / 0.6666 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002869/0.1693, allocations: 282.6 kB / 0.6669 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.687e-05/0.1694, allocations: 33.7 kB / 0.6669 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.1695, allocations: 156.3 kB / 0.6671 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.19e-05/0.1695, allocations: 51.62 kB / 0.6671 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.362e-05/0.1696, allocations: 37.66 kB / 0.6671 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.1698, allocations: 350.7 kB / 0.6675 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.17, allocations: 80.06 kB / 0.6676 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.1702, allocations: 140.9 kB / 0.6677 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.1705, allocations: 240.6 kB / 0.6679 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1705, allocations: 0 / 0.6679 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005015/0.171, allocations: 335 kB / 0.6682 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.171, allocations: 33.7 kB / 0.6683 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1711, allocations: 8.094 kB / 0.6683 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.1711, allocations: 3.938 kB / 0.6683 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.1712, allocations: 27.98 kB / 0.6683 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-06/0.1712, allocations: 0 / 0.6683 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.1713, allocations: 31.77 kB / 0.6683 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.1714, allocations: 4 kB / 0.6683 GB, free: 1.012 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.0001688/0.1715, allocations: 195.5 kB / 0.6685 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.601e-05/0.1716, allocations: 27.86 kB / 0.6686 GB, free: 0.7773 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.071e-05/0.1716, allocations: 25.83 kB / 0.6686 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1717, allocations: 4 kB / 0.6686 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1717, allocations: 0 / 0.6686 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.1717, allocations: 3.938 kB / 0.6686 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.1719, allocations: 285.5 kB / 0.6689 GB, free: 428 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1719, allocations: 0 / 0.6689 GB, free: 428 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.172, allocations: 15.98 kB / 0.6689 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.172, allocations: 0 / 0.6689 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.1721, allocations: 12 kB / 0.6689 GB, free: 400 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1721, allocations: 4 kB / 0.6689 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1721, allocations: 0 / 0.6689 GB, free: 396 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006896/0.1728, allocations: 472.8 kB / 0.6693 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.695e-05/0.1729, allocations: 104.9 kB / 0.6694 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.247e-05/0.1729, allocations: 4 kB / 0.6694 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.921e-05/0.173, allocations: 19.98 kB / 0.6695 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.085e-05/0.1731, allocations: 31.89 kB / 0.6695 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.1731, allocations: 4 kB / 0.6695 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000177/0.1733, allocations: 205.9 kB / 0.6697 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1733, allocations: 0 / 0.6697 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002707/0.1736, allocations: 59.89 kB / 0.6698 GB, free: 15.46 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.0002123/0.1738, allocations: 134.3 kB / 0.6699 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004581/0.1743, allocations: 295.2 kB / 0.6702 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.1743, allocations: 4 kB / 0.6702 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.1745, allocations: 175.5 kB / 0.6703 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.0002893/0.1748, allocations: 40.7 kB / 0.6704 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009595/0.1758, allocations: 480.7 kB / 0.6708 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.1761, allocations: 0.7514 MB / 0.6716 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.89e-05/0.1762, allocations: 21.52 kB / 0.6716 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.269e-05/0.1762, allocations: 19.44 kB / 0.6716 GB, free: 13.49 MB / 0.5137 GB Notification: Performance of SimCode: time 3.91e-07/0.1763, allocations: 4 kB / 0.6716 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of Templates: time 0.005716/0.182, allocations: 2.83 MB / 0.6744 GB, free: 10.68 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)