Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7873/0.7873, allocations: 140.1 MB / 156 MB, free: 5.156 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 180.8 kB / 188.5 MB, free: 15.82 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.4 MB / 426.4 MB, free: 8.449 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008439/0.0008439, allocations: 90.3 kB / 0.4945 GB, free: 8.406 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.002005/0.002005, allocations: 260.7 kB / 0.5728 GB, free: 66.22 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004872/0.0004874, allocations: 24 kB / 0.662 GB, free: 6.809 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3999/0.4004, allocations: 79.3 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1333/0.5338, allocations: 110.4 MB / 0.8472 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.5341, allocations: 87.92 kB / 0.8473 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01634/0.5504, allocations: 5.868 MB / 0.8531 GB, free: 9.871 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.595e-06/0.5505, allocations: 0 / 0.8531 GB, free: 9.871 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.689e-05/0.5505, allocations: 8 kB / 0.8531 GB, free: 9.863 MB / 0.5261 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.0008464/0.5514, allocations: 0.5884 MB / 0.8536 GB, free: 9.219 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.5514, allocations: 8.031 kB / 0.8537 GB, free: 9.211 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.5515, allocations: 28.66 kB / 0.8537 GB, free: 9.184 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004134/0.5519, allocations: 302.6 kB / 0.854 GB, free: 8.852 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.552, allocations: 8.375 kB / 0.854 GB, free: 8.844 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.87e-05/0.552, allocations: 16.38 kB / 0.854 GB, free: 8.828 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004702/0.5525, allocations: 267.6 kB / 0.8542 GB, free: 8.539 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.5525, allocations: 4.172 kB / 0.8542 GB, free: 8.535 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.5525, allocations: 15.88 kB / 0.8543 GB, free: 8.52 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.5526, allocations: 4 kB / 0.8543 GB, free: 8.516 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003076/0.5529, allocations: 156.3 kB / 0.8544 GB, free: 8.363 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009011/0.5538, allocations: 0.7316 MB / 0.8551 GB, free: 7.574 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004744/0.5543, allocations: 218.4 kB / 0.8553 GB, free: 7.352 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.5545, allocations: 136.9 kB / 0.8555 GB, free: 7.215 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.5545, allocations: 3.938 kB / 0.8555 GB, free: 7.211 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003397/0.5549, allocations: 197.8 kB / 0.8557 GB, free: 7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.5549, allocations: 4 kB / 0.8557 GB, free: 6.996 MB / 0.5261 GB Notification: Performance of matching and sorting (n=15): time 0.0009701/0.5559, allocations: 497.7 kB / 0.8561 GB, free: 6.496 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.556, allocations: 136.5 kB / 0.8563 GB, free: 6.332 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/0.5562, allocations: 278.6 kB / 0.8565 GB, free: 6.055 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.5563, allocations: 29.7 kB / 0.8566 GB, free: 6.02 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.5564, allocations: 156.2 kB / 0.8567 GB, free: 5.863 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.5564, allocations: 47.44 kB / 0.8568 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.5565, allocations: 96 / 0.8568 GB, free: 5.816 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5566, allocations: 342.8 kB / 0.8571 GB, free: 5.473 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.5568, allocations: 115.9 kB / 0.8572 GB, free: 5.359 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.5571, allocations: 166.4 kB / 0.8574 GB, free: 5.18 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/0.5575, allocations: 306.6 kB / 0.8576 GB, free: 4.855 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.5575, allocations: 0 / 0.8576 GB, free: 4.855 MB / 0.5261 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006579/0.5582, allocations: 413.7 kB / 0.858 GB, free: 4.441 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.5583, allocations: 45.78 kB / 0.8581 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.5583, allocations: 0 / 0.8581 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.5583, allocations: 4 kB / 0.8581 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.5584, allocations: 27.92 kB / 0.8581 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.5585, allocations: 4 kB / 0.8581 GB, free: 4.355 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.5586, allocations: 43.84 kB / 0.8582 GB, free: 4.312 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.5587, allocations: 12 kB / 0.8582 GB, free: 4.301 MB / 0.5261 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.000173/0.5588, allocations: 194.4 kB / 0.8584 GB, free: 4.098 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.81e-05/0.5589, allocations: 23.72 kB / 0.8584 GB, free: 4.074 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.494e-05/0.559, allocations: 33.83 kB / 0.8584 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.559, allocations: 4 kB / 0.8584 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.559, allocations: 0 / 0.8584 GB, free: 4.035 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.559, allocations: 4 kB / 0.8584 GB, free: 4.031 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.5593, allocations: 301.3 kB / 0.8587 GB, free: 3.688 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.5593, allocations: 0 / 0.8587 GB, free: 3.688 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.5594, allocations: 27.92 kB / 0.8587 GB, free: 3.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.5594, allocations: 0 / 0.8587 GB, free: 3.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.5594, allocations: 4 kB / 0.8587 GB, free: 3.656 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.5594, allocations: 4 kB / 0.8587 GB, free: 3.652 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5595, allocations: 0 / 0.8587 GB, free: 3.652 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009788/0.5604, allocations: 0.5972 MB / 0.8593 GB, free: 3.035 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.068e-05/0.5605, allocations: 92.86 kB / 0.8594 GB, free: 2.926 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.334e-05/0.5606, allocations: 11.94 kB / 0.8594 GB, free: 2.914 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.5607, allocations: 31.97 kB / 0.8595 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/0.5608, allocations: 27.95 kB / 0.8595 GB, free: 2.855 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.5608, allocations: 24.03 kB / 0.8595 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001696/0.561, allocations: 194 kB / 0.8597 GB, free: 2.645 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.1e-07/0.561, allocations: 0 / 0.8597 GB, free: 2.645 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003071/0.5613, allocations: 71.95 kB / 0.8598 GB, free: 2.574 MB / 0.5261 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.0002145/0.5616, allocations: 136.7 kB / 0.8599 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0005132/0.5621, allocations: 319.2 kB / 0.8602 GB, free: 2.109 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5621, allocations: 0 / 0.8602 GB, free: 2.109 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002703/0.5624, allocations: 207.5 kB / 0.8604 GB, free: 1.895 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.5627, allocations: 36.47 kB / 0.8604 GB, free: 1.859 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001/0.5637, allocations: 0.5183 MB / 0.8609 GB, free: 1.312 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.564, allocations: 0.7517 MB / 0.8617 GB, free: 0.5352 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.645e-05/0.5641, allocations: 13.42 kB / 0.8617 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.368e-05/0.5641, allocations: 19.44 kB / 0.8617 GB, free: 0.5039 MB / 0.5261 GB Notification: Performance of SimCode: time 2.4e-07/0.5641, allocations: 0 / 0.8617 GB, free: 0.5039 MB / 0.5261 GB Notification: Performance of Templates: time 0.005597/0.5697, allocations: 2.54 MB / 0.8642 GB, free: 13.98 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)