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.8602/0.8602, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009789/0.000979, allocations: 184.7 kB / 187.3 MB, free: 11.87 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.457/1.457, allocations: 221.3 MB / 441.4 MB, free: 4.605 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.0009841/0.0009843, allocations: 94.02 kB / 0.5124 GB, free: 24.22 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001857/0.001858, allocations: 278.6 kB / 0.5939 GB, free: 7.977 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.583e-05/3.602e-05, allocations: 4 kB / 0.6834 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.454/0.454, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1265/0.5806, allocations: 111.7 MB / 0.8733 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.5809, allocations: 84.42 kB / 0.8734 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01621/0.5971, allocations: 5.891 MB / 0.8792 GB, free: 6.922 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.824e-06/0.5972, allocations: 0 / 0.8792 GB, free: 6.922 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.557e-05/0.5972, allocations: 8 kB / 0.8792 GB, free: 6.914 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.0008016/0.598, allocations: 0.5463 MB / 0.8797 GB, free: 6.316 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.598, allocations: 8.031 kB / 0.8797 GB, free: 6.309 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.54e-05/0.5981, allocations: 27.72 kB / 0.8797 GB, free: 6.281 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.5986, allocations: 289.6 kB / 0.88 GB, free: 5.961 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.5986, allocations: 15.92 kB / 0.88 GB, free: 5.945 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.944e-05/0.5986, allocations: 16 kB / 0.88 GB, free: 5.93 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003691/0.599, allocations: 239.2 kB / 0.8803 GB, free: 5.668 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.599, allocations: 0 / 0.8803 GB, free: 5.668 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.5991, allocations: 8 kB / 0.8803 GB, free: 5.66 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.5991, allocations: 4 kB / 0.8803 GB, free: 5.656 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002183/0.5993, allocations: 136.4 kB / 0.8804 GB, free: 5.523 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008977/0.6002, allocations: 0.747 MB / 0.8811 GB, free: 4.719 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.6005, allocations: 154.6 kB / 0.8813 GB, free: 4.559 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.6006, allocations: 108.9 kB / 0.8814 GB, free: 4.449 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.6006, allocations: 0 / 0.8814 GB, free: 4.449 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002427/0.6009, allocations: 197 kB / 0.8816 GB, free: 4.238 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.6009, allocations: 0 / 0.8816 GB, free: 4.238 MB / 0.5417 GB Notification: Performance of matching and sorting (n=15): time 0.0005474/0.6014, allocations: 340.5 kB / 0.8819 GB, free: 3.895 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/0.6015, allocations: 132.5 kB / 0.882 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002272/0.6018, allocations: 247.2 kB / 0.8823 GB, free: 3.492 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.6018, allocations: 25.7 kB / 0.8823 GB, free: 3.461 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.6019, allocations: 164.2 kB / 0.8825 GB, free: 3.297 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.854e-05/0.602, allocations: 35.41 kB / 0.8825 GB, free: 3.262 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.602, allocations: 11.94 kB / 0.8825 GB, free: 3.25 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.6021, allocations: 342.8 kB / 0.8828 GB, free: 2.906 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.6022, allocations: 92.16 kB / 0.8829 GB, free: 2.812 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.6024, allocations: 137.5 kB / 0.883 GB, free: 2.66 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.6025, allocations: 122.8 kB / 0.8832 GB, free: 2.535 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.6026, allocations: 8.031 kB / 0.8832 GB, free: 2.527 MB / 0.5417 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000484/0.603, allocations: 372.6 kB / 0.8835 GB, free: 2.152 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.6031, allocations: 37.66 kB / 0.8836 GB, free: 2.109 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.6031, allocations: 3.984 kB / 0.8836 GB, free: 2.105 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.6031, allocations: 4 kB / 0.8836 GB, free: 2.102 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.6033, allocations: 27.98 kB / 0.8836 GB, free: 2.074 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.6033, allocations: 0 / 0.8836 GB, free: 2.074 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001648/0.6035, allocations: 43.92 kB / 0.8836 GB, free: 2.031 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.6035, allocations: 19.98 kB / 0.8837 GB, free: 2.012 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.0001078/0.6036, allocations: 145.1 kB / 0.8838 GB, free: 1.859 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/0.6037, allocations: 27.72 kB / 0.8838 GB, free: 1.832 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.146e-05/0.6037, allocations: 37.91 kB / 0.8839 GB, free: 1.793 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.6037, allocations: 4 kB / 0.8839 GB, free: 1.789 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.6037, allocations: 0 / 0.8839 GB, free: 1.789 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.6038, allocations: 0 / 0.8839 GB, free: 1.789 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.604, allocations: 293.5 kB / 0.8841 GB, free: 1.453 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.604, allocations: 0 / 0.8841 GB, free: 1.453 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.6041, allocations: 27.98 kB / 0.8842 GB, free: 1.426 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.6041, allocations: 0 / 0.8842 GB, free: 1.426 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.6042, allocations: 7.984 kB / 0.8842 GB, free: 1.418 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.6042, allocations: 7.953 kB / 0.8842 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.6042, allocations: 0 / 0.8842 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007293/0.6049, allocations: 0.5172 MB / 0.8847 GB, free: 0.8711 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.297e-05/0.605, allocations: 104.8 kB / 0.8848 GB, free: 0.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.605, allocations: 8 kB / 0.8848 GB, free: 0.7422 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.6052, allocations: 32.22 kB / 0.8848 GB, free: 0.7109 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.055e-05/0.6053, allocations: 31.91 kB / 0.8849 GB, free: 0.6797 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.6053, allocations: 15.92 kB / 0.8849 GB, free: 0.6641 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001591/0.6055, allocations: 199.1 kB / 0.8851 GB, free: 476 kB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6055, allocations: 0 / 0.8851 GB, free: 476 kB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002804/0.6058, allocations: 67.84 kB / 0.8851 GB, free: 408 kB / 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.0002253/0.606, allocations: 145.2 kB / 0.8853 GB, free: 256 kB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000352/0.6064, allocations: 275.3 kB / 0.8855 GB, free: 15.97 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.6064, allocations: 0 / 0.8855 GB, free: 15.97 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0001628/0.6066, allocations: 175.3 kB / 0.8857 GB, free: 15.79 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002294/0.6068, allocations: 28.48 kB / 0.8857 GB, free: 15.76 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007592/0.6076, allocations: 360.2 kB / 0.8861 GB, free: 15.39 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.6079, allocations: 0.7558 MB / 0.8868 GB, free: 14.61 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 8.225e-05/0.6079, allocations: 25.19 kB / 0.8868 GB, free: 14.57 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.056e-05/0.608, allocations: 19.44 kB / 0.8868 GB, free: 14.56 MB / 0.5573 GB Notification: Performance of SimCode: time 2.3e-07/0.608, allocations: 0 / 0.8868 GB, free: 14.56 MB / 0.5573 GB Notification: Performance of Templates: time 0.005293/0.6133, allocations: 2.514 MB / 0.8893 GB, free: 12.08 MB / 0.5573 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)