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.0009927/0.0009927, allocations: 67.75 kB / 20.97 MB, free: 3.582 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.0009254/0.0009254, allocations: 169 kB / 24.28 MB, free: 280 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.9962/0.9962, allocations: 177.1 MB / 204.6 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.864/1.864, allocations: 377.8 MB / 0.6239 GB, free: 8.527 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.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.503e-06/1.503e-06, allocations: 0 / 0.8115 GB, free: 2.031 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.625e-05/1.775e-05, allocations: 3.312 kB / 0.8115 GB, free: 2.027 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001378/0.001396, allocations: 0.8415 MB / 0.8124 GB, free: 1.203 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.002671, allocations: 1.327 MB / 0.8137 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.046e-05/0.002731, allocations: 0.9062 kB / 0.8137 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.312e-05/0.002764, allocations: 7.875 kB / 0.8137 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.493e-05/0.002849, allocations: 32.38 kB / 0.8137 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005622/0.003411, allocations: 313.4 kB / 0.814 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.003663, allocations: 292.4 kB / 0.8143 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.003784, allocations: 33.55 kB / 0.8143 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.003937, allocations: 168.6 kB / 0.8145 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.004064, allocations: 83.8 kB / 0.8145 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.549e-05/0.0041, allocations: 25.25 kB / 0.8146 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.365e-05/0.004163, allocations: 39.97 kB / 0.8146 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.829e-05/0.004192, allocations: 23.92 kB / 0.8146 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.504e-05/0.004277, allocations: 91.84 kB / 0.8147 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003843/0.004661, allocations: 221 kB / 0.8149 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.004663, allocations: 0 / 0.8149 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.61e-07/0.004664, allocations: 3.938 kB / 0.8149 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.004669, allocations: 0 / 0.8149 GB, free: 14.55 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.0005064/0.005175, allocations: 0.5491 MB / 0.8155 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.005211, allocations: 8.031 kB / 0.8155 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.287e-05/0.005284, allocations: 28.83 kB / 0.8155 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.299e-05/0.005377, allocations: 125.9 kB / 0.8156 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.005404, allocations: 12.38 kB / 0.8156 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.217e-05/0.005436, allocations: 28.98 kB / 0.8157 GB, free: 13.73 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/0.00557, allocations: 88.47 kB / 0.8157 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.005579, allocations: 5.188 kB / 0.8158 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.005592, allocations: 4 kB / 0.8158 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.005599, allocations: 0 / 0.8158 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.898e-05/0.005658, allocations: 33.78 kB / 0.8158 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004829/0.006141, allocations: 439.2 kB / 0.8162 GB, free: 13.13 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.006307, allocations: 67.02 kB / 0.8163 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.324e-05/0.00634, allocations: 19.8 kB / 0.8163 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 7.354e-06/0.006348, allocations: 5.531 kB / 0.8163 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001248/0.006472, allocations: 111.9 kB / 0.8164 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.006474, allocations: 3.938 kB / 0.8164 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14): time 0.0002642/0.006738, allocations: 158.2 kB / 0.8166 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.00677, allocations: 55.41 kB / 0.8166 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.006876, allocations: 212.2 kB / 0.8168 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.006902, allocations: 31.11 kB / 0.8168 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 7.184e-05/0.006974, allocations: 159.3 kB / 0.817 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.006996, allocations: 27.8 kB / 0.817 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.091e-05/0.007087, allocations: 83.31 kB / 0.8171 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.007205, allocations: 0.4928 MB / 0.8176 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.007368, allocations: 169.7 kB / 0.8177 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.007547, allocations: 238.8 kB / 0.818 GB, free: 11.17 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.007746, allocations: 247.9 kB / 0.8182 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.007748, allocations: 3.938 kB / 0.8182 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004394/0.008188, allocations: 481.4 kB / 0.8187 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.522e-05/0.008243, allocations: 105 kB / 0.8188 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.008248, allocations: 0.625 kB / 0.8188 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.008265, allocations: 4.812 kB / 0.8188 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.444e-05/0.008309, allocations: 11.94 kB / 0.8188 GB, free: 10.24 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.008317, allocations: 4.938 kB / 0.8188 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.008528, allocations: 73.17 kB / 0.8189 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.598e-05/0.008554, allocations: 19.98 kB / 0.8189 GB, free: 10.14 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.485e-05/0.008649, allocations: 173.4 kB / 0.819 GB, free: 9.965 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.936e-05/0.008668, allocations: 26.12 kB / 0.8191 GB, free: 9.941 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.901e-05/0.008697, allocations: 16.72 kB / 0.8191 GB, free: 9.922 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.008699, allocations: 0 / 0.8191 GB, free: 9.922 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.008703, allocations: 0 / 0.8191 GB, free: 9.922 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.008707, allocations: 0 / 0.8191 GB, free: 9.922 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.00882, allocations: 164.5 kB / 0.8192 GB, free: 9.727 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.008821, allocations: 3.438 kB / 0.8192 GB, free: 9.727 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.228e-05/0.008843, allocations: 8 kB / 0.8193 GB, free: 9.719 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.008845, allocations: 0 / 0.8193 GB, free: 9.719 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.008855, allocations: 7.984 kB / 0.8193 GB, free: 9.711 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.008857, allocations: 3.938 kB / 0.8193 GB, free: 9.707 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.008858, allocations: 0 / 0.8193 GB, free: 9.707 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001541/0.009012, allocations: 164.3 kB / 0.8194 GB, free: 9.523 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.344e-05/0.009026, allocations: 11.91 kB / 0.8194 GB, free: 9.512 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.009039, allocations: 0 / 0.8194 GB, free: 9.512 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.001e-05/0.009059, allocations: 16.48 kB / 0.8194 GB, free: 9.496 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.009097, allocations: 7.984 kB / 0.8195 GB, free: 9.488 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.009104, allocations: 4.5 kB / 0.8195 GB, free: 9.484 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.565e-05/0.009159, allocations: 149.8 kB / 0.8196 GB, free: 9.34 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.1e-08/0.009159, allocations: 0 / 0.8196 GB, free: 9.34 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001793/0.009339, allocations: 51.94 kB / 0.8197 GB, free: 9.289 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.0001166/0.009455, allocations: 104.4 kB / 0.8198 GB, free: 9.18 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003391/0.009794, allocations: 424.1 kB / 0.8202 GB, free: 8.707 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.009796, allocations: 4.625 kB / 0.8202 GB, free: 8.703 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.014e-05/0.009846, allocations: 50.03 kB / 0.8202 GB, free: 8.652 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/0.01003, allocations: 25.73 kB / 0.8202 GB, free: 8.629 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003374/0.01036, allocations: 251.6 kB / 0.8205 GB, free: 8.355 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.608e-05/0.0104, allocations: 72.67 kB / 0.8205 GB, free: 8.266 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.224e-05/0.01043, allocations: 8.969 kB / 0.8206 GB, free: 8.258 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.01046, allocations: 16.5 kB / 0.8206 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of SimCode: time 7.01e-07/0.01046, allocations: 3.688 kB / 0.8206 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of Templates: time 0.004568/0.01502, allocations: 3.043 MB / 0.8235 GB, free: 5.297 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.082395988050848]