Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0008017/0.0008018, allocations: 90.34 kB / 16.66 MB, free: 6.594 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.0009358/0.0009358, allocations: 178.2 kB / 17.57 MB, free: 6.184 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.363/1.363, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7437/0.7437, allocations: 115.5 MB / 408.2 MB, free: 7.121 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003617, allocations: 8 kB / 496.5 MB, free: 15.71 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4337/0.4341, allocations: 77.51 MB / 0.5606 GB, free: 35.6 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002108/0.4362, allocations: 1.639 MB / 0.5622 GB, free: 34.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.4375, allocations: 0.7108 MB / 0.5629 GB, free: 33.92 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.4376, allocations: 1.656 kB / 0.5629 GB, free: 33.92 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002445/0.4378, allocations: 73.92 kB / 0.5629 GB, free: 33.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001381/0.438, allocations: 88.88 kB / 0.563 GB, free: 33.88 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.4385, allocations: 158.8 kB / 0.5632 GB, free: 33.8 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002953/0.4388, allocations: 243.7 kB / 0.5634 GB, free: 33.7 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.439, allocations: 63.53 kB / 0.5635 GB, free: 33.67 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.4391, allocations: 92.69 kB / 0.5636 GB, free: 33.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.4394, allocations: 129 kB / 0.5637 GB, free: 33.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.789e-05/0.4394, allocations: 5.312 kB / 0.5637 GB, free: 33.61 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.4395, allocations: 81.72 kB / 0.5638 GB, free: 33.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.19e-05/0.4396, allocations: 43.89 kB / 0.5638 GB, free: 33.56 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.817e-05/0.4397, allocations: 113.3 kB / 0.5639 GB, free: 33.47 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.44, allocations: 220.2 kB / 0.5641 GB, free: 33.42 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.4401, allocations: 0 / 0.5641 GB, free: 33.42 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.646e-06/0.4401, allocations: 3.188 kB / 0.5641 GB, free: 33.42 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.4401, allocations: 0 / 0.5641 GB, free: 33.42 MB / 446.1 MB 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.0007558/0.4408, allocations: 0.5465 MB / 0.5647 GB, free: 32.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.4409, allocations: 13.22 kB / 0.5647 GB, free: 32.93 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.441, allocations: 29.66 kB / 0.5647 GB, free: 32.92 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000432/0.4414, allocations: 307.8 kB / 0.565 GB, free: 32.66 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.4414, allocations: 14.72 kB / 0.565 GB, free: 32.65 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.004e-05/0.4415, allocations: 15.47 kB / 0.565 GB, free: 32.64 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004296/0.4419, allocations: 231.7 kB / 0.5652 GB, free: 32.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.4419, allocations: 1.984 kB / 0.5652 GB, free: 32.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.442, allocations: 6.062 kB / 0.5652 GB, free: 32.51 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.442, allocations: 2.688 kB / 0.5653 GB, free: 32.51 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.4423, allocations: 133.3 kB / 0.5654 GB, free: 32.48 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008216/0.4431, allocations: 0.688 MB / 0.5661 GB, free: 31.92 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003938/0.4435, allocations: 178.9 kB / 0.5662 GB, free: 31.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.4437, allocations: 108.9 kB / 0.5663 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.4437, allocations: 0.9688 kB / 0.5663 GB, free: 31.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003304/0.4441, allocations: 182.6 kB / 0.5665 GB, free: 31.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.4441, allocations: 0 / 0.5665 GB, free: 31.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007334/0.4448, allocations: 387.9 kB / 0.5669 GB, free: 31.56 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.4449, allocations: 142.1 kB / 0.567 GB, free: 31.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.4452, allocations: 280.2 kB / 0.5673 GB, free: 31.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.4452, allocations: 32.08 kB / 0.5673 GB, free: 31.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.652e-05/0.4453, allocations: 159 kB / 0.5675 GB, free: 31.08 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.953e-05/0.4454, allocations: 40.38 kB / 0.5675 GB, free: 31.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.959e-05/0.4454, allocations: 23.8 kB / 0.5675 GB, free: 31.03 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.073e-05/0.4455, allocations: 338 kB / 0.5678 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001926/0.4457, allocations: 96.36 kB / 0.5679 GB, free: 30.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.4459, allocations: 132.9 kB / 0.5681 GB, free: 30.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.4462, allocations: 249.8 kB / 0.5683 GB, free: 30.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4463, allocations: 0 / 0.5683 GB, free: 30.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005206/0.4468, allocations: 347.6 kB / 0.5686 GB, free: 30.32 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.4468, allocations: 35.92 kB / 0.5687 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.4468, allocations: 2.828 kB / 0.5687 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.4469, allocations: 2.031 kB / 0.5687 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.447, allocations: 31.48 kB / 0.5687 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.447, allocations: 4.234 kB / 0.5687 GB, free: 30.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.4472, allocations: 27.39 kB / 0.5687 GB, free: 30.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.4472, allocations: 5.438 kB / 0.5687 GB, free: 30.28 MB / 446.1 MB 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.0001809/0.4474, allocations: 203.5 kB / 0.5689 GB, free: 30.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.502e-05/0.4474, allocations: 30.33 kB / 0.569 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.881e-05/0.4475, allocations: 27.38 kB / 0.569 GB, free: 30.07 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.4475, allocations: 0.9688 kB / 0.569 GB, free: 30.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4475, allocations: 0.5 kB / 0.569 GB, free: 30.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.4475, allocations: 2.219 kB / 0.569 GB, free: 30.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.4478, allocations: 294.8 kB / 0.5693 GB, free: 29.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.4478, allocations: 0 / 0.5693 GB, free: 29.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.4479, allocations: 21.78 kB / 0.5693 GB, free: 29.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.4479, allocations: 0.9375 kB / 0.5693 GB, free: 29.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.096e-05/0.448, allocations: 4.453 kB / 0.5693 GB, free: 29.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.448, allocations: 3.578 kB / 0.5693 GB, free: 29.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.448, allocations: 3.984 kB / 0.5693 GB, free: 29.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008102/0.4488, allocations: 483.7 kB / 0.5698 GB, free: 29.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.233e-05/0.4489, allocations: 101.4 kB / 0.5699 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.4489, allocations: 7.078 kB / 0.5699 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.449, allocations: 19.52 kB / 0.5699 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.853e-05/0.4491, allocations: 24.83 kB / 0.5699 GB, free: 29.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.202e-05/0.4492, allocations: 5.953 kB / 0.5699 GB, free: 29.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002116/0.4494, allocations: 204.5 kB / 0.5701 GB, free: 29.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4494, allocations: 192 / 0.5701 GB, free: 29.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003572/0.4498, allocations: 52.64 kB / 0.5702 GB, free: 29.38 MB / 446.1 MB 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.0002251/0.45, allocations: 142.7 kB / 0.5703 GB, free: 29.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005305/0.4505, allocations: 305.2 kB / 0.5706 GB, free: 29.14 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.4505, allocations: 0.9375 kB / 0.5706 GB, free: 29.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002624/0.4508, allocations: 188 kB / 0.5708 GB, free: 29.03 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.4512, allocations: 28.45 kB / 0.5708 GB, free: 29.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.4522, allocations: 0.5823 MB / 0.5714 GB, free: 28.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.4524, allocations: 0.7545 MB / 0.5721 GB, free: 27.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.579e-05/0.4525, allocations: 18.12 kB / 0.5721 GB, free: 27.95 MB / 446.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4525, allocations: 0 / 0.5721 GB, free: 27.95 MB / 446.1 MB Notification: Performance of Templates: time 0.00633/0.4588, allocations: 2.95 MB / 0.575 GB, free: 27.7 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)