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.001199/0.001199, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001348/0.001348, allocations: 193 kB / 16.53 MB, free: 6.391 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.28/1.28, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.698/0.698, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 64.97 kB / 0.5018 GB, free: 8.773 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1555, allocations: 80.21 MB / 0.5801 GB, free: 8.789 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003192/0.1588, allocations: 1.936 MB / 0.582 GB, free: 6.828 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.16, allocations: 0.7168 MB / 0.5827 GB, free: 6.109 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.1601, allocations: 4 kB / 0.5827 GB, free: 6.105 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.1603, allocations: 79.64 kB / 0.5828 GB, free: 6.027 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.1605, allocations: 91.62 kB / 0.5828 GB, free: 5.938 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005618/0.1611, allocations: 195.5 kB / 0.583 GB, free: 5.746 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003013/0.1614, allocations: 259.5 kB / 0.5833 GB, free: 5.492 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.1615, allocations: 76.33 kB / 0.5834 GB, free: 5.422 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.1617, allocations: 115.6 kB / 0.5835 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/0.1619, allocations: 147.5 kB / 0.5836 GB, free: 5.164 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.1619, allocations: 23.98 kB / 0.5836 GB, free: 5.141 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001358/0.1621, allocations: 99.86 kB / 0.5837 GB, free: 5.043 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.275e-05/0.1622, allocations: 55.78 kB / 0.5838 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.1623, allocations: 107.3 kB / 0.5839 GB, free: 4.883 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.1626, allocations: 295.1 kB / 0.5842 GB, free: 4.594 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1626, allocations: 0 / 0.5842 GB, free: 4.594 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1626, allocations: 0 / 0.5842 GB, free: 4.594 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.1626, allocations: 0 / 0.5842 GB, free: 4.594 MB / 494.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.0007977/0.1634, allocations: 0.5819 MB / 0.5847 GB, free: 3.957 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.1635, allocations: 8.031 kB / 0.5847 GB, free: 3.949 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.796e-05/0.1635, allocations: 32.56 kB / 0.5848 GB, free: 3.918 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.164, allocations: 306.8 kB / 0.5851 GB, free: 3.578 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.164, allocations: 16.38 kB / 0.5851 GB, free: 3.562 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.164, allocations: 23.78 kB / 0.5851 GB, free: 3.539 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003461/0.1644, allocations: 219.2 kB / 0.5853 GB, free: 3.301 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.1644, allocations: 0 / 0.5853 GB, free: 3.301 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.1644, allocations: 8 kB / 0.5853 GB, free: 3.293 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.1644, allocations: 4 kB / 0.5853 GB, free: 3.289 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002289/0.1647, allocations: 132.3 kB / 0.5854 GB, free: 3.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007734/0.1655, allocations: 0.6808 MB / 0.5861 GB, free: 2.422 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.1658, allocations: 170.5 kB / 0.5863 GB, free: 2.246 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.166, allocations: 92.95 kB / 0.5864 GB, free: 2.152 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.166, allocations: 8 kB / 0.5864 GB, free: 2.145 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002867/0.1663, allocations: 173.1 kB / 0.5865 GB, free: 1.957 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.1663, allocations: 0 / 0.5865 GB, free: 1.957 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006212/0.1669, allocations: 366.9 kB / 0.5869 GB, free: 1.586 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.685e-05/0.167, allocations: 136.5 kB / 0.587 GB, free: 1.422 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002473/0.1673, allocations: 278.7 kB / 0.5873 GB, free: 1.145 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.1673, allocations: 33.7 kB / 0.5873 GB, free: 1.105 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.1674, allocations: 160.1 kB / 0.5875 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.561e-05/0.1675, allocations: 39.45 kB / 0.5875 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.687e-05/0.1675, allocations: 41.7 kB / 0.5875 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1676, allocations: 346.7 kB / 0.5879 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.1678, allocations: 83.95 kB / 0.588 GB, free: 440 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.168, allocations: 129.9 kB / 0.5881 GB, free: 292 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.1683, allocations: 244.9 kB / 0.5883 GB, free: 24 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1683, allocations: 11.91 kB / 0.5883 GB, free: 12 kB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004872/0.1688, allocations: 336.3 kB / 0.5886 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.976e-05/0.1689, allocations: 41.69 kB / 0.5887 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.1689, allocations: 0 / 0.5887 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.1689, allocations: 0 / 0.5887 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.169, allocations: 27.92 kB / 0.5887 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.169, allocations: 0 / 0.5887 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.1691, allocations: 35.86 kB / 0.5887 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.1692, allocations: 4 kB / 0.5887 GB, free: 15.56 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.0001573/0.1693, allocations: 194.8 kB / 0.5889 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.1694, allocations: 23.72 kB / 0.589 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.081e-05/0.1694, allocations: 33.83 kB / 0.589 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1694, allocations: 3.984 kB / 0.589 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1694, allocations: 0 / 0.589 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1695, allocations: 7.875 kB / 0.589 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000219/0.1697, allocations: 289.4 kB / 0.5893 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1697, allocations: 0 / 0.5893 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.585e-05/0.1698, allocations: 15.98 kB / 0.5893 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.1698, allocations: 4 kB / 0.5893 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.1698, allocations: 4 kB / 0.5893 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.1698, allocations: 4 kB / 0.5893 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1698, allocations: 0 / 0.5893 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006534/0.1705, allocations: 472.9 kB / 0.5898 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.1706, allocations: 100.8 kB / 0.5898 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.1706, allocations: 12 kB / 0.5899 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.1707, allocations: 11.98 kB / 0.5899 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.664e-05/0.1708, allocations: 23.97 kB / 0.5899 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.1708, allocations: 11.92 kB / 0.5899 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001726/0.171, allocations: 202 kB / 0.5901 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.442e-06/0.171, allocations: 64 / 0.5901 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002711/0.1713, allocations: 63.88 kB / 0.5902 GB, free: 14.01 MB / 0.4981 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.0002187/0.1715, allocations: 131.2 kB / 0.5903 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004855/0.172, allocations: 297.4 kB / 0.5906 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.172, allocations: 0 / 0.5906 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002201/0.1722, allocations: 187.5 kB / 0.5907 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.1725, allocations: 36.48 kB / 0.5908 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009565/0.1735, allocations: 489.1 kB / 0.5912 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.1738, allocations: 0.7513 MB / 0.592 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.938e-05/0.1739, allocations: 17.55 kB / 0.592 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.442e-05/0.1739, allocations: 23.42 kB / 0.592 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/0.174, allocations: 0 / 0.592 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of Templates: time 0.006165/0.1801, allocations: 2.813 MB / 0.5948 GB, free: 9.23 MB / 0.4981 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)