Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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=5000,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_9_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_9_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.001209/0.001209, allocations: 112.7 kB / 16.42 MB, free: 6.512 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.001269/0.001269, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.421/1.421, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.358/2.358, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 63.91 kB / 0.9516 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.002/1.004, allocations: 140.3 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001962/1.006, allocations: 0.8351 MB / 1.089 GB, free: 4.98 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001591/1.007, allocations: 1.282 MB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.608e-05/1.007, allocations: 1.062 kB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.423e-05/1.007, allocations: 17.88 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.05e-05/1.008, allocations: 26.02 kB / 1.091 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008362/1.008, allocations: 326.6 kB / 1.091 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003736/1.009, allocations: 309.7 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/1.009, allocations: 40.02 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/1.009, allocations: 113.8 kB / 1.091 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001954/1.009, allocations: 110.8 kB / 1.092 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.97e-05/1.009, allocations: 25.91 kB / 1.092 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/1.009, allocations: 39.55 kB / 1.092 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.21e-05/1.009, allocations: 23.59 kB / 1.092 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001335/1.01, allocations: 103.6 kB / 1.092 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003958/1.01, allocations: 268.5 kB / 1.092 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/1.01, allocations: 0 / 1.092 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.353e-06/1.01, allocations: 0.5938 kB / 1.092 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.033e-06/1.01, allocations: 4 kB / 1.092 GB, free: 3.438 MB / 0.8575 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.0006619/1.011, allocations: 0.5198 MB / 1.093 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/1.011, allocations: 9.578 kB / 1.093 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.192e-05/1.011, allocations: 22.23 kB / 1.093 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001011/1.011, allocations: 185.6 kB / 1.093 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/1.011, allocations: 17.73 kB / 1.093 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/1.011, allocations: 16.52 kB / 1.093 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/1.011, allocations: 91.14 kB / 1.093 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.939e-06/1.011, allocations: 4 kB / 1.093 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/1.011, allocations: 6.562 kB / 1.093 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/1.011, allocations: 1.062 kB / 1.093 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/1.011, allocations: 47.92 kB / 1.093 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007077/1.012, allocations: 496.5 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/1.012, allocations: 73 kB / 1.093 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.782e-05/1.012, allocations: 32.62 kB / 1.094 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/1.012, allocations: 1.5 kB / 1.094 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002103/1.013, allocations: 112.2 kB / 1.094 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.472e-06/1.013, allocations: 0 / 1.094 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0003675/1.013, allocations: 172 kB / 1.094 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/1.013, allocations: 54.67 kB / 1.094 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/1.013, allocations: 176.9 kB / 1.094 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/1.013, allocations: 36.53 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.195e-05/1.013, allocations: 112.5 kB / 1.094 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/1.013, allocations: 30.72 kB / 1.094 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/1.014, allocations: 71.22 kB / 1.094 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.766e-05/1.014, allocations: 327.2 kB / 1.095 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/1.014, allocations: 91.08 kB / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/1.014, allocations: 146.3 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/1.014, allocations: 259.9 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/1.014, allocations: 0.6875 kB / 1.095 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006885/1.015, allocations: 398.1 kB / 1.095 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.485e-05/1.015, allocations: 102.1 kB / 1.096 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/1.015, allocations: 2.438 kB / 1.096 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/1.015, allocations: 2.031 kB / 1.096 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.774e-05/1.015, allocations: 18.7 kB / 1.096 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/1.015, allocations: 3.297 kB / 1.096 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005136/1.016, allocations: 88.5 kB / 1.096 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.342e-05/1.016, allocations: 21.98 kB / 1.096 GB, free: 0.6836 MB / 0.8575 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.0001215/1.016, allocations: 142 kB / 1.096 GB, free: 0.5508 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.686e-05/1.016, allocations: 17.69 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.806e-05/1.016, allocations: 14.03 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/1.016, allocations: 0.7969 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/1.016, allocations: 0 / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-05/1.016, allocations: 89.66 kB / 1.096 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/1.016, allocations: 7.062 kB / 1.096 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.181e-05/1.016, allocations: 0.6875 kB / 1.096 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.752e-05/1.016, allocations: 17.44 kB / 1.096 GB, free: 428 kB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002713/1.017, allocations: 205.8 kB / 1.096 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002719/1.017, allocations: 317.4 kB / 1.096 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 8.89e-05/1.017, allocations: 46.23 kB / 1.096 GB, free: 12 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001171/1.017, allocations: 118.1 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of Backend: time 6.11e-07/1.017, allocations: 0 / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008899/1.018, allocations: 435.1 kB / 1.097 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of SimCode: time 0.0008682/1.019, allocations: 0.6679 MB / 1.098 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of Templates: time 0.008734/1.028, allocations: 2.921 MB / 1.1 GB, free: 14.71 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches