Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009877/0.0009877, allocations: 87.58 kB / 20.45 MB, free: 4.117 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 161 kB / 23.82 MB, free: 0.75 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9513/0.9513, allocations: 177.2 MB / 204.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.947/1.947, allocations: 377.8 MB / 0.6236 GB, free: 8.551 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 0.8116 GB, free: 0.5039 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.107e-05/2.31e-05, allocations: 2.312 kB / 0.8116 GB, free: 0.5 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001603/0.001626, allocations: 0.8005 MB / 0.8124 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001303/0.002929, allocations: 1.202 MB / 0.8136 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.504e-05/0.002984, allocations: 0 / 0.8136 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 3.754e-05/0.003022, allocations: 8.859 kB / 0.8136 GB, free: 14.51 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 8.784e-05/0.00311, allocations: 19.81 kB / 0.8136 GB, free: 14.49 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004684/0.003578, allocations: 133.1 kB / 0.8137 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0001698/0.003748, allocations: 127.8 kB / 0.8138 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 9.886e-05/0.003847, allocations: 12.86 kB / 0.8138 GB, free: 14.22 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.003965, allocations: 71.88 kB / 0.8139 GB, free: 14.15 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 8.786e-05/0.004053, allocations: 44.66 kB / 0.814 GB, free: 14.11 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.004078, allocations: 12 kB / 0.814 GB, free: 14.1 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 5.987e-05/0.004138, allocations: 29.59 kB / 0.814 GB, free: 14.07 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 2.441e-05/0.004162, allocations: 8 kB / 0.814 GB, free: 14.06 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 5.784e-05/0.00422, allocations: 39.91 kB / 0.814 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0001719/0.004392, allocations: 107.7 kB / 0.8141 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.004395, allocations: 1.531 kB / 0.8141 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.142e-06/0.004396, allocations: 0 / 0.8141 GB, free: 13.92 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.004401, allocations: 0 / 0.8141 GB, free: 13.92 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005269/0.004927, allocations: 433.8 kB / 0.8146 GB, free: 13.45 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.004969, allocations: 13.78 kB / 0.8146 GB, free: 13.44 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.523e-05/0.005034, allocations: 12.89 kB / 0.8146 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.005141, allocations: 120.5 kB / 0.8147 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.005157, allocations: 4.375 kB / 0.8147 GB, free: 13.28 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.005175, allocations: 9.344 kB / 0.8147 GB, free: 13.27 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00017/0.005345, allocations: 74.86 kB / 0.8148 GB, free: 13.19 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.005355, allocations: 0.75 kB / 0.8148 GB, free: 13.19 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.005366, allocations: 4.375 kB / 0.8148 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.005374, allocations: 1.094 kB / 0.8148 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.83e-05/0.005412, allocations: 15.92 kB / 0.8148 GB, free: 13.17 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003832/0.005795, allocations: 312.9 kB / 0.8151 GB, free: 12.83 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 5.515e-05/0.005851, allocations: 31 kB / 0.8151 GB, free: 12.79 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.742e-05/0.005878, allocations: 14.25 kB / 0.8151 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.005895, allocations: 0 / 0.8151 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/0.005995, allocations: 81.02 kB / 0.8152 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=6): time 1.743e-06/0.005997, allocations: 0 / 0.8152 GB, free: 12.68 MB / 0.7292 GB Notification: Performance of matching and sorting (n=6): time 0.0002053/0.006203, allocations: 73.62 kB / 0.8153 GB, free: 12.6 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.798e-05/0.00624, allocations: 63.39 kB / 0.8154 GB, free: 12.52 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.181e-05/0.006332, allocations: 177.9 kB / 0.8155 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.006353, allocations: 34.23 kB / 0.8156 GB, free: 12.29 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.051e-05/0.006413, allocations: 147.4 kB / 0.8157 GB, free: 12.14 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.006432, allocations: 15.91 kB / 0.8157 GB, free: 12.13 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.992e-05/0.006482, allocations: 35.89 kB / 0.8157 GB, free: 12.09 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001239/0.006606, allocations: 0.4923 MB / 0.8162 GB, free: 11.58 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.329e-05/0.006679, allocations: 55.31 kB / 0.8163 GB, free: 11.52 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-05/0.006753, allocations: 88.72 kB / 0.8164 GB, free: 11.42 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.252e-05/0.006845, allocations: 97.31 kB / 0.8165 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.006848, allocations: 0 / 0.8165 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002077/0.007055, allocations: 197.6 kB / 0.8166 GB, free: 11.09 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.007089, allocations: 38.39 kB / 0.8167 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.007094, allocations: 320 / 0.8167 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.007114, allocations: 4.969 kB / 0.8167 GB, free: 11.05 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.482e-05/0.007199, allocations: 11.98 kB / 0.8167 GB, free: 11.04 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.007205, allocations: 5.375 kB / 0.8167 GB, free: 11.03 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.165e-05/0.007297, allocations: 27.92 kB / 0.8167 GB, free: 11 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.007315, allocations: 12.81 kB / 0.8167 GB, free: 10.99 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 8.211e-05/0.007397, allocations: 160.5 kB / 0.8169 GB, free: 10.82 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.00741, allocations: 12.86 kB / 0.8169 GB, free: 10.81 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.532e-05/0.007435, allocations: 8.438 kB / 0.8169 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.007438, allocations: 5.219 kB / 0.8169 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.007442, allocations: 0 / 0.8169 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.007445, allocations: 0 / 0.8169 GB, free: 10.8 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.962e-05/0.007535, allocations: 140.5 kB / 0.8171 GB, free: 10.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.007536, allocations: 0.8438 kB / 0.8171 GB, free: 10.63 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.618e-05/0.007572, allocations: 10.22 kB / 0.8171 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.007573, allocations: 0 / 0.8171 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.007581, allocations: 3.938 kB / 0.8171 GB, free: 10.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.007583, allocations: 3.984 kB / 0.8171 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.007584, allocations: 0 / 0.8171 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.007701, allocations: 108.4 kB / 0.8172 GB, free: 10.48 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.754e-06/0.007708, allocations: 10.95 kB / 0.8172 GB, free: 10.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.007721, allocations: 3.938 kB / 0.8172 GB, free: 10.47 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.426e-05/0.007745, allocations: 7.984 kB / 0.8172 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.215e-05/0.007787, allocations: 11.98 kB / 0.8172 GB, free: 10.45 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.007794, allocations: 4 kB / 0.8172 GB, free: 10.45 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 4.29e-05/0.007837, allocations: 138.7 kB / 0.8173 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6e-08/0.007837, allocations: 0 / 0.8173 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001472/0.007984, allocations: 20 kB / 0.8174 GB, free: 10.3 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.000118/0.008102, allocations: 100.6 kB / 0.8175 GB, free: 10.19 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002113/0.008313, allocations: 152.7 kB / 0.8176 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.008314, allocations: 0.625 kB / 0.8176 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 4.314e-05/0.008358, allocations: 28.36 kB / 0.8176 GB, free: 9.988 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001796/0.008537, allocations: 17.86 kB / 0.8177 GB, free: 9.973 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003/0.008837, allocations: 171 kB / 0.8178 GB, free: 9.777 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.403e-05/0.008871, allocations: 59.34 kB / 0.8179 GB, free: 9.699 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.313e-05/0.008894, allocations: 8.594 kB / 0.8179 GB, free: 9.691 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.923e-05/0.008924, allocations: 17.22 kB / 0.8179 GB, free: 9.676 MB / 0.7292 GB Notification: Performance of SimCode: time 8.72e-07/0.008925, allocations: 3.938 kB / 0.8179 GB, free: 9.676 MB / 0.7292 GB Notification: Performance of Templates: time 0.003511/0.01244, allocations: 1.88 MB / 0.8197 GB, free: 7.859 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.137448004912585]