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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.769/1.769, allocations: 293 MB / 309 MB, free: 4.676 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.001098/0.001099, allocations: 182.6 kB / 378.7 MB, free: 0.8906 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.834/1.834, allocations: 205.4 MB / 0.6383 GB, free: 9.219 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.001283/0.001283, allocations: 92.38 kB / 0.7527 GB, free: 62.08 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000438/0.0004381, allocations: 15.98 kB / 0.8768 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3034, allocations: 116.4 MB / 0.9904 GB, free: 6.066 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9339/1.237, allocations: 142.3 MB / 1.129 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/1.238, allocations: 82.48 kB / 1.129 GB, free: 32.41 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01609/1.254, allocations: 5.86 MB / 1.135 GB, free: 28.25 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.036e-06/1.254, allocations: 4 kB / 1.135 GB, free: 28.25 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.532e-05/1.254, allocations: 4.656 kB / 1.135 GB, free: 28.24 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.001118/1.255, allocations: 0.597 MB / 1.136 GB, free: 27.63 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/1.255, allocations: 8.031 kB / 1.136 GB, free: 27.62 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/1.255, allocations: 29.17 kB / 1.136 GB, free: 27.59 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/1.256, allocations: 295.3 kB / 1.136 GB, free: 27.29 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/1.256, allocations: 12.38 kB / 1.136 GB, free: 27.28 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/1.256, allocations: 16.38 kB / 1.136 GB, free: 27.27 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005699/1.257, allocations: 265.4 kB / 1.136 GB, free: 27.02 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/1.257, allocations: 3.188 kB / 1.136 GB, free: 27.02 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/1.257, allocations: 15.94 kB / 1.136 GB, free: 27.01 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/1.257, allocations: 4 kB / 1.136 GB, free: 27 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003629/1.257, allocations: 158.9 kB / 1.137 GB, free: 26.87 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/1.258, allocations: 0.7357 MB / 1.137 GB, free: 26.17 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005246/1.259, allocations: 224.3 kB / 1.137 GB, free: 25.97 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002567/1.259, allocations: 122.4 kB / 1.138 GB, free: 25.87 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/1.259, allocations: 3.938 kB / 1.138 GB, free: 25.86 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003857/1.259, allocations: 211.9 kB / 1.138 GB, free: 25.67 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=15): time 3.146e-06/1.259, allocations: 0 / 1.138 GB, free: 25.67 MB / 0.7292 GB Notification: Performance of matching and sorting (n=15): time 0.001066/1.261, allocations: 491.9 kB / 1.138 GB, free: 25.24 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/1.261, allocations: 137.1 kB / 1.138 GB, free: 25.07 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/1.261, allocations: 279.6 kB / 1.139 GB, free: 24.83 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/1.261, allocations: 33.7 kB / 1.139 GB, free: 24.79 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/1.261, allocations: 157 kB / 1.139 GB, free: 24.64 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.917e-05/1.261, allocations: 51.48 kB / 1.139 GB, free: 24.59 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.161e-05/1.261, allocations: 0.5625 kB / 1.139 GB, free: 24.59 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.752e-05/1.261, allocations: 338.6 kB / 1.139 GB, free: 24.26 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/1.262, allocations: 117.3 kB / 1.139 GB, free: 24.16 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/1.262, allocations: 164.6 kB / 1.139 GB, free: 24.01 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004687/1.262, allocations: 302.8 kB / 1.14 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/1.262, allocations: 0 / 1.14 GB, free: 23.72 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007261/1.263, allocations: 420.3 kB / 1.14 GB, free: 23.34 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.497e-05/1.263, allocations: 36.56 kB / 1.14 GB, free: 23.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/1.263, allocations: 4 kB / 1.14 GB, free: 23.3 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/1.263, allocations: 0 / 1.14 GB, free: 23.3 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/1.263, allocations: 37.33 kB / 1.14 GB, free: 23.27 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/1.263, allocations: 0 / 1.14 GB, free: 23.27 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/1.264, allocations: 38.78 kB / 1.14 GB, free: 23.23 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.075e-05/1.264, allocations: 16 kB / 1.14 GB, free: 23.22 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.000193/1.264, allocations: 198.2 kB / 1.14 GB, free: 23.02 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.878e-05/1.264, allocations: 28.89 kB / 1.141 GB, free: 22.99 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.7e-05/1.264, allocations: 25.08 kB / 1.141 GB, free: 22.97 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/1.264, allocations: 4.844 kB / 1.141 GB, free: 22.96 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.016e-06/1.264, allocations: 0.7031 kB / 1.141 GB, free: 22.96 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/1.264, allocations: 0 / 1.141 GB, free: 22.96 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003578/1.264, allocations: 305.4 kB / 1.141 GB, free: 22.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.264, allocations: 1.641 kB / 1.141 GB, free: 22.67 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/1.264, allocations: 26.39 kB / 1.141 GB, free: 22.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/1.264, allocations: 0 / 1.141 GB, free: 22.64 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/1.265, allocations: 9.688 kB / 1.141 GB, free: 22.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/1.265, allocations: 5.25 kB / 1.141 GB, free: 22.63 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.265, allocations: 2.016 kB / 1.141 GB, free: 22.63 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/1.266, allocations: 0.5876 MB / 1.141 GB, free: 22.09 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.404e-05/1.266, allocations: 102.1 kB / 1.142 GB, free: 21.97 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.734e-05/1.266, allocations: 8.609 kB / 1.142 GB, free: 21.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/1.266, allocations: 35.17 kB / 1.142 GB, free: 21.94 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/1.266, allocations: 26.62 kB / 1.142 GB, free: 21.93 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/1.266, allocations: 8 kB / 1.142 GB, free: 21.92 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002023/1.266, allocations: 203.9 kB / 1.142 GB, free: 21.74 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.21e-07/1.266, allocations: 3.938 kB / 1.142 GB, free: 21.74 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003384/1.267, allocations: 65.95 kB / 1.142 GB, free: 21.68 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.0002716/1.267, allocations: 130.5 kB / 1.142 GB, free: 21.54 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006086/1.268, allocations: 322.7 kB / 1.142 GB, free: 21.24 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/1.268, allocations: 0 / 1.142 GB, free: 21.24 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002547/1.268, allocations: 198.5 kB / 1.142 GB, free: 21.05 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/1.268, allocations: 33.88 kB / 1.143 GB, free: 21.02 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/1.269, allocations: 0.5243 MB / 1.143 GB, free: 20.53 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/1.27, allocations: 0.7489 MB / 1.144 GB, free: 19.78 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001077/1.27, allocations: 20.14 kB / 1.144 GB, free: 19.77 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/1.27, allocations: 16.94 kB / 1.144 GB, free: 19.75 MB / 0.7292 GB Notification: Performance of SimCode: time 5.31e-07/1.27, allocations: 0 / 1.144 GB, free: 19.75 MB / 0.7292 GB Notification: Performance of Templates: time 0.007795/1.278, allocations: 2.536 MB / 1.146 GB, free: 18.34 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)