Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001044/0.001043, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.007886/0.007887, allocations: 172.4 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.4 MB / 222.4 MB, free: 5.801 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6483/0.6483, allocations: 95.64 MB / 366.4 MB, free: 10.31 MB / 302.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008412/0.0008412, allocations: 16.42 kB / 447.5 MB, free: 9.047 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4634/0.4643, allocations: 70.33 MB / 0.5057 GB, free: 16.35 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002086/0.4664, allocations: 1.642 MB / 0.5073 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001244/0.4677, allocations: 0.7547 MB / 0.508 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.4678, allocations: 3.938 kB / 0.508 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002347/0.4681, allocations: 75.72 kB / 0.5081 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001043/0.4682, allocations: 87.67 kB / 0.5082 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004951/0.4687, allocations: 147.8 kB / 0.5083 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002218/0.4689, allocations: 239.4 kB / 0.5085 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001689/0.4691, allocations: 73.81 kB / 0.5086 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.4692, allocations: 95.59 kB / 0.5087 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001747/0.4694, allocations: 127.6 kB / 0.5088 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.4694, allocations: 4 kB / 0.5088 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.4696, allocations: 83.86 kB / 0.5089 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.358e-05/0.4697, allocations: 47.78 kB / 0.5089 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.995e-05/0.4698, allocations: 117 kB / 0.5091 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.4701, allocations: 275 kB / 0.5093 GB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.4701, allocations: 0 / 0.5093 GB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4701, allocations: 0 / 0.5093 GB, free: 12.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.4701, allocations: 4 kB / 0.5093 GB, free: 12.57 MB / 382.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.0007256/0.4708, allocations: 0.543 MB / 0.5099 GB, free: 11.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.4709, allocations: 19.97 kB / 0.5099 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.458e-05/0.471, allocations: 28.66 kB / 0.5099 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.4714, allocations: 310.8 kB / 0.5102 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.4714, allocations: 8.375 kB / 0.5102 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.902e-05/0.4714, allocations: 20.31 kB / 0.5102 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003479/0.4718, allocations: 231.2 kB / 0.5104 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.4718, allocations: 0 / 0.5104 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.001e-05/0.4718, allocations: 8 kB / 0.5105 GB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.4719, allocations: 4 kB / 0.5105 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.4721, allocations: 132.3 kB / 0.5106 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007039/0.4728, allocations: 0.6848 MB / 0.5113 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.4731, allocations: 186.4 kB / 0.5114 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.4733, allocations: 101 kB / 0.5115 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.4733, allocations: 4 kB / 0.5115 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003434/0.4737, allocations: 181.1 kB / 0.5117 GB, free: 9.941 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.4737, allocations: 0 / 0.5117 GB, free: 9.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006721/0.4744, allocations: 381.9 kB / 0.5121 GB, free: 9.559 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/0.4745, allocations: 140.5 kB / 0.5122 GB, free: 9.391 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.4747, allocations: 278.7 kB / 0.5125 GB, free: 9.113 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.4747, allocations: 33.7 kB / 0.5125 GB, free: 9.074 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.4749, allocations: 152.2 kB / 0.5126 GB, free: 8.918 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.999e-05/0.4749, allocations: 47.44 kB / 0.5127 GB, free: 8.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.475, allocations: 25.8 kB / 0.5127 GB, free: 8.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.931e-05/0.4751, allocations: 342.7 kB / 0.513 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.4752, allocations: 91.91 kB / 0.5131 GB, free: 8.406 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.4754, allocations: 138.8 kB / 0.5133 GB, free: 8.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/0.4757, allocations: 254 kB / 0.5135 GB, free: 7.984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.4757, allocations: 0 / 0.5135 GB, free: 7.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004165/0.4762, allocations: 346.9 kB / 0.5138 GB, free: 7.633 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.4762, allocations: 33.7 kB / 0.5139 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.4762, allocations: 0 / 0.5139 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.4762, allocations: 4 kB / 0.5139 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.4764, allocations: 31.86 kB / 0.5139 GB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.4764, allocations: 4 kB / 0.5139 GB, free: 7.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.4765, allocations: 23.98 kB / 0.5139 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.4765, allocations: 15.98 kB / 0.5139 GB, free: 7.516 MB / 382.1 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.0001359/0.4767, allocations: 191.4 kB / 0.5141 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.13e-05/0.4767, allocations: 23.72 kB / 0.5141 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.127e-05/0.4768, allocations: 25.83 kB / 0.5142 GB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.4768, allocations: 4 kB / 0.5142 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4768, allocations: 0 / 0.5142 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.4768, allocations: 3.938 kB / 0.5142 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.477, allocations: 297.3 kB / 0.5145 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.477, allocations: 0 / 0.5145 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.821e-05/0.4771, allocations: 19.98 kB / 0.5145 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.4771, allocations: 4 kB / 0.5145 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.4771, allocations: 4 kB / 0.5145 GB, free: 6.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.4771, allocations: 7.984 kB / 0.5145 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4771, allocations: 0 / 0.5145 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005972/0.4777, allocations: 478.2 kB / 0.515 GB, free: 6.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.624e-05/0.4778, allocations: 100.9 kB / 0.515 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.832e-05/0.4778, allocations: 11.98 kB / 0.5151 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.4779, allocations: 20.05 kB / 0.5151 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.478, allocations: 19.97 kB / 0.5151 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.478, allocations: 7.984 kB / 0.5151 GB, free: 6.215 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001426/0.4782, allocations: 202 kB / 0.5153 GB, free: 6.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4782, allocations: 0 / 0.5153 GB, free: 6.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002611/0.4785, allocations: 63.97 kB / 0.5154 GB, free: 5.957 MB / 382.1 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.0001809/0.4787, allocations: 130.9 kB / 0.5155 GB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004299/0.4791, allocations: 299.2 kB / 0.5158 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4791, allocations: 0 / 0.5158 GB, free: 5.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001886/0.4793, allocations: 199.2 kB / 0.516 GB, free: 5.312 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.4796, allocations: 32.73 kB / 0.516 GB, free: 5.281 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008749/0.4805, allocations: 0.542 MB / 0.5165 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.4807, allocations: 0.7478 MB / 0.5173 GB, free: 3.938 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.103e-05/0.4808, allocations: 21.48 kB / 0.5173 GB, free: 3.914 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.989e-05/0.4809, allocations: 19.44 kB / 0.5173 GB, free: 3.898 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4809, allocations: 0 / 0.5173 GB, free: 3.898 MB / 382.1 MB Notification: Performance of Templates: time 0.005222/0.4861, allocations: 2.52 MB / 0.5198 GB, free: 1.395 MB / 382.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile Environment - environmentSimulation: (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: