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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 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.8473/0.8473, allocations: 141.8 MB / 149.3 MB, free: 9.207 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000971/0.0009712, allocations: 180.8 kB / 182.2 MB, free: 9.441 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 221.5 MB / 436.4 MB, free: 13.26 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008341/0.0008341, allocations: 87.8 kB / 0.5074 GB, free: 10.1 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001663/0.001663, allocations: 275.4 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.972e-05/1.975e-05, allocations: 4 kB / 0.6765 GB, free: 12.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4034/0.4034, allocations: 82.78 MB / 0.7574 GB, free: 32.02 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.5384, allocations: 111 MB / 0.8658 GB, free: 0.8477 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.5387, allocations: 87.81 kB / 0.8659 GB, free: 0.7656 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01623/0.5549, allocations: 5.848 MB / 0.8716 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.278e-06/0.555, allocations: 0 / 0.8716 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.157e-05/0.555, allocations: 15.94 kB / 0.8716 GB, free: 10.89 MB / 0.5417 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.0008315/0.5559, allocations: 0.5424 MB / 0.8721 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.5559, allocations: 8.031 kB / 0.8721 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.026e-05/0.556, allocations: 27.72 kB / 0.8722 GB, free: 10.26 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.5565, allocations: 297.4 kB / 0.8724 GB, free: 9.934 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.5565, allocations: 4 kB / 0.8724 GB, free: 9.93 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.553e-05/0.5565, allocations: 8 kB / 0.8725 GB, free: 9.922 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002329/0.5568, allocations: 128.2 kB / 0.8726 GB, free: 9.793 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000311/0.5571, allocations: 223.1 kB / 0.8728 GB, free: 9.551 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.5571, allocations: 0 / 0.8728 GB, free: 9.551 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.5572, allocations: 4 kB / 0.8728 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.5572, allocations: 7.984 kB / 0.8728 GB, free: 9.539 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008864/0.5581, allocations: 0.689 MB / 0.8735 GB, free: 8.805 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.5583, allocations: 158.5 kB / 0.8736 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.5584, allocations: 96.97 kB / 0.8737 GB, free: 8.543 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.5585, allocations: 4 kB / 0.8737 GB, free: 8.539 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002255/0.5587, allocations: 189 kB / 0.8739 GB, free: 8.336 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 2.766e-06/0.5587, allocations: 0 / 0.8739 GB, free: 8.336 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.0005675/0.5593, allocations: 302.8 kB / 0.8742 GB, free: 8.035 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.5593, allocations: 132.5 kB / 0.8743 GB, free: 7.875 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.5596, allocations: 230 kB / 0.8745 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.5596, allocations: 25.7 kB / 0.8746 GB, free: 7.617 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.5597, allocations: 160.2 kB / 0.8747 GB, free: 7.457 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.5597, allocations: 39.55 kB / 0.8747 GB, free: 7.418 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.424e-05/0.5598, allocations: 7.938 kB / 0.8748 GB, free: 7.41 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.5599, allocations: 334.8 kB / 0.8751 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.56, allocations: 92.16 kB / 0.8752 GB, free: 6.98 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.5602, allocations: 135.1 kB / 0.8753 GB, free: 6.832 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001554/0.5603, allocations: 92.61 kB / 0.8754 GB, free: 6.742 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5603, allocations: 4 kB / 0.8754 GB, free: 6.738 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004679/0.5608, allocations: 330.1 kB / 0.8757 GB, free: 6.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.239e-05/0.5609, allocations: 37.69 kB / 0.8757 GB, free: 6.367 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.5609, allocations: 4 kB / 0.8757 GB, free: 6.363 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.5609, allocations: 3.953 kB / 0.8757 GB, free: 6.359 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.5611, allocations: 31.92 kB / 0.8758 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.5611, allocations: 0 / 0.8758 GB, free: 6.328 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.5612, allocations: 40 kB / 0.8758 GB, free: 6.289 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.34e-05/0.5613, allocations: 12 kB / 0.8758 GB, free: 6.277 MB / 0.5417 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 0.0001085/0.5614, allocations: 143.5 kB / 0.876 GB, free: 6.125 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.5614, allocations: 23.72 kB / 0.876 GB, free: 6.102 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.36e-05/0.5615, allocations: 33.97 kB / 0.876 GB, free: 6.066 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.5615, allocations: 0 / 0.876 GB, free: 6.066 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.5615, allocations: 7.938 kB / 0.876 GB, free: 6.059 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5615, allocations: 0 / 0.876 GB, free: 6.059 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000218/0.5618, allocations: 265.9 kB / 0.8763 GB, free: 5.762 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.5618, allocations: 3.984 kB / 0.8763 GB, free: 5.758 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.5619, allocations: 20 kB / 0.8763 GB, free: 5.738 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.5619, allocations: 3.938 kB / 0.8763 GB, free: 5.734 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.5619, allocations: 7.984 kB / 0.8763 GB, free: 5.727 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.5619, allocations: 4 kB / 0.8763 GB, free: 5.723 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.562, allocations: 0 / 0.8763 GB, free: 5.723 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006855/0.5626, allocations: 491.8 kB / 0.8768 GB, free: 5.223 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.846e-05/0.5627, allocations: 100.8 kB / 0.8769 GB, free: 5.105 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.515e-05/0.5628, allocations: 4 kB / 0.8769 GB, free: 5.102 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.5629, allocations: 28.05 kB / 0.8769 GB, free: 5.074 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.59e-05/0.563, allocations: 27.95 kB / 0.8769 GB, free: 5.047 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-05/0.5631, allocations: 15.98 kB / 0.877 GB, free: 5.031 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001455/0.5632, allocations: 182 kB / 0.8771 GB, free: 4.852 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5632, allocations: 0 / 0.8771 GB, free: 4.852 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002741/0.5635, allocations: 55.94 kB / 0.8772 GB, free: 4.797 MB / 0.5417 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.0002128/0.5637, allocations: 140.6 kB / 0.8773 GB, free: 4.652 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003045/0.564, allocations: 263.3 kB / 0.8776 GB, free: 4.383 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.564, allocations: 0 / 0.8776 GB, free: 4.383 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.5642, allocations: 175.4 kB / 0.8777 GB, free: 4.199 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002247/0.5644, allocations: 25.23 kB / 0.8778 GB, free: 4.176 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007419/0.5652, allocations: 347.2 kB / 0.8781 GB, free: 3.816 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.5655, allocations: 0.76 MB / 0.8788 GB, free: 3.031 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.954e-05/0.5656, allocations: 17.2 kB / 0.8788 GB, free: 3.012 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.027e-05/0.5656, allocations: 15.44 kB / 0.8789 GB, free: 3 MB / 0.5417 GB Notification: Performance of SimCode: time 2.5e-07/0.5656, allocations: 0 / 0.8789 GB, free: 3 MB / 0.5417 GB Notification: Performance of Templates: time 0.005106/0.5707, allocations: 2.34 MB / 0.8811 GB, free: 0.6914 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)