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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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=5000,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=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007396/0.007396, allocations: 100.8 kB / 15.87 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001604, allocations: 195.8 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.829/2.829, allocations: 461.9 MB / 0.7348 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 63.41 kB / 0.899 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3534, allocations: 157.4 MB / 1.053 GB, free: 8.348 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002536/0.356, allocations: 0.8835 MB / 1.054 GB, free: 7.457 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001938/0.3579, allocations: 1.334 MB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.746e-05/0.3581, allocations: 4 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.454e-05/0.3581, allocations: 7.922 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.3583, allocations: 11.86 kB / 1.055 GB, free: 6.086 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008736/0.3591, allocations: 294.8 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.3595, allocations: 259.5 kB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.3596, allocations: 45.33 kB / 1.056 GB, free: 5.508 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002059/0.3598, allocations: 103.8 kB / 1.056 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.36, allocations: 91.58 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.858e-05/0.3601, allocations: 16 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.3602, allocations: 27.98 kB / 1.056 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.304e-05/0.3603, allocations: 27.91 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.3604, allocations: 91.67 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002573/0.3607, allocations: 179.8 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3607, allocations: 0 / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.313e-06/0.3607, allocations: 0 / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.024e-05/0.3607, allocations: 0 / 1.056 GB, free: 4.98 MB / 0.8106 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.0008489/0.3616, allocations: 0.5159 MB / 1.057 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.3616, allocations: 11.97 kB / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.3617, allocations: 32.67 kB / 1.057 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.3619, allocations: 184.7 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.847e-05/0.3619, allocations: 16.38 kB / 1.057 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.574e-05/0.362, allocations: 23.94 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001986/0.3622, allocations: 91.19 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.3622, allocations: 0 / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.3622, allocations: 0 / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3622, allocations: 8 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.3624, allocations: 47.92 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007915/0.3632, allocations: 496.1 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.3635, allocations: 74.61 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.837e-05/0.3635, allocations: 24.92 kB / 1.058 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.3635, allocations: 0 / 1.058 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002905/0.3638, allocations: 131.1 kB / 1.058 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.813e-06/0.3639, allocations: 0 / 1.058 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0004011/0.3643, allocations: 165.1 kB / 1.058 GB, free: 3 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.078e-05/0.3643, allocations: 55.41 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.3645, allocations: 168.1 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.3645, allocations: 33.7 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.786e-05/0.3646, allocations: 108 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.3647, allocations: 35.55 kB / 1.058 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.3648, allocations: 73.67 kB / 1.058 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001349/0.365, allocations: 322.8 kB / 1.059 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002166/0.3652, allocations: 95.94 kB / 1.059 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.3654, allocations: 151.8 kB / 1.059 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003199/0.3658, allocations: 251 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.3658, allocations: 4 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006667/0.3665, allocations: 392.2 kB / 1.059 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.477e-05/0.3666, allocations: 109 kB / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3666, allocations: 4 kB / 1.06 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.3666, allocations: 3.984 kB / 1.06 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.481e-05/0.3667, allocations: 20.12 kB / 1.06 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.3667, allocations: 0 / 1.06 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005061/0.3672, allocations: 87.73 kB / 1.06 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.3673, allocations: 19.98 kB / 1.06 GB, free: 0.9609 MB / 0.8106 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.0001504/0.3674, allocations: 133.8 kB / 1.06 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.274e-05/0.3675, allocations: 23.73 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.11e-05/0.3675, allocations: 16.84 kB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3675, allocations: 0 / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3675, allocations: 0 / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.3675, allocations: 0 / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002106/0.3677, allocations: 221.6 kB / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3678, allocations: 0 / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.831e-05/0.3678, allocations: 11.94 kB / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.3678, allocations: 3.938 kB / 1.06 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.3678, allocations: 12 kB / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3678, allocations: 0 / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.3679, allocations: 3.984 kB / 1.06 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.3681, allocations: 156.9 kB / 1.06 GB, free: 320 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.3682, allocations: 92.94 kB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.3682, allocations: 0 / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.254e-05/0.3682, allocations: 4 kB / 1.06 GB, free: 204 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.307e-05/0.3683, allocations: 11.98 kB / 1.06 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.3683, allocations: 12 kB / 1.06 GB, free: 180 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.911e-05/0.3684, allocations: 112.8 kB / 1.06 GB, free: 68 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3684, allocations: 3.938 kB / 1.06 GB, free: 64 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00028/0.3687, allocations: 55.84 kB / 1.06 GB, free: 8 kB / 0.8106 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.0002097/0.3689, allocations: 113.6 kB / 1.061 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005165/0.3694, allocations: 382.3 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3694, allocations: 4.125 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.463e-05/0.3695, allocations: 59.91 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.3698, allocations: 20.31 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005146/0.3703, allocations: 295 kB / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.3707, allocations: 0.7086 MB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.496e-05/0.3707, allocations: 23.44 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.3707, allocations: 0 / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of Templates: time 0.004731/0.3754, allocations: 2.261 MB / 1.064 GB, free: 12.08 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches