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.001758/0.001757, allocations: 114.5 kB / 17.04 MB, free: 5.352 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.002027/0.002027, allocations: 193.6 kB / 17.98 MB, free: 4.887 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.415/1.415, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7612/0.7612, allocations: 115.1 MB / 406.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 68.11 kB / 494.8 MB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3891, allocations: 76.13 MB / 0.5576 GB, free: 36.76 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002968/0.3921, allocations: 1.932 MB / 0.5595 GB, free: 35.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.3933, allocations: 0.72 MB / 0.5602 GB, free: 34.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.3934, allocations: 2.719 kB / 0.5602 GB, free: 34.93 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.3937, allocations: 82.67 kB / 0.5602 GB, free: 34.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.3938, allocations: 88.25 kB / 0.5603 GB, free: 34.89 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005826/0.3944, allocations: 198.3 kB / 0.5605 GB, free: 34.79 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003143/0.3948, allocations: 261.7 kB / 0.5608 GB, free: 34.68 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.3949, allocations: 73.11 kB / 0.5608 GB, free: 34.65 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001473/0.3951, allocations: 111.6 kB / 0.5609 GB, free: 34.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.3953, allocations: 159.5 kB / 0.5611 GB, free: 34.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.859e-05/0.3954, allocations: 20.84 kB / 0.5611 GB, free: 34.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001535/0.3955, allocations: 97.77 kB / 0.5612 GB, free: 34.53 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.076e-05/0.3956, allocations: 50.84 kB / 0.5613 GB, free: 34.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.29e-05/0.3957, allocations: 106.2 kB / 0.5614 GB, free: 34.43 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.3961, allocations: 313.4 kB / 0.5617 GB, free: 34.3 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3961, allocations: 0.5625 kB / 0.5617 GB, free: 34.3 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3961, allocations: 1.406 kB / 0.5617 GB, free: 34.3 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.3961, allocations: 0 / 0.5617 GB, free: 34.3 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.0007674/0.3969, allocations: 0.5877 MB / 0.5622 GB, free: 33.78 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3969, allocations: 9 kB / 0.5622 GB, free: 33.78 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.427e-05/0.397, allocations: 32.27 kB / 0.5623 GB, free: 33.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005038/0.3975, allocations: 298.3 kB / 0.5626 GB, free: 33.51 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.3975, allocations: 12.09 kB / 0.5626 GB, free: 33.5 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.326e-05/0.3976, allocations: 13.97 kB / 0.5626 GB, free: 33.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003757/0.398, allocations: 231.8 kB / 0.5628 GB, free: 33.37 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.398, allocations: 0 / 0.5628 GB, free: 33.37 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.398, allocations: 7.062 kB / 0.5628 GB, free: 33.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.398, allocations: 7.156 kB / 0.5628 GB, free: 33.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.3983, allocations: 133.5 kB / 0.5629 GB, free: 33.32 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007576/0.3991, allocations: 0.6769 MB / 0.5636 GB, free: 32.77 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003422/0.3994, allocations: 171.5 kB / 0.5638 GB, free: 32.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.3996, allocations: 98.88 kB / 0.5639 GB, free: 32.67 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.3996, allocations: 1.188 kB / 0.5639 GB, free: 32.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.3999, allocations: 167.1 kB / 0.564 GB, free: 32.57 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 2.024e-06/0.3999, allocations: 0 / 0.564 GB, free: 32.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006749/0.4006, allocations: 379.1 kB / 0.5644 GB, free: 32.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.201e-05/0.4006, allocations: 134.2 kB / 0.5645 GB, free: 32.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.4009, allocations: 287.4 kB / 0.5648 GB, free: 32.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.4009, allocations: 34.34 kB / 0.5648 GB, free: 32.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.251e-05/0.401, allocations: 151.2 kB / 0.565 GB, free: 31.95 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.604e-05/0.4011, allocations: 45.52 kB / 0.565 GB, free: 31.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-05/0.4012, allocations: 37.45 kB / 0.565 GB, free: 31.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.702e-05/0.4012, allocations: 339.5 kB / 0.5654 GB, free: 31.56 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.4014, allocations: 95.47 kB / 0.5655 GB, free: 31.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.4016, allocations: 128.4 kB / 0.5656 GB, free: 31.46 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.4019, allocations: 240.1 kB / 0.5658 GB, free: 31.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4019, allocations: 1.219 kB / 0.5658 GB, free: 31.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005034/0.4025, allocations: 335.6 kB / 0.5661 GB, free: 31.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/0.4025, allocations: 38.06 kB / 0.5662 GB, free: 31.15 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.4025, allocations: 1.531 kB / 0.5662 GB, free: 31.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.4025, allocations: 2.812 kB / 0.5662 GB, free: 31.15 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.4027, allocations: 26.61 kB / 0.5662 GB, free: 31.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.908e-06/0.4027, allocations: 6.828 kB / 0.5662 GB, free: 31.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.4028, allocations: 26.27 kB / 0.5662 GB, free: 31.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.4029, allocations: 10.56 kB / 0.5662 GB, free: 31.12 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.0001691/0.403, allocations: 200.5 kB / 0.5664 GB, free: 30.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.394e-05/0.4031, allocations: 25.98 kB / 0.5664 GB, free: 30.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.438e-05/0.4031, allocations: 26.12 kB / 0.5665 GB, free: 30.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.4032, allocations: 1.703 kB / 0.5665 GB, free: 30.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4032, allocations: 1.531 kB / 0.5665 GB, free: 30.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4032, allocations: 1.781 kB / 0.5665 GB, free: 30.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.4034, allocations: 288.7 kB / 0.5668 GB, free: 30.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4034, allocations: 0.7031 kB / 0.5668 GB, free: 30.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.4036, allocations: 19.64 kB / 0.5668 GB, free: 30.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.4036, allocations: 5.281 kB / 0.5668 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.4036, allocations: 4.984 kB / 0.5668 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4036, allocations: 2.312 kB / 0.5668 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.4036, allocations: 1.438 kB / 0.5668 GB, free: 30.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006903/0.4043, allocations: 463.4 kB / 0.5672 GB, free: 30.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.181e-05/0.4044, allocations: 100.3 kB / 0.5673 GB, free: 30.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.527e-05/0.4044, allocations: 5.062 kB / 0.5673 GB, free: 30.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.4045, allocations: 17.75 kB / 0.5673 GB, free: 30.37 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.731e-05/0.4046, allocations: 22.72 kB / 0.5674 GB, free: 30.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.4046, allocations: 13.97 kB / 0.5674 GB, free: 30.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001761/0.4048, allocations: 205.5 kB / 0.5676 GB, free: 30.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4048, allocations: 0 / 0.5676 GB, free: 30.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.4051, allocations: 60.42 kB / 0.5676 GB, free: 30.23 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.0001929/0.4053, allocations: 135.8 kB / 0.5678 GB, free: 30.13 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004714/0.4058, allocations: 301.8 kB / 0.5681 GB, free: 29.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4058, allocations: 1 kB / 0.5681 GB, free: 29.99 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.4061, allocations: 182.7 kB / 0.5682 GB, free: 29.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.4064, allocations: 35.17 kB / 0.5683 GB, free: 29.87 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009602/0.4074, allocations: 474 kB / 0.5687 GB, free: 29.61 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.4076, allocations: 0.7514 MB / 0.5694 GB, free: 28.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.078e-05/0.4077, allocations: 22.5 kB / 0.5695 GB, free: 28.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.4077, allocations: 18.69 kB / 0.5695 GB, free: 28.91 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4078, allocations: 0 / 0.5695 GB, free: 28.91 MB / 446.1 MB Notification: Performance of Templates: time 0.006815/0.4146, allocations: 2.829 MB / 0.5722 GB, free: 28.73 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 -s gbode -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)