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.001005/0.001005, allocations: 80.39 kB / 21.47 MB, free: 3.031 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.001086/0.001086, allocations: 171.5 kB / 24.87 MB, free: 9.258 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.9887/0.9887, allocations: 177.1 MB / 205.3 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.991/1.991, allocations: 377.9 MB / 0.6247 GB, free: 8.406 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 4.769e-06/4.769e-06, allocations: 4.984 kB / 0.8128 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.821e-05, allocations: 7.125 kB / 0.8129 GB, free: 1.375 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.001409/0.001437, allocations: 0.7907 MB / 0.8136 GB, free: 0.5977 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.002644, allocations: 1.19 MB / 0.8148 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.051e-05/0.002684, allocations: 0.6562 kB / 0.8148 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.741e-05/0.002712, allocations: 3.938 kB / 0.8148 GB, free: 15.39 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.026e-05/0.002772, allocations: 16.97 kB / 0.8148 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.003087, allocations: 136.9 kB / 0.8149 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.003218, allocations: 127.7 kB / 0.8151 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 5.409e-05/0.003272, allocations: 9.906 kB / 0.8151 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.896e-05/0.003361, allocations: 79.86 kB / 0.8151 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.044e-05/0.003422, allocations: 39.83 kB / 0.8152 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.828e-05/0.00344, allocations: 12 kB / 0.8152 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.452e-05/0.003485, allocations: 27.97 kB / 0.8152 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.003502, allocations: 13.58 kB / 0.8152 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.599e-05/0.003538, allocations: 31.92 kB / 0.8153 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.003651, allocations: 103.7 kB / 0.8154 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.003653, allocations: 4 kB / 0.8154 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.72e-07/0.003654, allocations: 1.594 kB / 0.8154 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.266e-06/0.003657, allocations: 0 / 0.8154 GB, free: 14.8 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.0003607/0.004018, allocations: 442 kB / 0.8158 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.004047, allocations: 8.031 kB / 0.8158 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.942e-05/0.004086, allocations: 21.42 kB / 0.8158 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.704e-05/0.004153, allocations: 117.8 kB / 0.8159 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.004164, allocations: 4.375 kB / 0.8159 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.004176, allocations: 4.375 kB / 0.8159 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.752e-05/0.004274, allocations: 72.08 kB / 0.816 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-06/0.00428, allocations: 192 / 0.816 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-06/0.004287, allocations: 4.375 kB / 0.816 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.00429, allocations: 1.75 kB / 0.816 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.337e-05/0.004314, allocations: 11.92 kB / 0.816 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002459/0.00456, allocations: 296.2 kB / 0.8163 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 3.957e-05/0.004599, allocations: 36.59 kB / 0.8163 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.262e-05/0.004642, allocations: 15.69 kB / 0.8164 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.004657, allocations: 0 / 0.8164 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.514e-05/0.004753, allocations: 73.06 kB / 0.8164 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.004754, allocations: 1.344 kB / 0.8164 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0001446/0.004898, allocations: 77.58 kB / 0.8165 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.004923, allocations: 51.41 kB / 0.8166 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.28e-05/0.004996, allocations: 177.9 kB / 0.8167 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.005018, allocations: 30.2 kB / 0.8167 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.398e-05/0.005072, allocations: 143.4 kB / 0.8169 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.005088, allocations: 25.73 kB / 0.8169 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.005138, allocations: 39.34 kB / 0.8169 GB, free: 13 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.005249, allocations: 0.4923 MB / 0.8174 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.793e-05/0.005297, allocations: 45.69 kB / 0.8175 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.822e-05/0.005355, allocations: 88.61 kB / 0.8176 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.511e-05/0.00543, allocations: 94.95 kB / 0.8176 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.005432, allocations: 0 / 0.8176 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001751/0.005607, allocations: 173 kB / 0.8178 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.005633, allocations: 41.64 kB / 0.8179 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.105e-06/0.005636, allocations: 0.5312 kB / 0.8179 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.005645, allocations: 4.719 kB / 0.8179 GB, free: 12 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.395e-05/0.005709, allocations: 15.92 kB / 0.8179 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-06/0.005711, allocations: 0.5312 kB / 0.8179 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.504e-05/0.005796, allocations: 32.86 kB / 0.8179 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.00581, allocations: 8.688 kB / 0.8179 GB, free: 11.94 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 6.941e-05/0.005879, allocations: 161.6 kB / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.00589, allocations: 7.953 kB / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.141e-05/0.005912, allocations: 16.36 kB / 0.8181 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.005914, allocations: 4.844 kB / 0.8181 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.005916, allocations: 0 / 0.8181 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.005919, allocations: 1.531 kB / 0.8181 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.027e-05/0.005989, allocations: 109.5 kB / 0.8182 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.00599, allocations: 0 / 0.8182 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.204e-05/0.006022, allocations: 15.98 kB / 0.8182 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.006024, allocations: 8.938 kB / 0.8182 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/0.006029, allocations: 0 / 0.8182 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.00603, allocations: 0 / 0.8182 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.006032, allocations: 6 kB / 0.8182 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001238/0.006155, allocations: 104.4 kB / 0.8183 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 7.194e-06/0.006162, allocations: 3.984 kB / 0.8183 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.006173, allocations: 4 kB / 0.8183 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.244e-05/0.006195, allocations: 4 kB / 0.8183 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.62e-05/0.006222, allocations: 14.2 kB / 0.8184 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.006226, allocations: 4 kB / 0.8184 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.719e-05/0.006263, allocations: 135.2 kB / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.006263, allocations: 0 / 0.8185 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001383/0.006402, allocations: 31.89 kB / 0.8185 GB, free: 11.27 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 8.967e-05/0.006491, allocations: 104.3 kB / 0.8186 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002847/0.006776, allocations: 140.8 kB / 0.8188 GB, free: 11 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 8.52e-07/0.006777, allocations: 1.031 kB / 0.8188 GB, free: 11 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.793e-05/0.006805, allocations: 27.62 kB / 0.8188 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.006931, allocations: 23.59 kB / 0.8188 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002083/0.007139, allocations: 167.7 kB / 0.819 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.755e-05/0.007167, allocations: 63.2 kB / 0.819 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.154e-05/0.007188, allocations: 5.844 kB / 0.819 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.786e-05/0.007266, allocations: 90.17 kB / 0.8191 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of SimCode: time 4.71e-07/0.007267, allocations: 0 / 0.8191 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of Templates: time 0.003137/0.0104, allocations: 1.928 MB / 0.821 GB, free: 8.719 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.277768294792622]