Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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.001194/0.001195, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001509/0.001509, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.886/2.886, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004322/0.0004324, allocations: 12.12 kB / 0.9021 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3645/0.3649, allocations: 159.6 MB / 1.058 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.001997/0.367, allocations: 1.457 MB / 1.059 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00134/0.3683, allocations: 0.7758 MB / 1.06 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.3685, allocations: 7.938 kB / 1.06 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.3686, allocations: 11.92 kB / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.3688, allocations: 31.78 kB / 1.06 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004171/0.3693, allocations: 130.1 kB / 1.06 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002211/0.3695, allocations: 167.6 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.3696, allocations: 33.42 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.3697, allocations: 63.77 kB / 1.061 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.3699, allocations: 63.67 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.3699, allocations: 8 kB / 1.061 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.293e-05/0.37, allocations: 19.98 kB / 1.061 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.009e-05/0.3701, allocations: 19.92 kB / 1.061 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.717e-05/0.3701, allocations: 45.64 kB / 1.061 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001883/0.3703, allocations: 155.9 kB / 1.061 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3703, allocations: 4 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.264e-06/0.3703, allocations: 0 / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.3703, allocations: 0 / 1.061 GB, free: 2.281 MB / 0.8106 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.000715/0.3711, allocations: 444.5 kB / 1.061 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.3711, allocations: 8.031 kB / 1.061 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.529e-05/0.3712, allocations: 15.89 kB / 1.061 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003116/0.3715, allocations: 240.1 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.3715, allocations: 7.953 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.3716, allocations: 12 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.3717, allocations: 88.41 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3718, allocations: 0 / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.3718, allocations: 4 kB / 1.062 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.28e-05/0.3718, allocations: 7.938 kB / 1.062 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.3719, allocations: 55.91 kB / 1.062 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006497/0.3726, allocations: 452.5 kB / 1.062 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.3728, allocations: 90.47 kB / 1.062 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.141e-05/0.3728, allocations: 32.89 kB / 1.062 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.005e-06/0.3728, allocations: 4 kB / 1.062 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/0.373, allocations: 87.25 kB / 1.062 GB, free: 0.5938 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=9): time 2.936e-06/0.373, allocations: 7.984 kB / 1.062 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of matching and sorting (n=9): time 0.0002835/0.3733, allocations: 133.4 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.3733, allocations: 55.36 kB / 1.063 GB, free: 392 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/0.3735, allocations: 175.3 kB / 1.063 GB, free: 204 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.3736, allocations: 33.7 kB / 1.063 GB, free: 164 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.822e-05/0.3737, allocations: 116.1 kB / 1.063 GB, free: 44 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.3737, allocations: 23.86 kB / 1.063 GB, free: 20 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.467e-05/0.3737, allocations: 4 kB / 1.063 GB, free: 16 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3739, allocations: 322.8 kB / 1.063 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.374, allocations: 55.97 kB / 1.063 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.3741, allocations: 70.55 kB / 1.063 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.3743, allocations: 81.69 kB / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3743, allocations: 0 / 1.063 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003835/0.3747, allocations: 219 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.3747, allocations: 37.7 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3747, allocations: 0 / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.3748, allocations: 0 / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.3749, allocations: 23.98 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.3749, allocations: 0 / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002499/0.3752, allocations: 55.81 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.3752, allocations: 12 kB / 1.064 GB, free: 15.11 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,$PRE.y1.y,y1.y,sta.y1_actual) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.3754, allocations: 125.8 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.733e-05/0.3754, allocations: 11.91 kB / 1.064 GB, free: 14.97 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.3755, allocations: 21.34 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.3755, allocations: 0 / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3755, allocations: 0 / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.3755, allocations: 0 / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002365/0.3757, allocations: 230 kB / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.3758, allocations: 0 / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.09e-05/0.3758, allocations: 8 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.3759, allocations: 0 / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.3759, allocations: 11.98 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.3759, allocations: 7.922 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3759, allocations: 0 / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.3762, allocations: 172.8 kB / 1.064 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.7e-05/0.3763, allocations: 101 kB / 1.064 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.3763, allocations: 4 kB / 1.064 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.1e-05/0.3764, allocations: 4 kB / 1.064 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.323e-05/0.3765, allocations: 7.984 kB / 1.064 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3765, allocations: 4 kB / 1.064 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001505/0.3767, allocations: 129 kB / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3767, allocations: 0 / 1.065 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00026/0.377, allocations: 39.89 kB / 1.065 GB, free: 14.16 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001873/0.3771, allocations: 103.2 kB / 1.065 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003115/0.3775, allocations: 175.2 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3775, allocations: 0 / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.876e-05/0.3776, allocations: 39.98 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.3779, allocations: 36.05 kB / 1.065 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006433/0.3785, allocations: 314.1 kB / 1.065 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.3789, allocations: 0.716 MB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.067e-05/0.379, allocations: 16.88 kB / 1.066 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.667e-05/0.379, allocations: 19.91 kB / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of SimCode: time 5.01e-07/0.379, allocations: 0 / 1.066 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of Templates: time 0.005092/0.3841, allocations: 1.773 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1)