Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.331/2.331, allocations: 391.2 MB / 407 MB, free: 10.92 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 199.4 kB / 499.1 MB, free: 4.684 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 222.9 MB / 0.7948 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 97.95 kB / 0.9329 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 52.34 kB / 1.081 GB, free: 218.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3278, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003046/0.3309, allocations: 2.011 MB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001107/0.332, allocations: 0.7209 MB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.922e-05/0.3322, allocations: 4 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.3324, allocations: 75.75 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 9.215e-05/0.3325, allocations: 83.7 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004686/0.333, allocations: 159.8 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0002116/0.3332, allocations: 239.4 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.3333, allocations: 67.98 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.3335, allocations: 99.66 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.3336, allocations: 143.5 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.3336, allocations: 8 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.3338, allocations: 83.92 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 6.807e-05/0.3338, allocations: 51.83 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 7.551e-05/0.3339, allocations: 95.28 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.3342, allocations: 283.1 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3342, allocations: 0 / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of FrontEnd: time 7.91e-07/0.3342, allocations: 4 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.3342, allocations: 0 / 1.222 GB, free: 113.1 MB / 0.823 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.0007947/0.335, allocations: 0.5831 MB / 1.223 GB, free: 112.5 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3351, allocations: 15.98 kB / 1.223 GB, free: 112.5 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.446e-05/0.3351, allocations: 28.56 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.3355, allocations: 302.9 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.3355, allocations: 12.38 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.3355, allocations: 20.28 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.3359, allocations: 228.2 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3359, allocations: 0 / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.3359, allocations: 8 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.3359, allocations: 0 / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.3361, allocations: 128.4 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006715/0.3368, allocations: 0.6886 MB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.3371, allocations: 166.5 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.3373, allocations: 96.83 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.767e-05/0.3373, allocations: 3.984 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002937/0.3376, allocations: 169 kB / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.3376, allocations: 0 / 1.224 GB, free: 110.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=15): time 0.000547/0.3382, allocations: 378.9 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.975e-05/0.3382, allocations: 132.5 kB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.3384, allocations: 282.7 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.751e-05/0.3384, allocations: 29.7 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.797e-05/0.3385, allocations: 164.2 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.3386, allocations: 39.45 kB / 1.225 GB, free: 109.4 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.666e-05/0.3386, allocations: 41.64 kB / 1.225 GB, free: 109.4 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.35e-05/0.3387, allocations: 338.8 kB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001349/0.3388, allocations: 87.91 kB / 1.226 GB, free: 109 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.339, allocations: 134.8 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/0.3393, allocations: 235.9 kB / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3393, allocations: 0 / 1.226 GB, free: 108.6 MB / 0.823 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003885/0.3397, allocations: 348 kB / 1.227 GB, free: 108.2 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.3397, allocations: 35.11 kB / 1.227 GB, free: 108.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3397, allocations: 0 / 1.227 GB, free: 108.2 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3397, allocations: 4 kB / 1.227 GB, free: 108.2 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.3399, allocations: 23.98 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.3399, allocations: 4 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.34, allocations: 19.83 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.34, allocations: 8 kB / 1.227 GB, free: 108.1 MB / 0.823 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.0001254/0.3401, allocations: 204.1 kB / 1.227 GB, free: 107.9 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.989e-05/0.3402, allocations: 27.72 kB / 1.227 GB, free: 107.9 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.625e-05/0.3402, allocations: 25.83 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3402, allocations: 0 / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.3402, allocations: 4 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3403, allocations: 0 / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.3404, allocations: 301.3 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3404, allocations: 0 / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.501e-05/0.3405, allocations: 23.98 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.3405, allocations: 0 / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.3406, allocations: 4 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3406, allocations: 0 / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.3406, allocations: 0 / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003263/0.3438, allocations: 2.973 MB / 1.23 GB, free: 104.3 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.878e-05/0.3439, allocations: 96.86 kB / 1.23 GB, free: 104.2 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.3439, allocations: 8 kB / 1.23 GB, free: 104.2 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.844e-05/0.344, allocations: 15.92 kB / 1.23 GB, free: 104.2 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/0.3441, allocations: 23.95 kB / 1.23 GB, free: 104.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.3441, allocations: 8 kB / 1.23 GB, free: 104.2 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001255/0.3443, allocations: 201.9 kB / 1.23 GB, free: 104 MB / 0.823 GB Notification: Performance of sort global known variables: time 7.41e-07/0.3443, allocations: 0 / 1.23 GB, free: 104 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003411/0.3446, allocations: 87.94 kB / 1.231 GB, free: 103.9 MB / 0.823 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.0001717/0.3448, allocations: 133.5 kB / 1.231 GB, free: 103.7 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0003896/0.3452, allocations: 295.2 kB / 1.231 GB, free: 103.4 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3452, allocations: 0 / 1.231 GB, free: 103.4 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.3454, allocations: 187.5 kB / 1.231 GB, free: 103.2 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.3457, allocations: 32.55 kB / 1.231 GB, free: 103.2 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000988/0.3467, allocations: 0.743 MB / 1.232 GB, free: 102.4 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000168/0.3469, allocations: 0.7634 MB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 9.819e-05/0.347, allocations: 17.53 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.166e-05/0.3471, allocations: 23.44 kB / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of SimCode: time 2.31e-07/0.3471, allocations: 0 / 1.233 GB, free: 101.6 MB / 0.823 GB Notification: Performance of Templates: time 0.005609/0.3527, allocations: 3.045 MB / 1.236 GB, free: 98.57 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)