Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator") translateModel(Buildings.Templates.Components.Controls.Validation.StatusEmulator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001409/0.001409, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.001304/0.001304, allocations: 195.5 kB / 16.26 MB, free: 6.617 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.379/1.379, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.825/2.825, allocations: 472.6 MB / 0.7448 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 62.38 kB / 0.9115 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3557, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003903/0.3597, allocations: 1.837 MB / 1.069 GB, free: 8.988 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001719/0.3614, allocations: 0.8222 MB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.3616, allocations: 3.938 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.3618, allocations: 7.938 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003313/0.3621, allocations: 31.84 kB / 1.07 GB, free: 8.117 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006739/0.3628, allocations: 143 kB / 1.07 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000385/0.3632, allocations: 215.5 kB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.3634, allocations: 45.41 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.3635, allocations: 79.75 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.3637, allocations: 87.55 kB / 1.071 GB, free: 7.562 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.696e-05/0.3638, allocations: 16 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.579e-05/0.3639, allocations: 35.98 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.891e-05/0.364, allocations: 27.92 kB / 1.071 GB, free: 7.484 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.3641, allocations: 75.64 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003086/0.3644, allocations: 195.7 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3644, allocations: 0 / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.886e-06/0.3644, allocations: 0 / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.118e-05/0.3644, allocations: 4 kB / 1.071 GB, free: 7.215 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.001011/0.3655, allocations: 480.5 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.3655, allocations: 16.03 kB / 1.072 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.969e-05/0.3656, allocations: 16.75 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.3661, allocations: 232.8 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.3661, allocations: 4.375 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/0.3662, allocations: 20.3 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.3664, allocations: 101.8 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3664, allocations: 0 / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.3664, allocations: 0 / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.83e-05/0.3665, allocations: 4 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.3666, allocations: 63.95 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008444/0.3675, allocations: 436.5 kB / 1.073 GB, free: 5.723 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.3677, allocations: 86.62 kB / 1.073 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.908e-05/0.3678, allocations: 28.84 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.198e-05/0.3678, allocations: 0 / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.368, allocations: 91.31 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.783e-06/0.368, allocations: 0 / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.00044/0.3685, allocations: 133.4 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.3686, allocations: 55.41 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.3689, allocations: 183.7 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.938e-05/0.3689, allocations: 29.7 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.3691, allocations: 116.2 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.658e-05/0.3691, allocations: 31.55 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.586e-05/0.3692, allocations: 41.64 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002172/0.3694, allocations: 322.8 kB / 1.074 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.3696, allocations: 51.97 kB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.3697, allocations: 81.42 kB / 1.074 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002437/0.37, allocations: 124.2 kB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.37, allocations: 4 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004136/0.3704, allocations: 203.1 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 6.557e-05/0.3705, allocations: 41.69 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3705, allocations: 4 kB / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/0.3705, allocations: 0 / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.3707, allocations: 31.98 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.3708, allocations: 3.938 kB / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002509/0.371, allocations: 31.88 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.603e-05/0.3711, allocations: 11.98 kB / 1.074 GB, free: 3.93 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.0001496/0.3712, allocations: 125.8 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.101e-05/0.3712, allocations: 7.906 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.761e-05/0.3713, allocations: 25.39 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3713, allocations: 0 / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.3713, allocations: 7.938 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3713, allocations: 0 / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002609/0.3716, allocations: 225.5 kB / 1.075 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3716, allocations: 4 kB / 1.075 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.309e-05/0.3717, allocations: 15.92 kB / 1.075 GB, free: 3.465 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.3717, allocations: 4 kB / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.3717, allocations: 0 / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3717, allocations: 0 / 1.075 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3718, allocations: 3.938 kB / 1.075 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.3721, allocations: 168.9 kB / 1.075 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.3722, allocations: 100.9 kB / 1.075 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.192e-05/0.3722, allocations: 8 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.984e-05/0.3723, allocations: 4.172 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.858e-05/0.3724, allocations: 11.88 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.3724, allocations: 15.92 kB / 1.075 GB, free: 3.117 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001698/0.3726, allocations: 128.9 kB / 1.075 GB, free: 2.992 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3726, allocations: 4 kB / 1.075 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002537/0.3728, allocations: 32 kB / 1.075 GB, free: 2.957 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.0001937/0.373, allocations: 116.6 kB / 1.075 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003128/0.3734, allocations: 175.2 kB / 1.075 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3734, allocations: 0 / 1.075 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.497e-05/0.3734, allocations: 35.98 kB / 1.075 GB, free: 2.617 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.3738, allocations: 28.11 kB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006503/0.3744, allocations: 329.1 kB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.3748, allocations: 0.7119 MB / 1.076 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.741e-05/0.3748, allocations: 12.88 kB / 1.076 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.689e-05/0.3749, allocations: 19.44 kB / 1.076 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3749, allocations: 4 kB / 1.076 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of Templates: time 0.00508/0.38, allocations: 1.932 MB / 1.078 GB, free: 15.56 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.makefile (rm -f Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & ./Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1)