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.574/1.574, allocations: 289.7 MB / 302.2 MB, free: 2.152 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.001061/0.00106, allocations: 178.1 kB / 371.6 MB, free: 3.375 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.479/1.479, allocations: 205.2 MB / 0.6309 GB, free: 11.75 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.0008026/0.0008026, allocations: 95.72 kB / 0.745 GB, free: 54.54 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.067e-05, allocations: 4 kB / 0.8662 GB, free: 15.06 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2122, allocations: 116.3 MB / 0.9798 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6319/0.8442, allocations: 142.1 MB / 1.119 GB, free: 42.35 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.8444, allocations: 89.98 kB / 1.119 GB, free: 42.31 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01507/0.8595, allocations: 5.807 MB / 1.124 GB, free: 39.01 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.166e-06/0.8596, allocations: 3.469 kB / 1.124 GB, free: 39.01 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.972e-05/0.8596, allocations: 7.938 kB / 1.124 GB, free: 39 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.0007494/0.8604, allocations: 0.5453 MB / 1.125 GB, free: 38.46 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.8604, allocations: 12.03 kB / 1.125 GB, free: 38.45 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.8605, allocations: 37.48 kB / 1.125 GB, free: 38.42 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004085/0.8609, allocations: 281.2 kB / 1.125 GB, free: 38.15 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.861, allocations: 14.95 kB / 1.125 GB, free: 38.14 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.963e-05/0.861, allocations: 19.84 kB / 1.125 GB, free: 38.12 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.8614, allocations: 241.3 kB / 1.125 GB, free: 37.95 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.8614, allocations: 3.984 kB / 1.125 GB, free: 37.94 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.8615, allocations: 11.19 kB / 1.125 GB, free: 37.93 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.8615, allocations: 0 / 1.125 GB, free: 37.93 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.8617, allocations: 143.1 kB / 1.126 GB, free: 37.85 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008519/0.8625, allocations: 0.7316 MB / 1.126 GB, free: 37.25 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.8628, allocations: 165.3 kB / 1.126 GB, free: 37.14 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.8629, allocations: 104.2 kB / 1.127 GB, free: 37.07 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.8629, allocations: 4 kB / 1.127 GB, free: 37.07 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002075/0.8632, allocations: 182.3 kB / 1.127 GB, free: 36.93 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.8632, allocations: 0 / 1.127 GB, free: 36.93 MB / 0.7448 GB Notification: Performance of matching and sorting (n=15): time 0.0005338/0.8637, allocations: 345.2 kB / 1.127 GB, free: 36.67 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.8638, allocations: 128.5 kB / 1.127 GB, free: 36.51 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.864, allocations: 251.1 kB / 1.127 GB, free: 36.32 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.864, allocations: 37.11 kB / 1.127 GB, free: 36.28 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.994e-05/0.8641, allocations: 156.8 kB / 1.128 GB, free: 36.17 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.427e-05/0.8642, allocations: 42.38 kB / 1.128 GB, free: 36.14 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.8642, allocations: 3.438 kB / 1.128 GB, free: 36.14 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.209e-05/0.8643, allocations: 344.4 kB / 1.128 GB, free: 35.81 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.8644, allocations: 97.05 kB / 1.128 GB, free: 35.75 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.8645, allocations: 140.5 kB / 1.128 GB, free: 35.63 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.8647, allocations: 123.2 kB / 1.128 GB, free: 35.54 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.8647, allocations: 0.75 kB / 1.128 GB, free: 35.54 MB / 0.7448 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004515/0.8651, allocations: 378.5 kB / 1.129 GB, free: 35.26 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.8652, allocations: 37.83 kB / 1.129 GB, free: 35.21 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.8652, allocations: 0 / 1.129 GB, free: 35.21 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.784e-05/0.8652, allocations: 7.516 kB / 1.129 GB, free: 35.21 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001469/0.8654, allocations: 31.83 kB / 1.129 GB, free: 35.19 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.8654, allocations: 4 kB / 1.129 GB, free: 35.18 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.8656, allocations: 42.92 kB / 1.129 GB, free: 35.15 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.359e-05/0.8656, allocations: 12.16 kB / 1.129 GB, free: 35.14 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 () * 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 8.763e-05/0.8657, allocations: 148.9 kB / 1.129 GB, free: 34.99 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.54e-05/0.8658, allocations: 27.67 kB / 1.129 GB, free: 34.96 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.899e-05/0.8658, allocations: 31.8 kB / 1.129 GB, free: 34.95 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.8658, allocations: 0 / 1.129 GB, free: 34.95 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.8658, allocations: 0 / 1.129 GB, free: 34.95 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.8659, allocations: 0 / 1.129 GB, free: 34.95 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.8661, allocations: 304 kB / 1.129 GB, free: 34.7 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.8661, allocations: 0 / 1.129 GB, free: 34.7 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.8662, allocations: 24.44 kB / 1.129 GB, free: 34.68 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.8662, allocations: 0 / 1.129 GB, free: 34.68 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.3e-05/0.8662, allocations: 14.45 kB / 1.129 GB, free: 34.68 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.8663, allocations: 4.547 kB / 1.129 GB, free: 34.67 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.8663, allocations: 0 / 1.129 GB, free: 34.67 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006362/0.8669, allocations: 0.5201 MB / 1.13 GB, free: 34.28 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.476e-05/0.867, allocations: 96.33 kB / 1.13 GB, free: 34.17 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.867, allocations: 14.75 kB / 1.13 GB, free: 34.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.8672, allocations: 34.75 kB / 1.13 GB, free: 34.14 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.525e-05/0.8673, allocations: 30.58 kB / 1.13 GB, free: 34.12 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.8673, allocations: 15.81 kB / 1.13 GB, free: 34.11 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001442/0.8674, allocations: 199 kB / 1.13 GB, free: 33.96 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8674, allocations: 0 / 1.13 GB, free: 33.96 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002883/0.8677, allocations: 63.62 kB / 1.13 GB, free: 33.9 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) * 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.000226/0.868, allocations: 134.5 kB / 1.13 GB, free: 33.77 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003153/0.8683, allocations: 275.2 kB / 1.131 GB, free: 33.57 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.8683, allocations: 4.188 kB / 1.131 GB, free: 33.57 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001459/0.8685, allocations: 181.9 kB / 1.131 GB, free: 33.43 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.8687, allocations: 24.16 kB / 1.131 GB, free: 33.41 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007034/0.8694, allocations: 358.4 kB / 1.131 GB, free: 33.13 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00016/0.8696, allocations: 0.7573 MB / 1.132 GB, free: 32.38 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 8.137e-05/0.8697, allocations: 20.53 kB / 1.132 GB, free: 32.36 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.587e-05/0.8697, allocations: 18.67 kB / 1.132 GB, free: 32.35 MB / 0.7448 GB Notification: Performance of SimCode: time 3.21e-07/0.8697, allocations: 0 / 1.132 GB, free: 32.35 MB / 0.7448 GB Notification: Performance of Templates: time 0.005017/0.8748, allocations: 2.53 MB / 1.134 GB, free: 30.94 MB / 0.7448 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)