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.001426/0.001426, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001492/0.001492, allocations: 169 kB / 24.28 MB, free: 272 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.9889/0.9889, allocations: 177.1 MB / 204.6 MB, free: 5.629 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.829/1.829, allocations: 377.8 MB / 0.6239 GB, free: 8.586 MB / 0.5886 GB " [Timeout remaining time 178] 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.853e-06/1.853e-06, allocations: 0 / 0.8116 GB, free: 2.004 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.184e-05/2.369e-05, allocations: 2.312 kB / 0.8116 GB, free: 2 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002103/0.002127, allocations: 0.8012 MB / 0.8124 GB, free: 1.219 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001522/0.003649, allocations: 1.187 MB / 0.8135 GB, free: 20 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.905e-05/0.003708, allocations: 0 / 0.8135 GB, free: 20 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.255e-05/0.00374, allocations: 3.938 kB / 0.8135 GB, free: 16 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.003842, allocations: 25.17 kB / 0.8136 GB, free: 15.99 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004915/0.004333, allocations: 133.4 kB / 0.8137 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002093/0.004543, allocations: 127.7 kB / 0.8138 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.004667, allocations: 11.98 kB / 0.8138 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001527/0.00482, allocations: 71.88 kB / 0.8139 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.004929, allocations: 49.16 kB / 0.8139 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.182e-05/0.00496, allocations: 12 kB / 0.814 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.242e-05/0.005033, allocations: 23.98 kB / 0.814 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.592e-05/0.005059, allocations: 7.984 kB / 0.814 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.871e-05/0.005127, allocations: 41.5 kB / 0.814 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.00533, allocations: 95.75 kB / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.005332, allocations: 0 / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.01e-07/0.005333, allocations: 0 / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.005339, allocations: 6.172 kB / 0.8141 GB, free: 15.43 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.0006154/0.005954, allocations: 438 kB / 0.8145 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.006004, allocations: 12.03 kB / 0.8146 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.174e-05/0.006075, allocations: 12.89 kB / 0.8146 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.006191, allocations: 128.5 kB / 0.8147 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.00621, allocations: 4.906 kB / 0.8147 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.006232, allocations: 4.375 kB / 0.8147 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001909/0.006423, allocations: 71.64 kB / 0.8148 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.006432, allocations: 0.7188 kB / 0.8148 GB, free: 14.7 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.006446, allocations: 6 kB / 0.8148 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.006454, allocations: 384 / 0.8148 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.788e-05/0.006512, allocations: 15.94 kB / 0.8148 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004714/0.006984, allocations: 311.6 kB / 0.8151 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 6.925e-05/0.007053, allocations: 31.58 kB / 0.8151 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.837e-05/0.007091, allocations: 17 kB / 0.8151 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.948e-05/0.007111, allocations: 0 / 0.8151 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001239/0.007235, allocations: 81 kB / 0.8152 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.007236, allocations: 0 / 0.8152 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.0002611/0.007497, allocations: 74.8 kB / 0.8153 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.007542, allocations: 55.41 kB / 0.8153 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.007669, allocations: 180.3 kB / 0.8155 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.007694, allocations: 31.08 kB / 0.8155 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.761e-05/0.007772, allocations: 146.9 kB / 0.8157 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.398e-05/0.007796, allocations: 15.86 kB / 0.8157 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.252e-05/0.007868, allocations: 40.92 kB / 0.8157 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.008019, allocations: 496.1 kB / 0.8162 GB, free: 13.1 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.008126, allocations: 57.69 kB / 0.8163 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.008242, allocations: 104.8 kB / 0.8164 GB, free: 12.92 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.008372, allocations: 97.69 kB / 0.8164 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.008376, allocations: 4 kB / 0.8165 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003012/0.008677, allocations: 185.8 kB / 0.8166 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.714e-05/0.008714, allocations: 35.27 kB / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.00872, allocations: 0 / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.008736, allocations: 4 kB / 0.8167 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.008838, allocations: 15.92 kB / 0.8167 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.008843, allocations: 0.9688 kB / 0.8167 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/0.008983, allocations: 37.95 kB / 0.8167 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.009006, allocations: 8 kB / 0.8167 GB, free: 12.5 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 9.809e-05/0.009104, allocations: 160.6 kB / 0.8169 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.009123, allocations: 11.89 kB / 0.8169 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.009151, allocations: 12.42 kB / 0.8169 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.009155, allocations: 6.25 kB / 0.8169 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.009158, allocations: 0 / 0.8169 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.009162, allocations: 0 / 0.8169 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001063/0.009268, allocations: 132.6 kB / 0.817 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.00927, allocations: 0 / 0.817 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.308e-05/0.009323, allocations: 12.48 kB / 0.817 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.009324, allocations: 3.938 kB / 0.8171 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.009334, allocations: 4.469 kB / 0.8171 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.009335, allocations: 1.938 kB / 0.8171 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.009336, allocations: 0 / 0.8171 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001494/0.009486, allocations: 108.4 kB / 0.8172 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 7.785e-06/0.009493, allocations: 4 kB / 0.8172 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.00951, allocations: 3.938 kB / 0.8172 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.348e-05/0.009554, allocations: 13.02 kB / 0.8172 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.009599, allocations: 7.984 kB / 0.8172 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.009608, allocations: 4 kB / 0.8172 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.61e-05/0.009664, allocations: 135.8 kB / 0.8173 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.009664, allocations: 0 / 0.8173 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002539/0.009918, allocations: 28.61 kB / 0.8173 GB, free: 11.8 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.0001253/0.01004, allocations: 102.7 kB / 0.8174 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002483/0.01029, allocations: 152.8 kB / 0.8176 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.01029, allocations: 4 kB / 0.8176 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.475e-05/0.01035, allocations: 31.55 kB / 0.8176 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.01057, allocations: 22.64 kB / 0.8176 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003496/0.01092, allocations: 168.3 kB / 0.8178 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.119e-05/0.01096, allocations: 63.2 kB / 0.8179 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.355e-05/0.01099, allocations: 4.938 kB / 0.8179 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/0.01103, allocations: 12.5 kB / 0.8179 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of SimCode: time 5.82e-07/0.01103, allocations: 1.125 kB / 0.8179 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of Templates: time 0.004509/0.01554, allocations: 1.723 MB / 0.8196 GB, free: 9.516 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.334767013089731]