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.001044/0.001044, 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.001042/0.001042, 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 1.071/1.071, allocations: 177.1 MB / 204.2 MB, free: 5.25 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 2.012/2.012, 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 1.754e-06/1.754e-06, allocations: 0 / 0.8116 GB, free: 1.641 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.94e-05/2.115e-05, allocations: 3 kB / 0.8116 GB, free: 1.637 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001371/0.001393, allocations: 0.7921 MB / 0.8124 GB, free: 0.8633 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001227/0.002619, allocations: 1.196 MB / 0.8135 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.856e-05/0.002668, allocations: 4 kB / 0.8136 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.525e-05/0.002703, allocations: 3.938 kB / 0.8136 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.171e-05/0.002775, allocations: 7.875 kB / 0.8136 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004267/0.003201, allocations: 136.9 kB / 0.8137 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.003352, allocations: 133.2 kB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.23e-05/0.003444, allocations: 12 kB / 0.8138 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.003558, allocations: 75.86 kB / 0.8139 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.937e-05/0.003638, allocations: 35.89 kB / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.003662, allocations: 12.53 kB / 0.814 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.405e-05/0.003726, allocations: 31.97 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.238e-05/0.003748, allocations: 12.64 kB / 0.814 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.958e-05/0.003798, allocations: 35.91 kB / 0.814 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001566/0.003955, allocations: 100.3 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.003957, allocations: 1.312 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.72e-07/0.003958, allocations: 7.938 kB / 0.8141 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.003962, allocations: 0 / 0.8141 GB, free: 15.06 MB / 0.7761 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.0004714/0.004433, allocations: 438.5 kB / 0.8146 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.004471, allocations: 13.41 kB / 0.8146 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5e-05/0.004521, allocations: 8.891 kB / 0.8146 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.585e-05/0.004607, allocations: 120.5 kB / 0.8147 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.004621, allocations: 8.359 kB / 0.8147 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.004641, allocations: 9.531 kB / 0.8147 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.004783, allocations: 70.92 kB / 0.8148 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.004793, allocations: 1.375 kB / 0.8148 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.00481, allocations: 384 / 0.8148 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.004819, allocations: 4.375 kB / 0.8148 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.055e-05/0.004859, allocations: 15.92 kB / 0.8148 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003496/0.005209, allocations: 316.7 kB / 0.8151 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 5.15e-05/0.00526, allocations: 31.06 kB / 0.8151 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.837e-05/0.005289, allocations: 20.58 kB / 0.8151 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.957e-05/0.005308, allocations: 0 / 0.8151 GB, free: 13.9 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.347e-05/0.005402, allocations: 82.14 kB / 0.8152 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 9.21e-07/0.005403, allocations: 0 / 0.8152 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0001904/0.005593, allocations: 77.62 kB / 0.8153 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.005622, allocations: 52.72 kB / 0.8153 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.174e-05/0.005714, allocations: 183.7 kB / 0.8155 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.005732, allocations: 29.7 kB / 0.8156 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.112e-05/0.005793, allocations: 138.9 kB / 0.8157 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.747e-05/0.00581, allocations: 17.47 kB / 0.8157 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.362e-05/0.005864, allocations: 43.36 kB / 0.8157 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.005977, allocations: 492.1 kB / 0.8162 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.467e-05/0.006052, allocations: 61.67 kB / 0.8163 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.752e-05/0.006129, allocations: 99.33 kB / 0.8164 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.932e-05/0.006219, allocations: 92.81 kB / 0.8165 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.00622, allocations: 0 / 0.8165 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002/0.00642, allocations: 185 kB / 0.8166 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.006451, allocations: 38.19 kB / 0.8167 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.006455, allocations: 0 / 0.8167 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.006472, allocations: 0.5312 kB / 0.8167 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-05/0.006554, allocations: 25.8 kB / 0.8167 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.006559, allocations: 4 kB / 0.8167 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.852e-05/0.006648, allocations: 27.88 kB / 0.8167 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.006663, allocations: 7.984 kB / 0.8167 GB, free: 12.14 MB / 0.7761 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.121e-05/0.006744, allocations: 166.3 kB / 0.8169 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.006757, allocations: 11.89 kB / 0.8169 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.006784, allocations: 8.438 kB / 0.8169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.006786, allocations: 0.875 kB / 0.8169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.006789, allocations: 0 / 0.8169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.006794, allocations: 7.984 kB / 0.8169 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.222e-05/0.006876, allocations: 129.5 kB / 0.817 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.006877, allocations: 0 / 0.817 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.358e-05/0.006911, allocations: 12.83 kB / 0.8171 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.006913, allocations: 7.938 kB / 0.8171 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.006922, allocations: 5.219 kB / 0.8171 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.006923, allocations: 0 / 0.8171 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.006924, allocations: 0 / 0.8171 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00011/0.007034, allocations: 108.8 kB / 0.8172 GB, free: 11.63 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.196e-06/0.007042, allocations: 8.844 kB / 0.8172 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.007055, allocations: 7.938 kB / 0.8172 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.313e-05/0.007078, allocations: 6.906 kB / 0.8172 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.007118, allocations: 7.984 kB / 0.8172 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.007122, allocations: 0 / 0.8172 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.271e-05/0.007165, allocations: 135.2 kB / 0.8173 GB, free: 11.47 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.007165, allocations: 4 kB / 0.8173 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001527/0.007318, allocations: 27.95 kB / 0.8174 GB, free: 11.44 MB / 0.7761 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.0001039/0.007421, allocations: 105.8 kB / 0.8175 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001835/0.007605, allocations: 152.8 kB / 0.8176 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.007606, allocations: 0 / 0.8176 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.758e-05/0.007644, allocations: 23.62 kB / 0.8176 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/0.007805, allocations: 20.92 kB / 0.8176 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002938/0.008099, allocations: 174.2 kB / 0.8178 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.199e-05/0.008131, allocations: 59.22 kB / 0.8179 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.369e-05/0.008155, allocations: 9.016 kB / 0.8179 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.008181, allocations: 13.62 kB / 0.8179 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of SimCode: time 5.11e-07/0.008181, allocations: 3.938 kB / 0.8179 GB, free: 10.81 MB / 0.7761 GB Notification: Performance of Templates: time 0.003282/0.01146, allocations: 1.73 MB / 0.8196 GB, free: 9.141 MB / 0.7761 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.539530539885163]