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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001157/0.001157, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00119/0.00119, allocations: 191.8 kB / 16.13 MB, free: 6.699 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.823/2.823, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001277, allocations: 67.41 kB / 0.8984 GB, free: 37.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3624, allocations: 157.4 MB / 1.052 GB, free: 8.836 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002274/0.3648, allocations: 0.8911 MB / 1.053 GB, free: 7.938 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001696/0.3665, allocations: 1.338 MB / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.104e-05/0.3666, allocations: 0 / 1.054 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.115e-05/0.3666, allocations: 7.922 kB / 1.054 GB, free: 6.578 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.65e-05/0.3667, allocations: 15.81 kB / 1.054 GB, free: 6.562 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007562/0.3675, allocations: 300.8 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.3677, allocations: 255.5 kB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.3679, allocations: 45.33 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.368, allocations: 99.8 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001173/0.3681, allocations: 79.7 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.814e-05/0.3682, allocations: 16 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.165e-05/0.3683, allocations: 31.98 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.977e-05/0.3683, allocations: 27.84 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.3684, allocations: 91.67 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002811/0.3687, allocations: 247.5 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3687, allocations: 4 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3688, allocations: 0 / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.528e-06/0.3688, allocations: 0 / 1.055 GB, free: 5.398 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.000681/0.3694, allocations: 0.5196 MB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3695, allocations: 12.03 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.351e-05/0.3696, allocations: 28.73 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001287/0.3697, allocations: 178.8 kB / 1.056 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.3698, allocations: 16.38 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.3698, allocations: 23.94 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.37, allocations: 94.67 kB / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.37, allocations: 0 / 1.056 GB, free: 4.426 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.37, allocations: 7.875 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.37, allocations: 4 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.3702, allocations: 47.97 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007143/0.3709, allocations: 0.4884 MB / 1.057 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.3711, allocations: 70.61 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.04e-05/0.3712, allocations: 28.92 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.3712, allocations: 4 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.3715, allocations: 123.1 kB / 1.057 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.3715, allocations: 4 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.000373/0.3718, allocations: 163.2 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.219e-05/0.3719, allocations: 59.39 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.3721, allocations: 163.5 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.201e-05/0.3721, allocations: 33.7 kB / 1.057 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.747e-05/0.3722, allocations: 112 kB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.3722, allocations: 27.56 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.3724, allocations: 73.67 kB / 1.058 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3725, allocations: 330.8 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.3727, allocations: 95.89 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.373, allocations: 147 kB / 1.058 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.3733, allocations: 257.2 kB / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3733, allocations: 0 / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006483/0.374, allocations: 398.5 kB / 1.059 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.884e-05/0.3741, allocations: 109.1 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3741, allocations: 0 / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.3741, allocations: 4 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.058e-05/0.3742, allocations: 8 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.3742, allocations: 7.984 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005238/0.3747, allocations: 91.73 kB / 1.059 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.3748, allocations: 19.92 kB / 1.059 GB, free: 1.371 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.0001392/0.3749, allocations: 130.5 kB / 1.059 GB, free: 1.234 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.375, allocations: 19.73 kB / 1.059 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.885e-05/0.375, allocations: 16.84 kB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.375, allocations: 0 / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.375, allocations: 0 / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.375, allocations: 0 / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.3752, allocations: 217.6 kB / 1.059 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3752, allocations: 3.938 kB / 1.059 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.724e-05/0.3753, allocations: 15.94 kB / 1.059 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3753, allocations: 3.938 kB / 1.059 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.3753, allocations: 8 kB / 1.059 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3753, allocations: 3.984 kB / 1.059 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3753, allocations: 0 / 1.059 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.3756, allocations: 160.9 kB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-05/0.3756, allocations: 88.95 kB / 1.06 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.3757, allocations: 4 kB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.607e-05/0.3757, allocations: 8 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.3757, allocations: 11.92 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.3758, allocations: 8 kB / 1.06 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.716e-05/0.3758, allocations: 114.3 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3758, allocations: 0 / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002773/0.3761, allocations: 59.83 kB / 1.06 GB, free: 432 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.0001868/0.3763, allocations: 115.2 kB / 1.06 GB, free: 308 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005465/0.3769, allocations: 382.1 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3769, allocations: 0 / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.758e-05/0.377, allocations: 60.66 kB / 1.06 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.3773, allocations: 21.69 kB / 1.06 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004774/0.3778, allocations: 269.7 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.3781, allocations: 0.7087 MB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.529e-05/0.3781, allocations: 12.64 kB / 1.061 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.036e-05/0.3782, allocations: 15.44 kB / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3782, allocations: 0 / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of Templates: time 0.005732/0.3839, allocations: 2.671 MB / 1.064 GB, free: 12.12 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/jenkins/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