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.001132/0.001132, 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.001432/0.001432, allocations: 161.4 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.002/1.002, allocations: 177.1 MB / 204.2 MB, free: 5.215 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.951/1.951, allocations: 377.8 MB / 0.6236 GB, free: 8.555 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.814e-06/1.814e-06, allocations: 0 / 0.8116 GB, free: 1.711 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.116e-05/2.297e-05, allocations: 2.312 kB / 0.8116 GB, free: 1.707 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001986/0.002009, allocations: 0.8301 MB / 0.8124 GB, free: 0.9023 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001742/0.003751, allocations: 1.343 MB / 0.8137 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.984e-05/0.003821, allocations: 4.531 kB / 0.8137 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 5.071e-05/0.003872, allocations: 17.17 kB / 0.8137 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001012/0.003973, allocations: 23.8 kB / 0.8137 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008077/0.004781, allocations: 309.8 kB / 0.814 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003508/0.005131, allocations: 295.4 kB / 0.8143 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.005257, allocations: 26.92 kB / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.005471, allocations: 159.8 kB / 0.8145 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.005652, allocations: 91.77 kB / 0.8146 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.638e-05/0.005708, allocations: 28.62 kB / 0.8146 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 9.088e-05/0.005799, allocations: 32 kB / 0.8146 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.364e-05/0.005832, allocations: 29.14 kB / 0.8146 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.005948, allocations: 91.84 kB / 0.8147 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.006259, allocations: 223.4 kB / 0.8149 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.006262, allocations: 0.5312 kB / 0.815 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.81e-07/0.006262, allocations: 0 / 0.815 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.006267, allocations: 5.875 kB / 0.815 GB, free: 14.24 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.0007516/0.007019, allocations: 0.548 MB / 0.8155 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.007066, allocations: 12.03 kB / 0.8155 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.87e-05/0.007165, allocations: 24.84 kB / 0.8155 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.007291, allocations: 130.9 kB / 0.8157 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.189e-05/0.007333, allocations: 14.28 kB / 0.8157 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-05/0.007381, allocations: 20.38 kB / 0.8157 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.007559, allocations: 90.28 kB / 0.8158 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.007573, allocations: 0 / 0.8158 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.007588, allocations: 4 kB / 0.8158 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.007599, allocations: 4.688 kB / 0.8158 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.984e-05/0.007679, allocations: 27.98 kB / 0.8158 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006577/0.008337, allocations: 436.5 kB / 0.8162 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.008554, allocations: 71.03 kB / 0.8163 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.46e-05/0.008598, allocations: 16.28 kB / 0.8163 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 8.195e-06/0.008606, allocations: 1.375 kB / 0.8163 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.008767, allocations: 117 kB / 0.8164 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=14): time 1.753e-06/0.008769, allocations: 0 / 0.8164 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14): time 0.0003367/0.009106, allocations: 157.3 kB / 0.8166 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.009142, allocations: 55.41 kB / 0.8166 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.009289, allocations: 215.8 kB / 0.8168 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.009328, allocations: 34.48 kB / 0.8169 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.632e-05/0.009415, allocations: 155.3 kB / 0.817 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.009444, allocations: 33.06 kB / 0.817 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.00958, allocations: 83.33 kB / 0.8171 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.009727, allocations: 0.4884 MB / 0.8176 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.009953, allocations: 173.9 kB / 0.8178 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.01024, allocations: 246.8 kB / 0.818 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002574/0.0105, allocations: 244.7 kB / 0.8182 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/0.01051, allocations: 4 kB / 0.8182 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005169/0.01103, allocations: 481.3 kB / 0.8187 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 7.715e-05/0.0111, allocations: 97.03 kB / 0.8188 GB, free: 9.945 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.01111, allocations: 6.531 kB / 0.8188 GB, free: 9.941 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.754e-05/0.01114, allocations: 7.984 kB / 0.8188 GB, free: 9.934 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.228e-05/0.0112, allocations: 8 kB / 0.8188 GB, free: 9.926 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.01121, allocations: 0 / 0.8188 GB, free: 9.926 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.01142, allocations: 68.33 kB / 0.8189 GB, free: 9.859 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/0.01145, allocations: 25.08 kB / 0.8189 GB, free: 9.836 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 8.913e-05/0.01154, allocations: 169.5 kB / 0.8191 GB, free: 9.66 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.753e-05/0.01156, allocations: 19.95 kB / 0.8191 GB, free: 9.641 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.01159, allocations: 16.7 kB / 0.8191 GB, free: 9.621 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.01159, allocations: 4.5 kB / 0.8191 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.0116, allocations: 1.469 kB / 0.8191 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.0116, allocations: 0 / 0.8191 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.01172, allocations: 168.4 kB / 0.8193 GB, free: 9.418 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.01172, allocations: 3.984 kB / 0.8193 GB, free: 9.414 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.242e-05/0.01174, allocations: 12.66 kB / 0.8193 GB, free: 9.402 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.01174, allocations: 4 kB / 0.8193 GB, free: 9.398 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.01175, allocations: 1.344 kB / 0.8193 GB, free: 9.398 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.01175, allocations: 3.938 kB / 0.8193 GB, free: 9.395 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.01175, allocations: 3.984 kB / 0.8193 GB, free: 9.391 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001537/0.01191, allocations: 165.2 kB / 0.8194 GB, free: 9.207 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.999e-06/0.01192, allocations: 7.906 kB / 0.8195 GB, free: 9.199 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.184e-05/0.01193, allocations: 4 kB / 0.8195 GB, free: 9.195 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.646e-05/0.01195, allocations: 8.594 kB / 0.8195 GB, free: 9.188 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.01198, allocations: 8.641 kB / 0.8195 GB, free: 9.18 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.01199, allocations: 7.984 kB / 0.8195 GB, free: 9.172 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.395e-05/0.01204, allocations: 150.3 kB / 0.8196 GB, free: 9.027 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01204, allocations: 0 / 0.8196 GB, free: 9.027 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001864/0.01223, allocations: 48 kB / 0.8197 GB, free: 8.98 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.0001164/0.01235, allocations: 115.1 kB / 0.8198 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003497/0.01269, allocations: 421.3 kB / 0.8202 GB, free: 8.391 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-06/0.0127, allocations: 0 / 0.8202 GB, free: 8.391 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 5.064e-05/0.01275, allocations: 53.47 kB / 0.8202 GB, free: 8.336 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001864/0.01293, allocations: 32.92 kB / 0.8203 GB, free: 8.305 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003718/0.0133, allocations: 243 kB / 0.8205 GB, free: 8.039 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.499e-05/0.01335, allocations: 72.3 kB / 0.8206 GB, free: 7.949 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.226e-05/0.01338, allocations: 12.97 kB / 0.8206 GB, free: 7.938 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.789e-05/0.01341, allocations: 17.62 kB / 0.8206 GB, free: 7.922 MB / 0.7761 GB Notification: Performance of SimCode: time 8.61e-07/0.01341, allocations: 0 / 0.8206 GB, free: 7.922 MB / 0.7761 GB Notification: Performance of Templates: time 0.004655/0.01807, allocations: 3.044 MB / 0.8236 GB, free: 4.969 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.397819400765002]