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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001487/0.001487, allocations: 115.2 kB / 16.42 MB, free: 6.508 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.001506/0.001506, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.523/1.523, allocations: 222.9 MB / 241.1 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.764/2.764, allocations: 472.7 MB / 0.746 GB, free: 420 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 63.89 kB / 1.07 GB, free: 9.523 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.019/1.02, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002804/1.023, allocations: 0.8152 MB / 1.227 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002041/1.025, allocations: 1.284 MB / 1.228 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/1.025, allocations: 4 kB / 1.228 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 5.336e-05/1.025, allocations: 15.8 kB / 1.228 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001156/1.026, allocations: 23.8 kB / 1.228 GB, free: 11.33 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000973/1.026, allocations: 320.7 kB / 1.229 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004435/1.027, allocations: 311.5 kB / 1.229 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/1.027, allocations: 57.31 kB / 1.229 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002051/1.027, allocations: 115.7 kB / 1.229 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/1.028, allocations: 107.7 kB / 1.229 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 7.324e-05/1.028, allocations: 31.94 kB / 1.229 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/1.028, allocations: 39.98 kB / 1.229 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.753e-05/1.028, allocations: 23.86 kB / 1.229 GB, free: 10.35 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001443/1.028, allocations: 107.7 kB / 1.23 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004017/1.028, allocations: 263.7 kB / 1.23 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/1.028, allocations: 0 / 1.23 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.533e-06/1.028, allocations: 4 kB / 1.23 GB, free: 9.988 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.476e-06/1.028, allocations: 0 / 1.23 GB, free: 9.988 MB / 0.9512 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.0008122/1.029, allocations: 0.5234 MB / 1.23 GB, free: 9.398 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/1.029, allocations: 8.031 kB / 1.23 GB, free: 9.391 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/1.029, allocations: 20.83 kB / 1.23 GB, free: 9.371 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/1.03, allocations: 192.7 kB / 1.23 GB, free: 9.145 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/1.03, allocations: 16.12 kB / 1.231 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.431e-05/1.03, allocations: 20 kB / 1.231 GB, free: 9.109 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/1.03, allocations: 89.64 kB / 1.231 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/1.03, allocations: 0 / 1.231 GB, free: 9.016 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/1.03, allocations: 8 kB / 1.231 GB, free: 9.008 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/1.03, allocations: 0 / 1.231 GB, free: 9.008 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001047/1.03, allocations: 46.5 kB / 1.231 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007452/1.031, allocations: 0.4926 MB / 1.231 GB, free: 8.422 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/1.031, allocations: 70.62 kB / 1.231 GB, free: 8.344 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.842e-05/1.031, allocations: 28.91 kB / 1.231 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/1.031, allocations: 7.938 kB / 1.231 GB, free: 8.305 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/1.031, allocations: 119 kB / 1.231 GB, free: 8.18 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 1.734e-06/1.031, allocations: 0 / 1.231 GB, free: 8.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.0003919/1.032, allocations: 169.6 kB / 1.232 GB, free: 8.008 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/1.032, allocations: 59.41 kB / 1.232 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/1.032, allocations: 164.4 kB / 1.232 GB, free: 7.77 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.816e-05/1.032, allocations: 37.69 kB / 1.232 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.281e-05/1.032, allocations: 108 kB / 1.232 GB, free: 7.617 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.732e-05/1.032, allocations: 39.72 kB / 1.232 GB, free: 7.578 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/1.032, allocations: 69.67 kB / 1.232 GB, free: 7.504 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001206/1.032, allocations: 326.8 kB / 1.232 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/1.033, allocations: 91.94 kB / 1.232 GB, free: 7.086 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002437/1.033, allocations: 153.8 kB / 1.233 GB, free: 6.914 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/1.033, allocations: 252.9 kB / 1.233 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/1.033, allocations: 0 / 1.233 GB, free: 6.629 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006422/1.034, allocations: 398.4 kB / 1.233 GB, free: 6.215 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.677e-05/1.034, allocations: 106.6 kB / 1.233 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/1.034, allocations: 4 kB / 1.233 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.21e-05/1.034, allocations: 8.188 kB / 1.233 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.807e-05/1.034, allocations: 8 kB / 1.233 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/1.034, allocations: 11.88 kB / 1.233 GB, free: 6.062 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004477/1.035, allocations: 83.8 kB / 1.233 GB, free: 5.98 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.496e-05/1.035, allocations: 19.98 kB / 1.233 GB, free: 5.961 MB / 0.9512 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.0001315/1.035, allocations: 146.3 kB / 1.234 GB, free: 5.809 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.353e-05/1.035, allocations: 11.89 kB / 1.234 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/1.035, allocations: 12.84 kB / 1.234 GB, free: 5.781 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/1.035, allocations: 3.984 kB / 1.234 GB, free: 5.777 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/1.035, allocations: 0 / 1.234 GB, free: 5.777 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.191e-05/1.035, allocations: 89.02 kB / 1.234 GB, free: 5.672 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.093e-05/1.035, allocations: 4 kB / 1.234 GB, free: 5.668 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.435e-05/1.035, allocations: 4 kB / 1.234 GB, free: 5.664 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.227e-05/1.035, allocations: 15.98 kB / 1.234 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000235/1.035, allocations: 216.8 kB / 1.234 GB, free: 5.43 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002658/1.036, allocations: 306.6 kB / 1.234 GB, free: 5.113 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.563e-05/1.036, allocations: 51.34 kB / 1.234 GB, free: 5.066 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.258e-05/1.036, allocations: 114.5 kB / 1.234 GB, free: 4.957 MB / 0.9512 GB Notification: Performance of Backend: time 4.61e-07/1.036, allocations: 0 / 1.234 GB, free: 4.957 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0007998/1.037, allocations: 440.4 kB / 1.235 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0007034/1.037, allocations: 0.6794 MB / 1.235 GB, free: 3.758 MB / 0.9512 GB Notification: Performance of Templates: time 0.00617/1.043, allocations: 2.903 MB / 1.238 GB, free: 0.8789 MB / 0.9512 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