Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 114.5 kB / 17.08 MB, free: 6.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 194.2 kB / 20.03 MB, free: 3.082 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 222.9 MB / 245.7 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.958/2.958, allocations: 489.3 MB / 0.7687 GB, free: 3.773 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_latest_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_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 75.89 kB / 1.103 GB, free: 0.7461 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1/1.002, allocations: 163.8 MB / 1.263 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001983/1.004, allocations: 0.8277 MB / 1.263 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001649/1.006, allocations: 1.288 MB / 1.265 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.932e-05/1.006, allocations: 2.25 kB / 1.265 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.297e-05/1.006, allocations: 13.59 kB / 1.265 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.637e-05/1.006, allocations: 25.23 kB / 1.265 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008342/1.007, allocations: 322.8 kB / 1.265 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003915/1.007, allocations: 309.8 kB / 1.265 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/1.007, allocations: 43.25 kB / 1.265 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/1.008, allocations: 114.7 kB / 1.265 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002022/1.008, allocations: 113.9 kB / 1.266 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.886e-05/1.008, allocations: 25.5 kB / 1.266 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/1.008, allocations: 37.11 kB / 1.266 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.473e-05/1.008, allocations: 29.64 kB / 1.266 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001333/1.008, allocations: 96.47 kB / 1.266 GB, free: 6.023 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000389/1.009, allocations: 271.1 kB / 1.266 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/1.009, allocations: 0 / 1.266 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.074e-06/1.009, allocations: 0.75 kB / 1.266 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.381e-05/1.009, allocations: 0 / 1.266 GB, free: 5.93 MB / 0.9981 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.0006277/1.009, allocations: 0.526 MB / 1.267 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/1.009, allocations: 12.91 kB / 1.267 GB, free: 5.418 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.603e-05/1.009, allocations: 23.08 kB / 1.267 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/1.009, allocations: 188.9 kB / 1.267 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.804e-05/1.009, allocations: 17.95 kB / 1.267 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/1.01, allocations: 20.86 kB / 1.267 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/1.01, allocations: 83.69 kB / 1.267 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/1.01, allocations: 0 / 1.267 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/1.01, allocations: 5.984 kB / 1.267 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/1.01, allocations: 6.109 kB / 1.267 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001176/1.01, allocations: 47.83 kB / 1.267 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007/1.011, allocations: 491.8 kB / 1.267 GB, free: 4.758 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000237/1.011, allocations: 73.75 kB / 1.267 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.09e-05/1.011, allocations: 33.88 kB / 1.267 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/1.011, allocations: 5.438 kB / 1.267 GB, free: 4.691 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/1.011, allocations: 116.6 kB / 1.268 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=14): time 1.283e-06/1.011, allocations: 0 / 1.268 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.0003989/1.012, allocations: 176.3 kB / 1.268 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/1.012, allocations: 54.61 kB / 1.268 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/1.012, allocations: 164.2 kB / 1.268 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.713e-05/1.012, allocations: 36.52 kB / 1.268 GB, free: 4.32 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.843e-05/1.012, allocations: 112.2 kB / 1.268 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/1.012, allocations: 31.48 kB / 1.268 GB, free: 4.195 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/1.012, allocations: 71.12 kB / 1.268 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.442e-05/1.012, allocations: 326.2 kB / 1.269 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/1.012, allocations: 96.53 kB / 1.269 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/1.013, allocations: 149 kB / 1.269 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/1.013, allocations: 258.9 kB / 1.269 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/1.013, allocations: 4.656 kB / 1.269 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006963/1.014, allocations: 400.4 kB / 1.269 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.715e-05/1.014, allocations: 98.02 kB / 1.269 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.872e-06/1.014, allocations: 1.812 kB / 1.269 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/1.014, allocations: 2.125 kB / 1.269 GB, free: 3.188 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.423e-05/1.014, allocations: 23.02 kB / 1.27 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/1.014, allocations: 2.938 kB / 1.27 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004991/1.014, allocations: 80.77 kB / 1.27 GB, free: 3.168 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.94e-05/1.014, allocations: 23.09 kB / 1.27 GB, free: 3.164 MB / 0.9981 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.0001013/1.014, allocations: 136.2 kB / 1.27 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/1.015, allocations: 18.12 kB / 1.27 GB, free: 3.023 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.417e-05/1.015, allocations: 21.52 kB / 1.27 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/1.015, allocations: 1.156 kB / 1.27 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/1.015, allocations: 0.7188 kB / 1.27 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/1.015, allocations: 1.406 kB / 1.27 GB, free: 3.004 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001649/1.015, allocations: 213.9 kB / 1.27 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.015, allocations: 0.6562 kB / 1.27 GB, free: 2.793 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.596e-05/1.015, allocations: 13.41 kB / 1.27 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/1.015, allocations: 0.9375 kB / 1.27 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/1.015, allocations: 6.859 kB / 1.27 GB, free: 2.785 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/1.015, allocations: 1.734 kB / 1.27 GB, free: 2.785 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.015, allocations: 4 kB / 1.27 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/1.015, allocations: 172 kB / 1.27 GB, free: 2.672 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.989e-05/1.015, allocations: 89.94 kB / 1.27 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/1.015, allocations: 2.125 kB / 1.27 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.181e-05/1.015, allocations: 5.641 kB / 1.27 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/1.015, allocations: 9.531 kB / 1.27 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/1.015, allocations: 9.266 kB / 1.27 GB, free: 2.562 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.621e-05/1.015, allocations: 119.2 kB / 1.27 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.015, allocations: 0 / 1.27 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002889/1.016, allocations: 57.17 kB / 1.27 GB, free: 2.461 MB / 0.9981 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.0001471/1.016, allocations: 115.1 kB / 1.271 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004908/1.016, allocations: 385.7 kB / 1.271 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/1.016, allocations: 0 / 1.271 GB, free: 2.094 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001019/1.016, allocations: 58.34 kB / 1.271 GB, free: 2.074 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/1.017, allocations: 27.19 kB / 1.271 GB, free: 2.066 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004463/1.017, allocations: 274 kB / 1.271 GB, free: 1.852 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/1.017, allocations: 0.7106 MB / 1.272 GB, free: 1.152 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.563e-05/1.017, allocations: 20.02 kB / 1.272 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/1.017, allocations: 0 / 1.272 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of Templates: time 0.004901/1.022, allocations: 2.276 MB / 1.274 GB, free: 0.9102 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.506261290051043]