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/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 105.1 kB / 16.41 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 189.7 kB / 17.35 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002106/0.002106, allocations: 286.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.052/1.052, allocations: 169.2 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 95.84 kB / 0.6821 GB, free: 6.949 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5736/0.5756, allocations: 86.96 MB / 0.767 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003488/0.5791, allocations: 1.954 MB / 0.7689 GB, free: 1.934 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001448/0.5806, allocations: 0.7091 MB / 0.7696 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001906/0.5808, allocations: 3.938 kB / 0.7696 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002607/0.5811, allocations: 79.64 kB / 0.7697 GB, free: 1.137 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.5813, allocations: 99.56 kB / 0.7698 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006739/0.582, allocations: 190.5 kB / 0.77 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003762/0.5823, allocations: 259.5 kB / 0.7702 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001954/0.5825, allocations: 77.62 kB / 0.7703 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.5827, allocations: 111.7 kB / 0.7704 GB, free: 428 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.583, allocations: 151.5 kB / 0.7706 GB, free: 276 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.619e-05/0.583, allocations: 31.92 kB / 0.7706 GB, free: 244 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.5832, allocations: 91.92 kB / 0.7707 GB, free: 152 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.5833, allocations: 51.84 kB / 0.7707 GB, free: 100 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.5834, allocations: 107.5 kB / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004077/0.5839, allocations: 309.4 kB / 0.7711 GB, free: 15.69 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.5839, allocations: 4 kB / 0.7711 GB, free: 15.69 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.024e-06/0.5839, allocations: 0 / 0.7711 GB, free: 15.69 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.5839, allocations: 0 / 0.7711 GB, free: 15.69 MB / 0.545 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.0009147/0.5848, allocations: 0.5702 MB / 0.7717 GB, free: 15.06 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.5849, allocations: 12.02 kB / 0.7717 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.745e-05/0.5849, allocations: 32.56 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005259/0.5855, allocations: 306.9 kB / 0.772 GB, free: 14.68 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.5855, allocations: 16.38 kB / 0.772 GB, free: 14.67 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.066e-05/0.5856, allocations: 16.38 kB / 0.772 GB, free: 14.65 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003941/0.586, allocations: 231.2 kB / 0.7723 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.586, allocations: 0 / 0.7723 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.586, allocations: 4 kB / 0.7723 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.586, allocations: 4 kB / 0.7723 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.5863, allocations: 132.1 kB / 0.7724 GB, free: 14.27 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008914/0.5872, allocations: 0.6769 MB / 0.7731 GB, free: 13.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003731/0.5876, allocations: 174.3 kB / 0.7732 GB, free: 13.36 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.5877, allocations: 101 kB / 0.7733 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.5878, allocations: 4 kB / 0.7733 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002664/0.588, allocations: 173 kB / 0.7735 GB, free: 13.06 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.5881, allocations: 0 / 0.7735 GB, free: 13.06 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0006787/0.5887, allocations: 367 kB / 0.7738 GB, free: 12.69 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.01e-05/0.5888, allocations: 140.5 kB / 0.774 GB, free: 12.52 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002653/0.5891, allocations: 278.6 kB / 0.7742 GB, free: 12.25 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.5891, allocations: 33.7 kB / 0.7743 GB, free: 12.21 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.5893, allocations: 156.2 kB / 0.7744 GB, free: 12.05 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.5893, allocations: 39.45 kB / 0.7745 GB, free: 12.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.16e-05/0.5894, allocations: 41.7 kB / 0.7745 GB, free: 11.97 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.5895, allocations: 334.8 kB / 0.7748 GB, free: 11.63 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.5897, allocations: 99.83 kB / 0.7749 GB, free: 11.54 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.5899, allocations: 126 kB / 0.775 GB, free: 11.39 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.5902, allocations: 253.1 kB / 0.7753 GB, free: 11.12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5902, allocations: 0 / 0.7753 GB, free: 11.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005243/0.5908, allocations: 331 kB / 0.7756 GB, free: 10.79 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/0.5908, allocations: 44.03 kB / 0.7756 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.5908, allocations: 0 / 0.7756 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.5909, allocations: 4 kB / 0.7756 GB, free: 10.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.591, allocations: 27.86 kB / 0.7757 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.591, allocations: 4.094 kB / 0.7757 GB, free: 10.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.5912, allocations: 27.83 kB / 0.7757 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.5912, allocations: 12 kB / 0.7757 GB, free: 10.67 MB / 0.545 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 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001806/0.5914, allocations: 195.3 kB / 0.7759 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.353e-05/0.5914, allocations: 31.7 kB / 0.7759 GB, free: 10.43 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.828e-05/0.5915, allocations: 29.83 kB / 0.7759 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.5915, allocations: 0 / 0.7759 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5915, allocations: 4 kB / 0.776 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5915, allocations: 0 / 0.776 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.5918, allocations: 293.4 kB / 0.7762 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.5918, allocations: 0 / 0.7762 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.5919, allocations: 19.92 kB / 0.7763 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.5919, allocations: 0 / 0.7763 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/0.5919, allocations: 4 kB / 0.7763 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.5919, allocations: 0 / 0.7763 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.592, allocations: 3.984 kB / 0.7763 GB, free: 10.03 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006979/0.5927, allocations: 477.7 kB / 0.7767 GB, free: 9.543 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.5927, allocations: 96.92 kB / 0.7768 GB, free: 9.43 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.537e-05/0.5928, allocations: 11.94 kB / 0.7768 GB, free: 9.418 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.5929, allocations: 11.98 kB / 0.7768 GB, free: 9.406 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.474e-05/0.593, allocations: 23.97 kB / 0.7769 GB, free: 9.383 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.593, allocations: 11.98 kB / 0.7769 GB, free: 9.371 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001716/0.5932, allocations: 202 kB / 0.7771 GB, free: 9.18 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5932, allocations: 0 / 0.7771 GB, free: 9.18 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002843/0.5935, allocations: 59.84 kB / 0.7771 GB, free: 9.121 MB / 0.545 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 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001981/0.5937, allocations: 135.2 kB / 0.7772 GB, free: 8.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004708/0.5942, allocations: 291.2 kB / 0.7775 GB, free: 8.684 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5942, allocations: 8.188 kB / 0.7775 GB, free: 8.676 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002379/0.5944, allocations: 187.2 kB / 0.7777 GB, free: 8.48 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.5947, allocations: 30.61 kB / 0.7777 GB, free: 8.453 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.5958, allocations: 498.9 kB / 0.7782 GB, free: 7.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.5961, allocations: 0.7514 MB / 0.7789 GB, free: 7.152 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.855e-05/0.5962, allocations: 23.42 kB / 0.779 GB, free: 7.129 MB / 0.545 GB Notification: Performance of SimCode: time 1.964e-06/0.5962, allocations: 0 / 0.779 GB, free: 7.129 MB / 0.545 GB Notification: Performance of Templates: time 0.005772/0.6019, allocations: 3.011 MB / 0.7819 GB, free: 4.125 MB / 0.545 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)