Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Integers.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.0009552/0.0009552, 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.001567/0.001567, 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.011/1.011, allocations: 177.1 MB / 204.2 MB, free: 5.641 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.876/1.876, allocations: 377.8 MB / 0.6236 GB, free: 8.523 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.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 0.8115 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.303e-05/1.458e-05, allocations: 7.25 kB / 0.8116 GB, free: 1.719 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001248/0.001263, allocations: 0.8395 MB / 0.8124 GB, free: 0.8984 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.002532, allocations: 1.339 MB / 0.8137 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.424e-05/0.002586, allocations: 5.031 kB / 0.8137 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.884e-05/0.002625, allocations: 11.86 kB / 0.8137 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.705e-05/0.002702, allocations: 20.56 kB / 0.8137 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005855/0.003287, allocations: 312.9 kB / 0.814 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.003527, allocations: 293 kB / 0.8143 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.546e-05/0.003622, allocations: 33.61 kB / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.003779, allocations: 159.8 kB / 0.8145 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.003912, allocations: 89.16 kB / 0.8146 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.92e-05/0.003951, allocations: 24 kB / 0.8146 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.612e-05/0.004027, allocations: 39.98 kB / 0.8146 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.757e-05/0.004055, allocations: 25.61 kB / 0.8147 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.732e-05/0.004142, allocations: 91.84 kB / 0.8147 GB, free: 14.47 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.004375, allocations: 223.3 kB / 0.815 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.004377, allocations: 0 / 0.815 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.72e-07/0.004378, allocations: 0 / 0.815 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.004382, allocations: 0.5938 kB / 0.815 GB, free: 14.25 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005475/0.00493, allocations: 0.5518 MB / 0.8155 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.004966, allocations: 8.969 kB / 0.8155 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.005035, allocations: 32.84 kB / 0.8155 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001828/0.005218, allocations: 167.2 kB / 0.8157 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.00524, allocations: 20.34 kB / 0.8157 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.00527, allocations: 21.75 kB / 0.8157 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.005391, allocations: 86.3 kB / 0.8158 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.005399, allocations: 0 / 0.8158 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.005413, allocations: 10.58 kB / 0.8158 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.316e-06/0.005421, allocations: 4 kB / 0.8158 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.834e-05/0.00547, allocations: 22.22 kB / 0.8158 GB, free: 13.25 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004232/0.005893, allocations: 439.3 kB / 0.8163 GB, free: 12.79 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.006048, allocations: 67.09 kB / 0.8163 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.029e-05/0.006078, allocations: 23.67 kB / 0.8164 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 7.074e-06/0.006085, allocations: 0.5312 kB / 0.8164 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001173/0.006202, allocations: 108.5 kB / 0.8165 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.006204, allocations: 0 / 0.8165 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14): time 0.0002518/0.006455, allocations: 158.1 kB / 0.8166 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.006491, allocations: 57.06 kB / 0.8167 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.006601, allocations: 208.3 kB / 0.8169 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.006634, allocations: 33.7 kB / 0.8169 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.278e-05/0.006707, allocations: 159.2 kB / 0.817 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.00673, allocations: 36.23 kB / 0.8171 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.021e-05/0.00682, allocations: 79.31 kB / 0.8172 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.006939, allocations: 0.4968 MB / 0.8176 GB, free: 11.29 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.007104, allocations: 169.8 kB / 0.8178 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.007293, allocations: 249.2 kB / 0.818 GB, free: 10.82 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.007497, allocations: 248.3 kB / 0.8183 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.706e-06/0.0075, allocations: 0 / 0.8183 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004488/0.007949, allocations: 481.3 kB / 0.8187 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.228e-05/0.008001, allocations: 101 kB / 0.8188 GB, free: 9.906 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.008009, allocations: 4 kB / 0.8188 GB, free: 9.902 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.008022, allocations: 2.219 kB / 0.8188 GB, free: 9.902 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.364e-05/0.008066, allocations: 19.94 kB / 0.8189 GB, free: 9.883 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.008072, allocations: 3.984 kB / 0.8189 GB, free: 9.879 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.008271, allocations: 66.62 kB / 0.8189 GB, free: 9.816 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.008297, allocations: 15.98 kB / 0.8189 GB, free: 9.801 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booToInt1.y,booToInt.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y,integerSwitch.y,integerSwitch.u3,integerSwitch.u1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 3 * 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.134e-05/0.008388, allocations: 180.5 kB / 0.8191 GB, free: 9.613 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.598e-05/0.008404, allocations: 11.95 kB / 0.8191 GB, free: 9.602 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.861e-05/0.008433, allocations: 20.72 kB / 0.8191 GB, free: 9.578 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.008435, allocations: 1.469 kB / 0.8191 GB, free: 9.578 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.008438, allocations: 4 kB / 0.8191 GB, free: 9.574 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.008443, allocations: 3.984 kB / 0.8192 GB, free: 9.57 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.008555, allocations: 152.5 kB / 0.8193 GB, free: 9.387 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.008556, allocations: 0.5 kB / 0.8193 GB, free: 9.387 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.732e-05/0.008583, allocations: 21.27 kB / 0.8193 GB, free: 9.367 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.008585, allocations: 0 / 0.8193 GB, free: 9.367 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.008593, allocations: 4 kB / 0.8193 GB, free: 9.363 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.008595, allocations: 3.938 kB / 0.8193 GB, free: 9.359 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.008596, allocations: 1.094 kB / 0.8193 GB, free: 9.359 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001436/0.00874, allocations: 156.4 kB / 0.8195 GB, free: 9.184 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.186e-05/0.008752, allocations: 15.91 kB / 0.8195 GB, free: 9.168 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.008764, allocations: 0.6562 kB / 0.8195 GB, free: 9.168 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.789e-05/0.008782, allocations: 12.48 kB / 0.8195 GB, free: 9.156 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.296e-05/0.008815, allocations: 11.98 kB / 0.8195 GB, free: 9.145 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.008824, allocations: 7.688 kB / 0.8195 GB, free: 9.141 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.296e-05/0.008877, allocations: 149.4 kB / 0.8197 GB, free: 8.996 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.008877, allocations: 0 / 0.8197 GB, free: 8.996 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001833/0.00906, allocations: 51.94 kB / 0.8197 GB, free: 8.945 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001068/0.009167, allocations: 107.2 kB / 0.8198 GB, free: 8.832 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003331/0.0095, allocations: 424.4 kB / 0.8202 GB, free: 8.359 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.009502, allocations: 0 / 0.8202 GB, free: 8.359 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.573e-05/0.009558, allocations: 53.97 kB / 0.8203 GB, free: 8.305 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001748/0.009733, allocations: 21.02 kB / 0.8203 GB, free: 8.285 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003242/0.01006, allocations: 244.1 kB / 0.8205 GB, free: 8.02 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.964e-05/0.0101, allocations: 75.14 kB / 0.8206 GB, free: 7.926 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.928e-05/0.01013, allocations: 17.98 kB / 0.8206 GB, free: 7.91 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.409e-05/0.01015, allocations: 16.5 kB / 0.8206 GB, free: 7.895 MB / 0.7761 GB Notification: Performance of SimCode: time 7.11e-07/0.01015, allocations: 1.094 kB / 0.8206 GB, free: 7.895 MB / 0.7761 GB Notification: Performance of Templates: time 0.004579/0.01473, allocations: 3.303 MB / 0.8239 GB, free: 4.676 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Integers_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.2226059208624065]