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.00163/0.001629, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001999/0.001999, allocations: 189.3 kB / 16.25 MB, free: 6.633 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.549/1.549, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.005/3.005, allocations: 461.9 MB / 0.7343 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 69.64 kB / 0.8986 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4525/0.454, allocations: 157.4 MB / 1.052 GB, free: 8.746 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002547/0.4566, allocations: 0.8874 MB / 1.053 GB, free: 7.852 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001754/0.4584, allocations: 1.295 MB / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.27e-05/0.4584, allocations: 0 / 1.054 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.381e-05/0.4585, allocations: 7.938 kB / 1.054 GB, free: 6.535 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.4586, allocations: 23.8 kB / 1.054 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008444/0.4595, allocations: 296.7 kB / 1.055 GB, free: 6.23 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003519/0.4598, allocations: 307.5 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.46, allocations: 49.31 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002122/0.4602, allocations: 111.8 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.4604, allocations: 91.7 kB / 1.055 GB, free: 5.684 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.713e-05/0.4604, allocations: 27.94 kB / 1.055 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.4606, allocations: 43.98 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.543e-05/0.4606, allocations: 27.84 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.4607, allocations: 103.7 kB / 1.055 GB, free: 5.484 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000305/0.461, allocations: 255.5 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.461, allocations: 0 / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.064e-06/0.461, allocations: 3.938 kB / 1.056 GB, free: 5.23 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.354e-06/0.4611, allocations: 4 kB / 1.056 GB, free: 5.227 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.0008002/0.4619, allocations: 0.5197 MB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/0.4619, allocations: 8.625 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.671e-05/0.462, allocations: 20.75 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.4622, allocations: 188.7 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.374e-05/0.4622, allocations: 8.375 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.347e-05/0.4623, allocations: 23.94 kB / 1.056 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.4625, allocations: 95.12 kB / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4625, allocations: 0 / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.4625, allocations: 4 kB / 1.057 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.4626, allocations: 4 kB / 1.057 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/0.4627, allocations: 43.98 kB / 1.057 GB, free: 4.211 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007622/0.4634, allocations: 0.4923 MB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.4637, allocations: 66.56 kB / 1.057 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.84e-05/0.4638, allocations: 32.97 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.4638, allocations: 0 / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/0.464, allocations: 131.1 kB / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.4641, allocations: 0 / 1.057 GB, free: 3.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003725/0.4644, allocations: 158.4 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.4645, allocations: 63.39 kB / 1.058 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.4647, allocations: 164.8 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.549e-05/0.4647, allocations: 37.7 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.142e-05/0.4648, allocations: 104 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.889e-05/0.4649, allocations: 31.55 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.465, allocations: 73.67 kB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.4652, allocations: 326.8 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.4654, allocations: 95.94 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/0.4657, allocations: 149.9 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.466, allocations: 252.4 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.466, allocations: 0 / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006591/0.4666, allocations: 400 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.766e-05/0.4668, allocations: 109 kB / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4668, allocations: 0 / 1.059 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.4668, allocations: 8.188 kB / 1.059 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.151e-05/0.4669, allocations: 8 kB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.4669, allocations: 11.88 kB / 1.059 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005129/0.4674, allocations: 87.73 kB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.51e-05/0.4675, allocations: 15.98 kB / 1.059 GB, free: 1.215 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.0001476/0.4676, allocations: 133.8 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.486e-05/0.4676, allocations: 19.73 kB / 1.059 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.4677, allocations: 16.84 kB / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.4677, allocations: 0 / 1.059 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.4677, allocations: 8 kB / 1.059 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4677, allocations: 0 / 1.059 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000189/0.4679, allocations: 213.6 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.4679, allocations: 0 / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.602e-05/0.468, allocations: 15.94 kB / 1.06 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.252e-06/0.468, allocations: 11.94 kB / 1.06 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.468, allocations: 0 / 1.06 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.468, allocations: 0 / 1.06 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.468, allocations: 0 / 1.06 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002229/0.4682, allocations: 161.9 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.325e-05/0.4683, allocations: 96.92 kB / 1.06 GB, free: 468 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.4683, allocations: 8 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.219e-05/0.4684, allocations: 0 / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.942e-05/0.4684, allocations: 19.92 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.4684, allocations: 4 kB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.445e-05/0.4685, allocations: 117.4 kB / 1.06 GB, free: 320 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.4685, allocations: 0 / 1.06 GB, free: 320 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002725/0.4688, allocations: 55.84 kB / 1.06 GB, free: 264 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.0001796/0.469, allocations: 112.5 kB / 1.06 GB, free: 144 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0005602/0.4696, allocations: 394.2 kB / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4696, allocations: 0 / 1.061 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.171e-05/0.4697, allocations: 47.97 kB / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.47, allocations: 27.92 kB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004924/0.4705, allocations: 278.4 kB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.4708, allocations: 0.7084 MB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.597e-05/0.4708, allocations: 12.64 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.4709, allocations: 15.44 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.4709, allocations: 0 / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of Templates: time 0.008912/0.4798, allocations: 2.784 MB / 1.064 GB, free: 11.84 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