Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009853/0.0009853, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006141/0.006141, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.439/1.439, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.985/2.985, allocations: 473.4 MB / 0.7469 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003718, allocations: 9.625 kB / 0.9158 GB, free: 33.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3426, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002234/0.3449, allocations: 1.494 MB / 1.076 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001504/0.3464, allocations: 0.8106 MB / 1.076 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001438/0.3466, allocations: 4 kB / 1.076 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.3467, allocations: 7.875 kB / 1.076 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002777/0.347, allocations: 31.84 kB / 1.076 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004914/0.3475, allocations: 147.4 kB / 1.077 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002738/0.3478, allocations: 191.5 kB / 1.077 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.3479, allocations: 41.41 kB / 1.077 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.3481, allocations: 67.77 kB / 1.077 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.3483, allocations: 67.67 kB / 1.077 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.585e-05/0.3484, allocations: 4 kB / 1.077 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.059e-05/0.3485, allocations: 27.86 kB / 1.077 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.449e-05/0.3486, allocations: 23.92 kB / 1.077 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.3487, allocations: 85.34 kB / 1.077 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.3489, allocations: 191.7 kB / 1.077 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3489, allocations: 4 kB / 1.077 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3489, allocations: 0 / 1.077 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.349, allocations: 0 / 1.077 GB, free: 4.312 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007984/0.3498, allocations: 436.7 kB / 1.078 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3498, allocations: 12.02 kB / 1.078 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.492e-05/0.3499, allocations: 16.75 kB / 1.078 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003339/0.3502, allocations: 248.6 kB / 1.078 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.3503, allocations: 8.375 kB / 1.078 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.504e-05/0.3503, allocations: 16.38 kB / 1.078 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.3505, allocations: 85.91 kB / 1.078 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3505, allocations: 0 / 1.078 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.3505, allocations: 4 kB / 1.078 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.3506, allocations: 7.938 kB / 1.078 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.3507, allocations: 55.97 kB / 1.078 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006915/0.3514, allocations: 444.5 kB / 1.079 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001684/0.3516, allocations: 90.56 kB / 1.079 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.373e-05/0.3517, allocations: 28.86 kB / 1.079 GB, free: 2.73 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.3517, allocations: 11.98 kB / 1.079 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/0.3518, allocations: 83.31 kB / 1.079 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.743e-06/0.3519, allocations: 0 / 1.079 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0003427/0.3522, allocations: 137.4 kB / 1.079 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.3523, allocations: 51.41 kB / 1.079 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.3525, allocations: 179.4 kB / 1.079 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.21e-05/0.3525, allocations: 33.7 kB / 1.079 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.225e-05/0.3526, allocations: 112.4 kB / 1.079 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.399e-05/0.3527, allocations: 31.7 kB / 1.079 GB, free: 2.051 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.3527, allocations: 25.7 kB / 1.079 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3528, allocations: 322.8 kB / 1.08 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.3529, allocations: 59.91 kB / 1.08 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.3531, allocations: 70.55 kB / 1.08 GB, free: 1.559 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001865/0.3533, allocations: 136.2 kB / 1.08 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3533, allocations: 0 / 1.08 GB, free: 1.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003555/0.3536, allocations: 207.1 kB / 1.08 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.3537, allocations: 33.7 kB / 1.08 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.3537, allocations: 0 / 1.08 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.3537, allocations: 4 kB / 1.08 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001574/0.3539, allocations: 31.91 kB / 1.08 GB, free: 1.121 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.3539, allocations: 7.938 kB / 1.08 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.3542, allocations: 43.94 kB / 1.08 GB, free: 1.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.52e-05/0.3542, allocations: 7.984 kB / 1.08 GB, free: 1.062 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.0001217/0.3543, allocations: 129.8 kB / 1.08 GB, free: 0.9258 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.111e-05/0.3544, allocations: 11.91 kB / 1.08 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.145e-05/0.3544, allocations: 17.39 kB / 1.08 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.3544, allocations: 0 / 1.08 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3544, allocations: 3.938 kB / 1.08 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3545, allocations: 4 kB / 1.08 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/0.3547, allocations: 225.5 kB / 1.081 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.3547, allocations: 0 / 1.081 GB, free: 0.6172 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.9e-05/0.3548, allocations: 11.98 kB / 1.081 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3548, allocations: 0 / 1.081 GB, free: 0.6055 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.3548, allocations: 7.938 kB / 1.081 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3548, allocations: 0 / 1.081 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.3548, allocations: 11.94 kB / 1.081 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.3551, allocations: 161 kB / 1.081 GB, free: 420 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.548e-05/0.3552, allocations: 100.9 kB / 1.081 GB, free: 300 kB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.827e-05/0.3552, allocations: 12 kB / 1.081 GB, free: 288 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.3553, allocations: 11.92 kB / 1.081 GB, free: 276 kB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.853e-05/0.3554, allocations: 7.938 kB / 1.081 GB, free: 268 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.3554, allocations: 0 / 1.081 GB, free: 268 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00014/0.3555, allocations: 140.9 kB / 1.081 GB, free: 128 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3555, allocations: 192 / 1.081 GB, free: 128 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000255/0.3558, allocations: 32 kB / 1.081 GB, free: 96 kB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000166/0.356, allocations: 107.2 kB / 1.081 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003236/0.3563, allocations: 175.3 kB / 1.081 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3563, allocations: 0 / 1.081 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 7.897e-05/0.3564, allocations: 43.92 kB / 1.081 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002914/0.3567, allocations: 26.72 kB / 1.081 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005329/0.3572, allocations: 338.1 kB / 1.082 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.3575, allocations: 0.7121 MB / 1.082 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.769e-05/0.3576, allocations: 24.86 kB / 1.082 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.401e-05/0.3576, allocations: 11.44 kB / 1.082 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of SimCode: time 2.5e-07/0.3576, allocations: 0 / 1.082 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of Templates: time 0.005029/0.3627, allocations: 1.823 MB / 1.084 GB, free: 12.8 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (rm -f Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1)