Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.0019/0.0019, allocations: 115.7 kB / 18.89 MB, free: 2.898 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.002526/0.002526, allocations: 200.2 kB / 22.17 MB, free: 5.207 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.55/1.55, allocations: 225.6 MB / 250.9 MB, free: 13.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.84/2.84, allocations: 476.7 MB / 0.7645 GB, free: 10.09 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 63.89 kB / 1.109 GB, free: 6.492 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.027/1.029, allocations: 168.7 MB / 1.274 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.003528/1.032, allocations: 0.8374 MB / 1.275 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003237/1.036, allocations: 1.289 MB / 1.276 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/1.036, allocations: 0 / 1.276 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 6.062e-05/1.036, allocations: 11.81 kB / 1.276 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001614/1.036, allocations: 31.78 kB / 1.276 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001775/1.038, allocations: 319.2 kB / 1.276 GB, free: 1.859 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006436/1.038, allocations: 303.4 kB / 1.277 GB, free: 1.562 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/1.039, allocations: 33.41 kB / 1.277 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/1.039, allocations: 111.8 kB / 1.277 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003212/1.039, allocations: 111.7 kB / 1.277 GB, free: 1.309 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 7.949e-05/1.039, allocations: 27.98 kB / 1.277 GB, free: 1.281 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/1.039, allocations: 43.98 kB / 1.277 GB, free: 1.238 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.986e-05/1.039, allocations: 19.92 kB / 1.277 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002197/1.04, allocations: 107.6 kB / 1.277 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000591/1.04, allocations: 265.8 kB / 1.277 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/1.04, allocations: 0 / 1.277 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.384e-06/1.04, allocations: 3.938 kB / 1.277 GB, free: 0.8516 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.126e-06/1.04, allocations: 0 / 1.277 GB, free: 0.8516 MB / 0.9669 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.001154/1.041, allocations: 0.5312 MB / 1.278 GB, free: 260 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/1.041, allocations: 12.03 kB / 1.278 GB, free: 248 kB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/1.042, allocations: 16.89 kB / 1.278 GB, free: 232 kB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/1.042, allocations: 192.7 kB / 1.278 GB, free: 0 / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.965e-05/1.042, allocations: 19.92 kB / 1.278 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.283e-05/1.042, allocations: 20 kB / 1.278 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/1.042, allocations: 84.23 kB / 1.278 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/1.042, allocations: 0 / 1.278 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/1.042, allocations: 8 kB / 1.278 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/1.042, allocations: 0 / 1.278 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/1.043, allocations: 43.97 kB / 1.278 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001253/1.044, allocations: 0.4887 MB / 1.279 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003893/1.044, allocations: 70.47 kB / 1.279 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/1.044, allocations: 28.97 kB / 1.279 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.905e-05/1.044, allocations: 0 / 1.279 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003225/1.045, allocations: 115.3 kB / 1.279 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 2.505e-06/1.045, allocations: 0 / 1.279 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0006895/1.045, allocations: 183.5 kB / 1.279 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/1.045, allocations: 51.41 kB / 1.279 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/1.046, allocations: 168.8 kB / 1.279 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.719e-05/1.046, allocations: 29.7 kB / 1.279 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/1.046, allocations: 112.1 kB / 1.28 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.376e-05/1.046, allocations: 31.8 kB / 1.28 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002575/1.046, allocations: 77.66 kB / 1.28 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002274/1.046, allocations: 322.8 kB / 1.28 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003953/1.047, allocations: 91.95 kB / 1.28 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004847/1.047, allocations: 147.7 kB / 1.28 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006237/1.048, allocations: 247 kB / 1.28 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/1.048, allocations: 8 kB / 1.28 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001347/1.049, allocations: 420.5 kB / 1.281 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001386/1.049, allocations: 93.09 kB / 1.281 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/1.049, allocations: 4 kB / 1.281 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.859e-05/1.049, allocations: 4 kB / 1.281 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/1.05, allocations: 15.92 kB / 1.281 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/1.05, allocations: 0 / 1.281 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008925/1.051, allocations: 91.98 kB / 1.281 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.024e-05/1.051, allocations: 19.98 kB / 1.281 GB, free: 12.83 MB / 0.9825 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.0002559/1.051, allocations: 142.2 kB / 1.281 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/1.051, allocations: 19.88 kB / 1.281 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.822e-05/1.051, allocations: 12.84 kB / 1.281 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/1.051, allocations: 3.938 kB / 1.281 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/1.051, allocations: 4 kB / 1.281 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/1.051, allocations: 0 / 1.281 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003743/1.051, allocations: 225.5 kB / 1.281 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/1.051, allocations: 3.938 kB / 1.281 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.314e-05/1.051, allocations: 8 kB / 1.281 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.706e-06/1.051, allocations: 0 / 1.281 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/1.051, allocations: 4 kB / 1.281 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/1.051, allocations: 0 / 1.281 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/1.051, allocations: 0 / 1.281 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004568/1.052, allocations: 173 kB / 1.282 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/1.052, allocations: 96.94 kB / 1.282 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/1.052, allocations: 0 / 1.282 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.48e-05/1.052, allocations: 4 kB / 1.282 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.498e-05/1.052, allocations: 11.98 kB / 1.282 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/1.052, allocations: 4 kB / 1.282 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001605/1.052, allocations: 117.2 kB / 1.282 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.7e-07/1.052, allocations: 0 / 1.282 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0005221/1.053, allocations: 51.94 kB / 1.282 GB, free: 11.87 MB / 0.9825 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.0002677/1.053, allocations: 111.2 kB / 1.282 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009321/1.054, allocations: 342 kB / 1.282 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.054, allocations: 0 / 1.282 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001647/1.054, allocations: 45.3 kB / 1.282 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/1.055, allocations: 36.28 kB / 1.282 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008196/1.056, allocations: 251.3 kB / 1.283 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/1.056, allocations: 0.7084 MB / 1.283 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.128e-05/1.056, allocations: 12.64 kB / 1.283 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.457e-05/1.056, allocations: 19.44 kB / 1.283 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of SimCode: time 5.81e-07/1.056, allocations: 0 / 1.283 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of Templates: time 0.012/1.068, allocations: 2.824 MB / 1.286 GB, free: 7.473 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_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: 9.33884380897507]