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.001969/0.001976, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00207/0.00207, allocations: 194.9 kB / 16.14 MB, free: 6.656 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.529/1.529, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.919/2.919, allocations: 472.6 MB / 0.7447 GB, free: 5.008 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 68.98 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4295/0.4308, allocations: 159.9 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003534/0.4344, allocations: 1.839 MB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001536/0.4359, allocations: 0.83 MB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.4361, allocations: 4 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.4363, allocations: 7.875 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.4365, allocations: 31.84 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000438/0.437, allocations: 150.7 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.4372, allocations: 195.5 kB / 1.07 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.4374, allocations: 37.42 kB / 1.071 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.4375, allocations: 67.75 kB / 1.071 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.4377, allocations: 71.69 kB / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.385e-05/0.4377, allocations: 8 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.891e-05/0.4378, allocations: 23.92 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.989e-05/0.4379, allocations: 31.89 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.738e-05/0.438, allocations: 63.66 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002551/0.4383, allocations: 191.7 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.4383, allocations: 4 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4383, allocations: 0 / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.4383, allocations: 0 / 1.071 GB, free: 7.367 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.0008811/0.4392, allocations: 476.6 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.4392, allocations: 16.02 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.855e-05/0.4393, allocations: 16.75 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003381/0.4397, allocations: 236.7 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.4397, allocations: 8.312 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.14e-05/0.4397, allocations: 16.31 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002037/0.4399, allocations: 93.91 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.44, allocations: 0 / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.44, allocations: 0 / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.594e-05/0.44, allocations: 8 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.4402, allocations: 59.91 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006728/0.4408, allocations: 436.5 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.441, allocations: 90.56 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.207e-05/0.4411, allocations: 25.02 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.432e-05/0.4411, allocations: 4 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001447/0.4412, allocations: 87.3 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.4413, allocations: 0 / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0003155/0.4416, allocations: 145.4 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.4416, allocations: 55.41 kB / 1.073 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.4419, allocations: 183.3 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.4419, allocations: 29.7 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.524e-05/0.442, allocations: 112 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.556e-05/0.442, allocations: 27.56 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.104e-05/0.4421, allocations: 41.69 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4423, allocations: 322.8 kB / 1.073 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.4424, allocations: 51.97 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.4425, allocations: 81.8 kB / 1.073 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001787/0.4427, allocations: 124.2 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.4427, allocations: 0 / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003401/0.4431, allocations: 211.1 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.117e-05/0.4431, allocations: 33.7 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.4431, allocations: 8.531 kB / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.4431, allocations: 0 / 1.074 GB, free: 4.164 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.4433, allocations: 23.98 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.4433, allocations: 7.875 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.4436, allocations: 39.8 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.26e-05/0.4436, allocations: 8 kB / 1.074 GB, free: 4.086 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.00012/0.4437, allocations: 133.8 kB / 1.074 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.4438, allocations: 7.906 kB / 1.074 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.452e-05/0.4438, allocations: 17.41 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.4438, allocations: 0 / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4438, allocations: 3.938 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.4438, allocations: 3.984 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.4441, allocations: 233.5 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.4441, allocations: 0 / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.904e-05/0.4441, allocations: 12 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.4442, allocations: 0 / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.4442, allocations: 3.984 kB / 1.074 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4442, allocations: 7.938 kB / 1.074 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.4442, allocations: 3.938 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002802/0.4445, allocations: 169 kB / 1.074 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.227e-05/0.4446, allocations: 100.9 kB / 1.075 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.11e-05/0.4446, allocations: 8 kB / 1.075 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.958e-05/0.4447, allocations: 0 / 1.075 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.155e-05/0.4447, allocations: 15.86 kB / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.4447, allocations: 8.062 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001417/0.4449, allocations: 131.9 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4449, allocations: 0 / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002354/0.4451, allocations: 32 kB / 1.075 GB, free: 3.113 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 (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.0001538/0.4453, allocations: 107.2 kB / 1.075 GB, free: 3 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000294/0.4456, allocations: 167.3 kB / 1.075 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4456, allocations: 288 / 1.075 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.67e-05/0.4457, allocations: 51.98 kB / 1.075 GB, free: 2.773 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.446, allocations: 31.25 kB / 1.075 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005357/0.4465, allocations: 319 kB / 1.075 GB, free: 2.406 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.4468, allocations: 0.7121 MB / 1.076 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.754e-05/0.4469, allocations: 20.88 kB / 1.076 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.4469, allocations: 11.44 kB / 1.076 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.4469, allocations: 0 / 1.076 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of Templates: time 0.005406/0.4523, allocations: 1.853 MB / 1.078 GB, free: 15.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)