Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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) 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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.824/1.824, allocations: 292.6 MB / 307.5 MB, free: 5.188 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001189/0.001189, allocations: 192.5 kB / 377.1 MB, free: 1.512 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.952/1.952, allocations: 205.4 MB / 0.6367 GB, free: 8.629 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 95.98 kB / 0.751 GB, free: 63.27 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003784/0.0003785, allocations: 16 kB / 0.8748 GB, free: 11.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3186, allocations: 116.3 MB / 0.9884 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.03/1.348, allocations: 142.2 MB / 1.127 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003643/1.349, allocations: 87.47 kB / 1.127 GB, free: 33.14 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01681/1.366, allocations: 5.825 MB / 1.133 GB, free: 28.98 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.535e-06/1.366, allocations: 0 / 1.133 GB, free: 28.98 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.16e-05/1.366, allocations: 8.562 kB / 1.133 GB, free: 28.97 MB / 0.7292 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.001056/1.367, allocations: 0.5936 MB / 1.134 GB, free: 28.36 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/1.367, allocations: 16.02 kB / 1.134 GB, free: 28.35 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.635e-05/1.367, allocations: 25.78 kB / 1.134 GB, free: 28.32 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005005/1.368, allocations: 294.6 kB / 1.134 GB, free: 28.02 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/1.368, allocations: 9.25 kB / 1.134 GB, free: 28.02 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.58e-05/1.368, allocations: 20 kB / 1.134 GB, free: 28 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005664/1.368, allocations: 269.3 kB / 1.134 GB, free: 27.75 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/1.368, allocations: 2.906 kB / 1.134 GB, free: 27.75 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/1.368, allocations: 4 kB / 1.134 GB, free: 27.75 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.832e-06/1.368, allocations: 4 kB / 1.134 GB, free: 27.75 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003495/1.369, allocations: 163.3 kB / 1.134 GB, free: 27.61 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/1.37, allocations: 0.7363 MB / 1.135 GB, free: 26.91 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005474/1.371, allocations: 223 kB / 1.135 GB, free: 26.71 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/1.371, allocations: 0 / 1.135 GB, free: 26.71 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004299/1.371, allocations: 206 kB / 1.135 GB, free: 26.53 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/1.371, allocations: 0.9375 kB / 1.135 GB, free: 26.53 MB / 0.7292 GB Notification: Performance of matching and sorting (n=15): time 0.001218/1.372, allocations: 0.5616 MB / 1.136 GB, free: 26 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/1.372, allocations: 133 kB / 1.136 GB, free: 25.84 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003474/1.373, allocations: 253.2 kB / 1.136 GB, free: 25.61 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/1.373, allocations: 25.7 kB / 1.136 GB, free: 25.58 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/1.373, allocations: 157.3 kB / 1.137 GB, free: 25.43 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.639e-05/1.373, allocations: 51.09 kB / 1.137 GB, free: 25.39 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/1.373, allocations: 4 kB / 1.137 GB, free: 25.38 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001532/1.373, allocations: 339.6 kB / 1.137 GB, free: 25.05 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/1.374, allocations: 118.8 kB / 1.137 GB, free: 24.95 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/1.374, allocations: 164.9 kB / 1.137 GB, free: 24.79 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/1.374, allocations: 142.8 kB / 1.137 GB, free: 24.66 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/1.374, allocations: 0 / 1.137 GB, free: 24.66 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007702/1.375, allocations: 416.5 kB / 1.138 GB, free: 24.28 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.483e-05/1.375, allocations: 36.38 kB / 1.138 GB, free: 24.24 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/1.375, allocations: 4 kB / 1.138 GB, free: 24.24 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.608e-05/1.375, allocations: 0.75 kB / 1.138 GB, free: 24.24 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/1.375, allocations: 35.69 kB / 1.138 GB, free: 24.21 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/1.375, allocations: 0.6094 kB / 1.138 GB, free: 24.21 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/1.375, allocations: 39.22 kB / 1.138 GB, free: 24.18 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.479e-05/1.375, allocations: 17.3 kB / 1.138 GB, free: 24.16 MB / 0.7292 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.0002329/1.376, allocations: 186 kB / 1.138 GB, free: 23.97 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.561e-05/1.376, allocations: 32.95 kB / 1.138 GB, free: 23.94 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.837e-05/1.376, allocations: 24.94 kB / 1.138 GB, free: 23.92 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/1.376, allocations: 8 kB / 1.138 GB, free: 23.91 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/1.376, allocations: 4.641 kB / 1.138 GB, free: 23.91 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/1.376, allocations: 0.7969 kB / 1.138 GB, free: 23.91 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004172/1.376, allocations: 296.9 kB / 1.138 GB, free: 23.62 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/1.376, allocations: 1.25 kB / 1.138 GB, free: 23.62 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/1.377, allocations: 23.61 kB / 1.138 GB, free: 23.6 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/1.377, allocations: 0 / 1.138 GB, free: 23.6 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.556e-05/1.377, allocations: 13.78 kB / 1.138 GB, free: 23.59 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/1.377, allocations: 0 / 1.138 GB, free: 23.59 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.377, allocations: 4.656 kB / 1.138 GB, free: 23.58 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/1.378, allocations: 0.5874 MB / 1.139 GB, free: 23.04 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.547e-05/1.378, allocations: 103.6 kB / 1.139 GB, free: 22.92 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/1.378, allocations: 9.75 kB / 1.139 GB, free: 22.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/1.378, allocations: 34.67 kB / 1.139 GB, free: 22.89 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/1.378, allocations: 32.66 kB / 1.139 GB, free: 22.87 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.273e-05/1.378, allocations: 9.359 kB / 1.139 GB, free: 22.86 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002605/1.379, allocations: 201.5 kB / 1.139 GB, free: 22.69 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.61e-07/1.379, allocations: 0 / 1.139 GB, free: 22.69 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000437/1.379, allocations: 65.34 kB / 1.139 GB, free: 22.62 MB / 0.7292 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.0003382/1.379, allocations: 126.2 kB / 1.14 GB, free: 22.5 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007064/1.38, allocations: 323.1 kB / 1.14 GB, free: 22.2 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.38, allocations: 0 / 1.14 GB, free: 22.2 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003221/1.381, allocations: 201.6 kB / 1.14 GB, free: 22 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/1.381, allocations: 25.3 kB / 1.14 GB, free: 21.98 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/1.382, allocations: 0.5166 MB / 1.141 GB, free: 21.49 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/1.383, allocations: 0.7629 MB / 1.141 GB, free: 20.74 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001002/1.383, allocations: 14.59 kB / 1.141 GB, free: 20.73 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.208e-05/1.383, allocations: 16.23 kB / 1.141 GB, free: 20.71 MB / 0.7292 GB Notification: Performance of SimCode: time 2.5e-07/1.383, allocations: 4 kB / 1.141 GB, free: 20.71 MB / 0.7292 GB Notification: Performance of Templates: time 0.008839/1.392, allocations: 2.504 MB / 1.144 GB, free: 19.31 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)