Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001097/0.001097, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 195 kB / 16.53 MB, free: 6.391 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.827/2.827, allocations: 472.6 MB / 0.7451 GB, free: 4.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 69.91 kB / 0.912 GB, free: 33.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3595, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00405/0.3636, allocations: 1.952 MB / 1.07 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001535/0.3652, allocations: 0.7207 MB / 1.071 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.3655, allocations: 7.938 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.3657, allocations: 83.62 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001815/0.366, allocations: 87.64 kB / 1.071 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007142/0.3667, allocations: 191.1 kB / 1.071 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004029/0.3671, allocations: 267.3 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.3673, allocations: 70.09 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.3675, allocations: 119.6 kB / 1.072 GB, free: 6.938 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.3677, allocations: 151.5 kB / 1.072 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.119e-05/0.3678, allocations: 20 kB / 1.072 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.368, allocations: 91.88 kB / 1.072 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.3681, allocations: 63.77 kB / 1.072 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.3682, allocations: 99.41 kB / 1.072 GB, free: 6.52 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.3686, allocations: 299.1 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3687, allocations: 0 / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3687, allocations: 0 / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.041e-05/0.3687, allocations: 4 kB / 1.072 GB, free: 6.223 MB / 0.8262 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.000917/0.3696, allocations: 0.5741 MB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.3697, allocations: 12.03 kB / 1.073 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.703e-05/0.3697, allocations: 36.56 kB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004513/0.3702, allocations: 294.9 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.682e-05/0.3702, allocations: 12.38 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.3703, allocations: 12.38 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004061/0.3707, allocations: 239.6 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.3707, allocations: 0 / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.3707, allocations: 8 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3708, allocations: 0 / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002675/0.371, allocations: 132.3 kB / 1.074 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008971/0.3719, allocations: 0.6885 MB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003988/0.3723, allocations: 170.4 kB / 1.074 GB, free: 3.879 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.3725, allocations: 96.95 kB / 1.074 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.3726, allocations: 3.984 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003478/0.3729, allocations: 170.2 kB / 1.075 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.914e-06/0.3729, allocations: 7.938 kB / 1.075 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006936/0.3736, allocations: 368.7 kB / 1.075 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.3737, allocations: 132.5 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/0.374, allocations: 282.6 kB / 1.075 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.374, allocations: 29.7 kB / 1.075 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3741, allocations: 160.2 kB / 1.076 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.3742, allocations: 43.34 kB / 1.076 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.191e-05/0.3743, allocations: 45.7 kB / 1.076 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3744, allocations: 338.8 kB / 1.076 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.3746, allocations: 87.89 kB / 1.076 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.3748, allocations: 138 kB / 1.076 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003413/0.3751, allocations: 244.3 kB / 1.076 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3752, allocations: 0 / 1.076 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005208/0.3757, allocations: 337.1 kB / 1.077 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.411e-05/0.3757, allocations: 37.78 kB / 1.077 GB, free: 1.262 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3757, allocations: 4 kB / 1.077 GB, free: 1.258 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.3758, allocations: 4 kB / 1.077 GB, free: 1.254 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.3759, allocations: 23.92 kB / 1.077 GB, free: 1.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.168e-06/0.3759, allocations: 4 kB / 1.077 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.3761, allocations: 23.83 kB / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.3761, allocations: 8 kB / 1.077 GB, free: 1.195 MB / 0.8262 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.0001856/0.3763, allocations: 195.4 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.458e-05/0.3764, allocations: 27.72 kB / 1.077 GB, free: 0.9609 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.233e-05/0.3764, allocations: 29.83 kB / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3764, allocations: 0 / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.8e-06/0.3764, allocations: 0 / 1.077 GB, free: 0.9336 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3764, allocations: 4 kB / 1.077 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002481/0.3767, allocations: 289.4 kB / 1.077 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3767, allocations: 96 / 1.077 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.3768, allocations: 27.86 kB / 1.077 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3768, allocations: 0 / 1.077 GB, free: 0.5703 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.963e-05/0.3769, allocations: 8 kB / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.3769, allocations: 4 kB / 1.077 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3769, allocations: 0 / 1.077 GB, free: 0.5586 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007183/0.3776, allocations: 474.2 kB / 1.078 GB, free: 72 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.561e-05/0.3777, allocations: 92.86 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.3777, allocations: 8 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.3779, allocations: 16.05 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.844e-05/0.378, allocations: 31.95 kB / 1.078 GB, free: 15.91 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.378, allocations: 4 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001853/0.3782, allocations: 202 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3782, allocations: 0 / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002975/0.3785, allocations: 59.84 kB / 1.078 GB, free: 15.64 MB / 0.8419 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.0002141/0.3787, allocations: 133.2 kB / 1.078 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004949/0.3792, allocations: 303.2 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3792, allocations: 0 / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002325/0.3795, allocations: 175.4 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.3798, allocations: 40.03 kB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.3808, allocations: 493.3 kB / 1.079 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.3812, allocations: 0.7521 MB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.672e-05/0.3813, allocations: 21.48 kB / 1.08 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.84e-05/0.3813, allocations: 19.42 kB / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of SimCode: time 5.91e-07/0.3813, allocations: 0 / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.006896/0.3882, allocations: 2.833 MB / 1.083 GB, free: 10.85 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)