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.001421/0.001421, allocations: 109.6 kB / 16.41 MB, free: 6.465 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.001366/0.001367, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002109/0.002109, allocations: 290.8 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9632/0.9632, allocations: 169.3 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 103.8 kB / 0.6821 GB, free: 7.027 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6207/0.6227, allocations: 86.97 MB / 0.767 GB, free: 3.98 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003364/0.6261, allocations: 1.955 MB / 0.7689 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001296/0.6275, allocations: 0.7052 MB / 0.7696 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001266/0.6276, allocations: 7.875 kB / 0.7696 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000264/0.6279, allocations: 83.64 kB / 0.7697 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.628, allocations: 87.62 kB / 0.7698 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006352/0.6287, allocations: 189.8 kB / 0.77 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003159/0.629, allocations: 263.5 kB / 0.7702 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.6292, allocations: 73.62 kB / 0.7703 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.6293, allocations: 111.6 kB / 0.7704 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.6296, allocations: 151.5 kB / 0.7706 GB, free: 364 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.849e-05/0.6296, allocations: 23.94 kB / 0.7706 GB, free: 340 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001677/0.6298, allocations: 103.9 kB / 0.7707 GB, free: 236 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.61e-05/0.6299, allocations: 51.78 kB / 0.7707 GB, free: 184 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.63, allocations: 111.3 kB / 0.7708 GB, free: 72 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.6304, allocations: 309.5 kB / 0.7711 GB, free: 15.77 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.6304, allocations: 0 / 0.7711 GB, free: 15.77 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.523e-06/0.6304, allocations: 0 / 0.7711 GB, free: 15.77 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.6304, allocations: 0 / 0.7711 GB, free: 15.77 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.0008968/0.6313, allocations: 0.5741 MB / 0.7717 GB, free: 15.14 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.6314, allocations: 12.03 kB / 0.7717 GB, free: 15.13 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.311e-05/0.6315, allocations: 32.55 kB / 0.7717 GB, free: 15.1 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005126/0.632, allocations: 298.9 kB / 0.772 GB, free: 14.77 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.632, allocations: 24.36 kB / 0.772 GB, free: 14.75 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.302e-05/0.6321, allocations: 16.31 kB / 0.7721 GB, free: 14.73 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/0.6325, allocations: 227.2 kB / 0.7723 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.6325, allocations: 0 / 0.7723 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.6325, allocations: 4 kB / 0.7723 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.6325, allocations: 4 kB / 0.7723 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.6328, allocations: 140.1 kB / 0.7724 GB, free: 14.34 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009011/0.6337, allocations: 0.6768 MB / 0.7731 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003724/0.6341, allocations: 166.5 kB / 0.7732 GB, free: 13.44 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.6343, allocations: 105 kB / 0.7733 GB, free: 13.33 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.6343, allocations: 0 / 0.7733 GB, free: 13.33 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.6346, allocations: 173 kB / 0.7735 GB, free: 13.14 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.6346, allocations: 4 kB / 0.7735 GB, free: 13.14 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.000695/0.6353, allocations: 370.9 kB / 0.7739 GB, free: 12.77 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.945e-05/0.6354, allocations: 132.5 kB / 0.774 GB, free: 12.61 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002877/0.6357, allocations: 282.6 kB / 0.7742 GB, free: 12.33 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.023e-05/0.6357, allocations: 33.7 kB / 0.7743 GB, free: 12.29 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.6359, allocations: 152.2 kB / 0.7744 GB, free: 12.14 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.6359, allocations: 43.45 kB / 0.7745 GB, free: 12.09 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.529e-05/0.636, allocations: 41.7 kB / 0.7745 GB, free: 12.05 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.6362, allocations: 338.8 kB / 0.7748 GB, free: 11.71 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001683/0.6364, allocations: 91.89 kB / 0.7749 GB, free: 11.62 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.6365, allocations: 122.4 kB / 0.775 GB, free: 11.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.6369, allocations: 249.1 kB / 0.7753 GB, free: 11.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.6369, allocations: 0 / 0.7753 GB, free: 11.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000505/0.6374, allocations: 339 kB / 0.7756 GB, free: 10.87 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.6375, allocations: 37.78 kB / 0.7756 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.6375, allocations: 4 kB / 0.7756 GB, free: 10.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.6375, allocations: 3.938 kB / 0.7756 GB, free: 10.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.6376, allocations: 28.08 kB / 0.7757 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.6377, allocations: 3.938 kB / 0.7757 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.6378, allocations: 23.83 kB / 0.7757 GB, free: 10.77 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.6378, allocations: 4 kB / 0.7757 GB, free: 10.76 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.0001934/0.638, allocations: 207.4 kB / 0.7759 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.891e-05/0.6381, allocations: 27.72 kB / 0.7759 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.935e-05/0.6381, allocations: 29.83 kB / 0.7759 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.6381, allocations: 0 / 0.7759 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6382, allocations: 0 / 0.7759 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.6382, allocations: 0 / 0.7759 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002811/0.6384, allocations: 293.4 kB / 0.7762 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.6385, allocations: 0 / 0.7762 GB, free: 10.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/0.6386, allocations: 19.98 kB / 0.7762 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.6386, allocations: 0 / 0.7762 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.6386, allocations: 8 kB / 0.7763 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6386, allocations: 0 / 0.7763 GB, free: 10.12 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6386, allocations: 4 kB / 0.7763 GB, free: 10.11 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007143/0.6393, allocations: 469.4 kB / 0.7767 GB, free: 9.633 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 7.037e-05/0.6394, allocations: 100.9 kB / 0.7768 GB, free: 9.516 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.037e-05/0.6395, allocations: 4 kB / 0.7768 GB, free: 9.512 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.6396, allocations: 20.05 kB / 0.7768 GB, free: 9.492 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.791e-05/0.6397, allocations: 19.97 kB / 0.7768 GB, free: 9.473 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.6397, allocations: 7.984 kB / 0.7769 GB, free: 9.465 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002023/0.6399, allocations: 202 kB / 0.777 GB, free: 9.273 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.71e-07/0.6399, allocations: 0 / 0.777 GB, free: 9.273 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003145/0.6402, allocations: 59.84 kB / 0.7771 GB, free: 9.215 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.0002536/0.6405, allocations: 145.7 kB / 0.7772 GB, free: 9.066 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000501/0.641, allocations: 295.2 kB / 0.7775 GB, free: 8.766 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.641, allocations: 3.938 kB / 0.7775 GB, free: 8.762 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00023/0.6412, allocations: 183.3 kB / 0.7777 GB, free: 8.57 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.6416, allocations: 34.86 kB / 0.7777 GB, free: 8.539 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.6426, allocations: 0.4912 MB / 0.7782 GB, free: 8.012 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.643, allocations: 0.7475 MB / 0.7789 GB, free: 7.238 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.722e-05/0.643, allocations: 27.42 kB / 0.779 GB, free: 7.211 MB / 0.545 GB Notification: Performance of SimCode: time 3.11e-07/0.6431, allocations: 0 / 0.779 GB, free: 7.211 MB / 0.545 GB Notification: Performance of Templates: time 0.005405/0.6485, allocations: 3.001 MB / 0.7819 GB, free: 4.219 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)