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.001108/0.001108, allocations: 81.86 kB / 20.68 MB, free: 3.82 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.001925/0.001925, allocations: 181 kB / 24.09 MB, free: 424 kB / 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.9699/0.9699, allocations: 177.1 MB / 204.5 MB, free: 5.512 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.928/1.928, allocations: 377.9 MB / 0.624 GB, free: 8.402 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.755e-06/2.755e-06, allocations: 0 / 0.8121 GB, free: 1.355 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.207e-05/3.482e-05, allocations: 7.25 kB / 0.8121 GB, free: 1.348 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.00247/0.002505, allocations: 0.7974 MB / 0.8129 GB, free: 0.5664 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001642/0.004148, allocations: 1.195 MB / 0.814 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.31e-05/0.004201, allocations: 0 / 0.814 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.138e-05/0.004232, allocations: 3.938 kB / 0.814 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.57e-05/0.004318, allocations: 20.44 kB / 0.8141 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.004759, allocations: 136.6 kB / 0.8142 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.004908, allocations: 124.3 kB / 0.8143 GB, free: 15.08 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.591e-05/0.005004, allocations: 17.09 kB / 0.8143 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.005127, allocations: 67.89 kB / 0.8144 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 8.159e-05/0.005208, allocations: 43.92 kB / 0.8144 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.005229, allocations: 12.81 kB / 0.8144 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 5.897e-05/0.005288, allocations: 24 kB / 0.8145 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.135e-05/0.005309, allocations: 9.203 kB / 0.8145 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.94e-05/0.005348, allocations: 39.89 kB / 0.8145 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.005486, allocations: 103.7 kB / 0.8146 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.005488, allocations: 1.438 kB / 0.8146 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.82e-07/0.005489, allocations: 0 / 0.8146 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.028e-06/0.005493, allocations: 0 / 0.8146 GB, free: 14.77 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.0004828/0.005976, allocations: 443.5 kB / 0.815 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.006018, allocations: 12.03 kB / 0.815 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.851e-05/0.006057, allocations: 12.89 kB / 0.8151 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.745e-05/0.006134, allocations: 120.6 kB / 0.8152 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.006145, allocations: 384 / 0.8152 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.446e-05/0.00616, allocations: 9.656 kB / 0.8152 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.006288, allocations: 78.84 kB / 0.8153 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.006297, allocations: 2.062 kB / 0.8153 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.006304, allocations: 384 / 0.8153 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.006311, allocations: 384 / 0.8153 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.353e-05/0.006334, allocations: 11.94 kB / 0.8153 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003289/0.006663, allocations: 292.3 kB / 0.8155 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 4.782e-05/0.006711, allocations: 32.38 kB / 0.8156 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.19e-05/0.006733, allocations: 19.77 kB / 0.8156 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.006756, allocations: 0 / 0.8156 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001116/0.006868, allocations: 66.38 kB / 0.8157 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 9.92e-07/0.006869, allocations: 0 / 0.8157 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0001931/0.007062, allocations: 85.5 kB / 0.8157 GB, free: 13.48 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.007097, allocations: 55.41 kB / 0.8158 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.513e-05/0.007192, allocations: 174.5 kB / 0.816 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.007213, allocations: 30.33 kB / 0.816 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.302e-05/0.007276, allocations: 138.9 kB / 0.8161 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.007297, allocations: 21.81 kB / 0.8161 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.329e-05/0.00735, allocations: 43.34 kB / 0.8162 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001416/0.007492, allocations: 496.1 kB / 0.8167 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.634e-05/0.007558, allocations: 53.67 kB / 0.8167 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.622e-05/0.007624, allocations: 80.69 kB / 0.8168 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.551e-05/0.00771, allocations: 93.92 kB / 0.8169 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.007712, allocations: 3.938 kB / 0.8169 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001972/0.007909, allocations: 178.4 kB / 0.817 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.007945, allocations: 45.62 kB / 0.8171 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.007949, allocations: 0.625 kB / 0.8171 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.007962, allocations: 0 / 0.8171 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.773e-05/0.00804, allocations: 13.09 kB / 0.8171 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.008044, allocations: 0 / 0.8171 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.994e-05/0.008134, allocations: 32.61 kB / 0.8171 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.008149, allocations: 8.703 kB / 0.8171 GB, free: 11.92 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.219e-05/0.008231, allocations: 172.5 kB / 0.8173 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.008242, allocations: 8.766 kB / 0.8173 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.473e-05/0.008267, allocations: 12.69 kB / 0.8173 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.008269, allocations: 0.9375 kB / 0.8173 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.008271, allocations: 0 / 0.8173 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.008275, allocations: 9.344 kB / 0.8173 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.308e-05/0.008358, allocations: 113.2 kB / 0.8174 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.00836, allocations: 0 / 0.8174 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.327e-05/0.008393, allocations: 11.98 kB / 0.8175 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.008396, allocations: 0.9688 kB / 0.8175 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-06/0.008402, allocations: 0 / 0.8175 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.008402, allocations: 6.312 kB / 0.8175 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.008404, allocations: 3.938 kB / 0.8175 GB, free: 11.55 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001182/0.008522, allocations: 112.3 kB / 0.8176 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.777e-06/0.008531, allocations: 0 / 0.8176 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.337e-06/0.00854, allocations: 0 / 0.8176 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.329e-05/0.008564, allocations: 7.984 kB / 0.8176 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.186e-05/0.008596, allocations: 19.36 kB / 0.8176 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.008601, allocations: 0 / 0.8176 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.563e-05/0.008647, allocations: 135.7 kB / 0.8177 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.008647, allocations: 0 / 0.8177 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001593/0.008806, allocations: 27.95 kB / 0.8178 GB, free: 11.24 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.0001477/0.008954, allocations: 99.23 kB / 0.8179 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001679/0.009122, allocations: 148.7 kB / 0.818 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.009123, allocations: 0.75 kB / 0.818 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.544e-05/0.009159, allocations: 27.67 kB / 0.818 GB, free: 10.93 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001518/0.009311, allocations: 16.98 kB / 0.818 GB, free: 10.92 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002827/0.009593, allocations: 168.5 kB / 0.8182 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.991e-05/0.009633, allocations: 67.2 kB / 0.8183 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.92e-05/0.009662, allocations: 4 kB / 0.8183 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.951e-05/0.009752, allocations: 86.72 kB / 0.8183 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of SimCode: time 6.42e-07/0.009753, allocations: 0.8125 kB / 0.8183 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of Templates: time 0.00349/0.01324, allocations: 1.883 MB / 0.8202 GB, free: 8.73 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.191893252078444]