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/Complex 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) 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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 189.1 kB / 16.63 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4603/0.4603, allocations: 87.5 MB / 104.9 MB, free: 13.03 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 349.1 MB, free: 2.758 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 96.33 kB / 420 MB, free: 8.5 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001019/0.001019, allocations: 59.91 kB / 0.4891 GB, free: 7.688 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3544, allocations: 70.04 MB / 0.5575 GB, free: 44.75 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00298/0.3574, allocations: 1.994 MB / 0.5594 GB, free: 43.2 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009784/0.3584, allocations: 0.7186 MB / 0.5601 GB, free: 42.48 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.3586, allocations: 4 kB / 0.5601 GB, free: 42.48 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000218/0.3588, allocations: 83.69 kB / 0.5602 GB, free: 42.39 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 8.91e-05/0.3589, allocations: 78.14 kB / 0.5603 GB, free: 42.32 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.3593, allocations: 165.8 kB / 0.5605 GB, free: 42.16 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.3595, allocations: 243.4 kB / 0.5607 GB, free: 41.92 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.3597, allocations: 60 kB / 0.5607 GB, free: 41.86 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.874e-05/0.3598, allocations: 103.7 kB / 0.5608 GB, free: 41.76 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001464/0.36, allocations: 139.5 kB / 0.561 GB, free: 41.62 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.946e-05/0.36, allocations: 12 kB / 0.561 GB, free: 41.61 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001118/0.3601, allocations: 75.94 kB / 0.5611 GB, free: 41.54 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 6.827e-05/0.3602, allocations: 55.81 kB / 0.5611 GB, free: 41.48 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.917e-05/0.3603, allocations: 107.3 kB / 0.5612 GB, free: 41.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.3605, allocations: 287.1 kB / 0.5615 GB, free: 41.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.3605, allocations: 0 / 0.5615 GB, free: 41.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.3605, allocations: 3.938 kB / 0.5615 GB, free: 41.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.3605, allocations: 0 / 0.5615 GB, free: 41.09 MB / 410.7 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.000745/0.3613, allocations: 0.5741 MB / 0.5621 GB, free: 40.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.3613, allocations: 12.03 kB / 0.5621 GB, free: 40.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.356e-05/0.3614, allocations: 24.66 kB / 0.5621 GB, free: 40.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.3618, allocations: 306.8 kB / 0.5624 GB, free: 40.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.3618, allocations: 8.375 kB / 0.5624 GB, free: 40.09 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.3618, allocations: 16.38 kB / 0.5624 GB, free: 40.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.3622, allocations: 227.8 kB / 0.5626 GB, free: 39.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.3622, allocations: 0 / 0.5626 GB, free: 39.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.3622, allocations: 8 kB / 0.5626 GB, free: 39.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3622, allocations: 4 kB / 0.5626 GB, free: 39.81 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.3624, allocations: 124.4 kB / 0.5628 GB, free: 39.69 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006492/0.3631, allocations: 0.6886 MB / 0.5634 GB, free: 38.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.3634, allocations: 166.4 kB / 0.5636 GB, free: 38.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.3636, allocations: 103.3 kB / 0.5637 GB, free: 38.67 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.3636, allocations: 0 / 0.5637 GB, free: 38.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.3639, allocations: 184.5 kB / 0.5639 GB, free: 38.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.3639, allocations: 0 / 0.5639 GB, free: 38.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005523/0.3644, allocations: 374.9 kB / 0.5642 GB, free: 38.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.3645, allocations: 140.5 kB / 0.5643 GB, free: 37.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.3647, allocations: 274.7 kB / 0.5646 GB, free: 37.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.3647, allocations: 33.7 kB / 0.5646 GB, free: 37.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.819e-05/0.3648, allocations: 156.2 kB / 0.5648 GB, free: 37.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.3648, allocations: 47.39 kB / 0.5648 GB, free: 37.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.579e-05/0.3649, allocations: 41.8 kB / 0.5649 GB, free: 37.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.452e-05/0.365, allocations: 338.8 kB / 0.5652 GB, free: 37.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.3651, allocations: 83.91 kB / 0.5653 GB, free: 36.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001444/0.3652, allocations: 137.7 kB / 0.5654 GB, free: 36.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/0.3655, allocations: 240.9 kB / 0.5656 GB, free: 36.54 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.3655, allocations: 0 / 0.5656 GB, free: 36.54 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003727/0.3659, allocations: 341.4 kB / 0.566 GB, free: 36.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.3659, allocations: 37.7 kB / 0.566 GB, free: 36.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.3659, allocations: 4 kB / 0.566 GB, free: 36.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.366, allocations: 0 / 0.566 GB, free: 36.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.3661, allocations: 19.98 kB / 0.566 GB, free: 36.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.3661, allocations: 7.984 kB / 0.566 GB, free: 36.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.3662, allocations: 23.84 kB / 0.5661 GB, free: 36.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.3662, allocations: 7.984 kB / 0.5661 GB, free: 36.09 MB / 410.7 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.0001208/0.3663, allocations: 196.1 kB / 0.5662 GB, free: 35.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.3664, allocations: 23.72 kB / 0.5663 GB, free: 35.86 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.487e-05/0.3664, allocations: 29.83 kB / 0.5663 GB, free: 35.83 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3664, allocations: 4 kB / 0.5663 GB, free: 35.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3664, allocations: 0 / 0.5663 GB, free: 35.83 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3664, allocations: 3.984 kB / 0.5663 GB, free: 35.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.3666, allocations: 293.4 kB / 0.5666 GB, free: 35.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3666, allocations: 0 / 0.5666 GB, free: 35.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.199e-05/0.3667, allocations: 19.98 kB / 0.5666 GB, free: 35.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3667, allocations: 0 / 0.5666 GB, free: 35.47 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.3668, allocations: 7.984 kB / 0.5666 GB, free: 35.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3668, allocations: 0 / 0.5666 GB, free: 35.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3668, allocations: 0 / 0.5666 GB, free: 35.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/0.3699, allocations: 2.968 MB / 0.5695 GB, free: 32.31 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.672e-05/0.3699, allocations: 104.8 kB / 0.5696 GB, free: 32.19 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.37, allocations: 4 kB / 0.5696 GB, free: 32.19 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.3701, allocations: 19.92 kB / 0.5696 GB, free: 32.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.901e-05/0.3701, allocations: 23.95 kB / 0.5697 GB, free: 32.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.058e-05/0.3702, allocations: 8 kB / 0.5697 GB, free: 32.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001305/0.3703, allocations: 201.9 kB / 0.5699 GB, free: 31.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.183e-06/0.3703, allocations: 4 kB / 0.5699 GB, free: 31.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003362/0.3707, allocations: 91.78 kB / 0.5699 GB, free: 31.84 MB / 410.7 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.0001577/0.3708, allocations: 126.1 kB / 0.5701 GB, free: 31.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004013/0.3712, allocations: 287.2 kB / 0.5703 GB, free: 31.42 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3712, allocations: 0 / 0.5703 GB, free: 31.42 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001732/0.3714, allocations: 191.5 kB / 0.5705 GB, free: 31.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.3717, allocations: 34.42 kB / 0.5706 GB, free: 31.19 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00092/0.3726, allocations: 0.7468 MB / 0.5713 GB, free: 30.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001594/0.3728, allocations: 0.7596 MB / 0.572 GB, free: 29.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 8.238e-05/0.3729, allocations: 13.55 kB / 0.572 GB, free: 29.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.16e-05/0.3729, allocations: 23.44 kB / 0.5721 GB, free: 29.57 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.373, allocations: 0 / 0.5721 GB, free: 29.57 MB / 410.7 MB Notification: Performance of Templates: time 0.005258/0.3782, allocations: 3.042 MB / 0.575 GB, free: 26.55 MB / 410.7 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)