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.001075/0.001075, allocations: 81.95 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.001633/0.001633, allocations: 165.6 kB / 24.87 MB, free: 8.891 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.9912/0.9912, allocations: 177.1 MB / 205.3 MB, free: 5.496 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 2.011/2.011, 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.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 2.445e-06/2.445e-06, allocations: 0 / 0.8128 GB, free: 1.414 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.682e-05/2.927e-05, allocations: 6.25 kB / 0.8128 GB, free: 1.406 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.004878/0.004907, allocations: 0.8206 MB / 0.8136 GB, free: 0.6055 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001515/0.006422, allocations: 1.334 MB / 0.8149 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.791e-05/0.00649, allocations: 4.875 kB / 0.8149 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.825e-05/0.006528, allocations: 11.81 kB / 0.8149 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.478e-05/0.006623, allocations: 28.52 kB / 0.815 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.003842/0.01046, allocations: 306.5 kB / 0.8152 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003382/0.0108, allocations: 291.5 kB / 0.8155 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.01091, allocations: 33.55 kB / 0.8156 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.0111, allocations: 168.5 kB / 0.8157 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.01126, allocations: 87.78 kB / 0.8158 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.933e-05/0.01131, allocations: 32.66 kB / 0.8158 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 8.354e-05/0.0114, allocations: 31.98 kB / 0.8159 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.155e-05/0.01143, allocations: 25.52 kB / 0.8159 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 9.008e-05/0.01152, allocations: 87.84 kB / 0.816 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002698/0.01179, allocations: 223.4 kB / 0.8162 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.01179, allocations: 0 / 0.8162 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.252e-06/0.01179, allocations: 0.5312 kB / 0.8162 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.0118, allocations: 0 / 0.8162 GB, free: 13.96 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.0005561/0.01235, allocations: 0.5448 MB / 0.8167 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.01239, allocations: 8.031 kB / 0.8167 GB, free: 13.35 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.9e-05/0.01247, allocations: 37.31 kB / 0.8168 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002023/0.01267, allocations: 166.6 kB / 0.8169 GB, free: 13.13 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.447e-05/0.0127, allocations: 12.38 kB / 0.8169 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.01273, allocations: 24.36 kB / 0.817 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.01286, allocations: 86.28 kB / 0.817 GB, free: 13 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.01287, allocations: 4.531 kB / 0.817 GB, free: 13 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.01288, allocations: 4 kB / 0.817 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.8e-06/0.01288, allocations: 0.5938 kB / 0.817 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.202e-05/0.01292, allocations: 26.33 kB / 0.8171 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00353/0.01645, allocations: 416.6 kB / 0.8175 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.01662, allocations: 60.27 kB / 0.8175 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.82e-05/0.01664, allocations: 19.73 kB / 0.8175 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 7.103e-06/0.01665, allocations: 1.375 kB / 0.8175 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001398/0.01679, allocations: 112.9 kB / 0.8176 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=14): time 2.465e-06/0.01679, allocations: 0 / 0.8176 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14): time 0.0002523/0.01705, allocations: 135.5 kB / 0.8178 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/0.01708, allocations: 59.34 kB / 0.8178 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.01721, allocations: 212 kB / 0.818 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.01724, allocations: 33.69 kB / 0.8181 GB, free: 11.85 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.768e-05/0.01733, allocations: 155.3 kB / 0.8182 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.01736, allocations: 37.94 kB / 0.8183 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.01748, allocations: 79.3 kB / 0.8183 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.01763, allocations: 0.4962 MB / 0.8188 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.01778, allocations: 164.9 kB / 0.819 GB, free: 10.88 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001732/0.01795, allocations: 229.5 kB / 0.8192 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.01815, allocations: 237.5 kB / 0.8194 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.01815, allocations: 0 / 0.8194 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005293/0.01868, allocations: 454.5 kB / 0.8199 GB, free: 9.852 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 6.541e-05/0.01875, allocations: 97.09 kB / 0.8199 GB, free: 9.738 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.01876, allocations: 0 / 0.8199 GB, free: 9.738 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.01877, allocations: 8.562 kB / 0.82 GB, free: 9.73 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.619e-05/0.01882, allocations: 12.55 kB / 0.82 GB, free: 9.719 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.01883, allocations: 7.938 kB / 0.82 GB, free: 9.711 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.01909, allocations: 66.33 kB / 0.82 GB, free: 9.648 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.783e-05/0.01918, allocations: 19.98 kB / 0.8201 GB, free: 9.629 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 0.0001542/0.01934, allocations: 179.1 kB / 0.8202 GB, free: 9.445 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.01937, allocations: 11.95 kB / 0.8202 GB, free: 9.434 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.01941, allocations: 16.77 kB / 0.8203 GB, free: 9.414 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.01942, allocations: 7.938 kB / 0.8203 GB, free: 9.406 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.01942, allocations: 0 / 0.8203 GB, free: 9.406 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.01942, allocations: 0 / 0.8203 GB, free: 9.406 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.01955, allocations: 133.2 kB / 0.8204 GB, free: 9.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.01955, allocations: 4.656 kB / 0.8204 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.695e-05/0.0196, allocations: 13.03 kB / 0.8204 GB, free: 9.234 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.0196, allocations: 0 / 0.8204 GB, free: 9.234 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.01961, allocations: 0 / 0.8204 GB, free: 9.234 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.01961, allocations: 5.125 kB / 0.8204 GB, free: 9.23 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01961, allocations: 0 / 0.8204 GB, free: 9.23 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001727/0.01979, allocations: 156.3 kB / 0.8206 GB, free: 9.055 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.642e-05/0.0198, allocations: 16.69 kB / 0.8206 GB, free: 9.039 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.01981, allocations: 0 / 0.8206 GB, free: 9.039 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.535e-05/0.01984, allocations: 15.94 kB / 0.8206 GB, free: 9.023 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.01987, allocations: 16.58 kB / 0.8206 GB, free: 9.008 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.01988, allocations: 7.984 kB / 0.8206 GB, free: 9 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.295e-05/0.01993, allocations: 148.6 kB / 0.8208 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01993, allocations: 0 / 0.8208 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002175/0.02015, allocations: 48 kB / 0.8208 GB, free: 8.812 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.000136/0.02028, allocations: 103.2 kB / 0.8209 GB, free: 8.703 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002998/0.02058, allocations: 405.1 kB / 0.8213 GB, free: 8.25 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.02058, allocations: 1.438 kB / 0.8213 GB, free: 8.25 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.227e-05/0.02063, allocations: 47.61 kB / 0.8213 GB, free: 8.199 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.02082, allocations: 32.86 kB / 0.8214 GB, free: 8.168 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003121/0.02114, allocations: 244 kB / 0.8216 GB, free: 7.902 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.567e-05/0.02117, allocations: 71.2 kB / 0.8217 GB, free: 7.812 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.98e-05/0.0212, allocations: 14.08 kB / 0.8217 GB, free: 7.801 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.02134, allocations: 126.2 kB / 0.8218 GB, free: 7.676 MB / 0.7761 GB Notification: Performance of SimCode: time 4.71e-07/0.02134, allocations: 0 / 0.8218 GB, free: 7.676 MB / 0.7761 GB Notification: Performance of Templates: time 0.004358/0.0257, allocations: 3.358 MB / 0.8251 GB, free: 4.418 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.494642091915011]