Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.672/1.672, allocations: 297.8 MB / 313.7 MB, free: 172 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 176.5 kB / 384.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.2 MB / 0.6626 GB, free: 4.375 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008209/0.0008211, allocations: 103.8 kB / 0.7808 GB, free: 50.28 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004227/0.0004231, allocations: 12.53 kB / 0.9088 GB, free: 2.922 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7598/0.7603, allocations: 120.3 MB / 1.026 GB, free: 55.97 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2009/0.9612, allocations: 144.3 MB / 1.167 GB, free: 15.87 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002831/0.9616, allocations: 85.92 kB / 1.167 GB, free: 15.8 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01769/0.9793, allocations: 5.904 MB / 1.173 GB, free: 11.64 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.994e-06/0.9793, allocations: 0 / 1.173 GB, free: 11.64 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.72e-05/0.9793, allocations: 4 kB / 1.173 GB, free: 11.64 MB / 0.7448 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.0008469/0.9802, allocations: 0.593 MB / 1.174 GB, free: 11 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.9802, allocations: 8.875 kB / 1.174 GB, free: 11 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.623e-05/0.9803, allocations: 29.41 kB / 1.174 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004067/0.9807, allocations: 298.6 kB / 1.174 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.9808, allocations: 12.38 kB / 1.174 GB, free: 10.62 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.9808, allocations: 12.38 kB / 1.174 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004582/0.9813, allocations: 263.6 kB / 1.174 GB, free: 10.33 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.9813, allocations: 4.188 kB / 1.174 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.9813, allocations: 7.938 kB / 1.174 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.9813, allocations: 4 kB / 1.174 GB, free: 10.31 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.9816, allocations: 165.2 kB / 1.174 GB, free: 10.15 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009287/0.9826, allocations: 0.7327 MB / 1.175 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004427/0.983, allocations: 218.4 kB / 1.175 GB, free: 9.141 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.9833, allocations: 128.9 kB / 1.175 GB, free: 9.012 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.9833, allocations: 11.88 kB / 1.175 GB, free: 9 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003098/0.9836, allocations: 203.4 kB / 1.176 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=15): time 1.803e-06/0.9836, allocations: 1.031 kB / 1.176 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15): time 0.0008928/0.9845, allocations: 492.9 kB / 1.176 GB, free: 8.289 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.9846, allocations: 140.5 kB / 1.176 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.9849, allocations: 278.6 kB / 1.177 GB, free: 7.848 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.654e-05/0.9849, allocations: 37.69 kB / 1.177 GB, free: 7.805 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.832e-05/0.985, allocations: 148.3 kB / 1.177 GB, free: 7.656 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.206e-05/0.9851, allocations: 47.34 kB / 1.177 GB, free: 7.609 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.351e-05/0.9851, allocations: 8 kB / 1.177 GB, free: 7.602 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.9852, allocations: 334.8 kB / 1.177 GB, free: 7.266 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.9854, allocations: 115.9 kB / 1.177 GB, free: 7.152 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.9857, allocations: 162.2 kB / 1.177 GB, free: 6.977 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004462/0.9861, allocations: 309.4 kB / 1.178 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.9862, allocations: 0 / 1.178 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006324/0.9868, allocations: 416.2 kB / 1.178 GB, free: 6.234 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.939e-05/0.9868, allocations: 29.7 kB / 1.178 GB, free: 6.199 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.9869, allocations: 9 kB / 1.178 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.9869, allocations: 0 / 1.178 GB, free: 6.191 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.987, allocations: 27.98 kB / 1.178 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.987, allocations: 5 kB / 1.178 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.9872, allocations: 43.92 kB / 1.178 GB, free: 6.117 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.9872, allocations: 15.98 kB / 1.178 GB, free: 6.102 MB / 0.7448 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001797/0.9874, allocations: 187.5 kB / 1.178 GB, free: 5.902 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.9875, allocations: 26.11 kB / 1.178 GB, free: 5.879 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.702e-05/0.9875, allocations: 30.95 kB / 1.178 GB, free: 5.844 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.9875, allocations: 4 kB / 1.178 GB, free: 5.84 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.9876, allocations: 4 kB / 1.178 GB, free: 5.836 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.9876, allocations: 0 / 1.178 GB, free: 5.836 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.9878, allocations: 309.2 kB / 1.179 GB, free: 5.484 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.9878, allocations: 5 kB / 1.179 GB, free: 5.48 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.988, allocations: 23.92 kB / 1.179 GB, free: 5.457 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.988, allocations: 0 / 1.179 GB, free: 5.457 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.988, allocations: 11.98 kB / 1.179 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.988, allocations: 0 / 1.179 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.988, allocations: 0 / 1.179 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000948/0.989, allocations: 0.5884 MB / 1.179 GB, free: 4.836 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.294e-05/0.989, allocations: 100.9 kB / 1.179 GB, free: 4.719 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.9891, allocations: 5.25 kB / 1.179 GB, free: 4.715 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.9892, allocations: 35.97 kB / 1.179 GB, free: 4.68 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.899e-05/0.9893, allocations: 31.95 kB / 1.18 GB, free: 4.648 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.9894, allocations: 8 kB / 1.18 GB, free: 4.641 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001711/0.9895, allocations: 205.9 kB / 1.18 GB, free: 4.441 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9895, allocations: 0 / 1.18 GB, free: 4.441 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.000321/0.9899, allocations: 64.06 kB / 1.18 GB, free: 4.379 MB / 0.7448 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002148/0.9901, allocations: 137.2 kB / 1.18 GB, free: 4.238 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005184/0.9906, allocations: 323.8 kB / 1.18 GB, free: 3.91 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.9906, allocations: 0 / 1.18 GB, free: 3.91 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002421/0.9909, allocations: 204.7 kB / 1.18 GB, free: 3.699 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.9912, allocations: 32.08 kB / 1.18 GB, free: 3.672 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009608/0.9922, allocations: 0.5226 MB / 1.181 GB, free: 3.125 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/0.9924, allocations: 0.7517 MB / 1.182 GB, free: 2.348 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.773e-05/0.9925, allocations: 13.42 kB / 1.182 GB, free: 2.336 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.27e-05/0.9926, allocations: 15.44 kB / 1.182 GB, free: 2.32 MB / 0.7448 GB Notification: Performance of SimCode: time 2.1e-07/0.9926, allocations: 0 / 1.182 GB, free: 2.32 MB / 0.7448 GB Notification: Performance of Templates: time 0.00561/0.9982, allocations: 2.547 MB / 1.184 GB, free: 15.87 MB / 0.7605 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)