Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001491/0.001491, allocations: 113.5 kB / 16.42 MB, free: 6.457 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.001616/0.001616, allocations: 185.5 kB / 17.35 MB, free: 5.734 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.41/1.41, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.551/2.551, allocations: 437.1 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 59.91 kB / 1.019 GB, free: 9.406 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.04/1.042, allocations: 151.6 MB / 1.167 GB, free: 3.836 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002352/1.044, allocations: 0.8325 MB / 1.168 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001886/1.046, allocations: 1.288 MB / 1.169 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/1.046, allocations: 4 kB / 1.169 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.966e-05/1.046, allocations: 11.86 kB / 1.169 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001479/1.046, allocations: 27.73 kB / 1.169 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009699/1.047, allocations: 321.1 kB / 1.17 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0004416/1.048, allocations: 307.5 kB / 1.17 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/1.048, allocations: 41.42 kB / 1.17 GB, free: 1.008 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/1.048, allocations: 115.7 kB / 1.17 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/1.048, allocations: 103.7 kB / 1.17 GB, free: 0.793 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 6.367e-05/1.048, allocations: 28 kB / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/1.049, allocations: 43.97 kB / 1.17 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.464e-05/1.049, allocations: 27.86 kB / 1.17 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001416/1.049, allocations: 107.6 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003719/1.049, allocations: 271.7 kB / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/1.049, allocations: 0 / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.974e-06/1.049, allocations: 0 / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.294e-06/1.049, allocations: 0 / 1.171 GB, free: 336 kB / 0.8887 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.0007895/1.05, allocations: 0.5273 MB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/1.05, allocations: 8.031 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.485e-05/1.05, allocations: 16.89 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001715/1.05, allocations: 193.8 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.933e-05/1.05, allocations: 20.12 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.602e-05/1.05, allocations: 20 kB / 1.172 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000183/1.051, allocations: 87.31 kB / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/1.051, allocations: 0 / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/1.051, allocations: 11.98 kB / 1.172 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/1.051, allocations: 0 / 1.172 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/1.051, allocations: 43.98 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007524/1.051, allocations: 496.4 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002446/1.052, allocations: 70.56 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.298e-05/1.052, allocations: 36.95 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/1.052, allocations: 3.984 kB / 1.172 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002393/1.052, allocations: 115.2 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 1.794e-06/1.052, allocations: 0 / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0003898/1.052, allocations: 175 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/1.053, allocations: 59.41 kB / 1.173 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/1.053, allocations: 164.3 kB / 1.173 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/1.053, allocations: 37.7 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.412e-05/1.053, allocations: 108 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.457e-05/1.053, allocations: 39.72 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/1.053, allocations: 69.67 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001394/1.053, allocations: 330.8 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/1.053, allocations: 95.94 kB / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/1.054, allocations: 138 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/1.054, allocations: 255 kB / 1.174 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/1.054, allocations: 0 / 1.174 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006683/1.055, allocations: 396.9 kB / 1.174 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.713e-05/1.055, allocations: 101 kB / 1.174 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/1.055, allocations: 4.188 kB / 1.174 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/1.055, allocations: 4 kB / 1.174 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.862e-05/1.055, allocations: 11.98 kB / 1.174 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/1.055, allocations: 7.938 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004849/1.055, allocations: 87.75 kB / 1.174 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.324e-05/1.055, allocations: 27.92 kB / 1.174 GB, free: 12.3 MB / 0.9044 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.0001367/1.056, allocations: 133.8 kB / 1.174 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/1.056, allocations: 11.89 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.574e-05/1.056, allocations: 12.84 kB / 1.175 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/1.056, allocations: 0 / 1.175 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/1.056, allocations: 0 / 1.175 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/1.056, allocations: 97 kB / 1.175 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/1.056, allocations: 4 kB / 1.175 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.295e-05/1.056, allocations: 4 kB / 1.175 GB, free: 12.01 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.252e-05/1.056, allocations: 15.92 kB / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002471/1.056, allocations: 208.9 kB / 1.175 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003906/1.056, allocations: 311.9 kB / 1.175 GB, free: 11.46 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.158e-05/1.057, allocations: 47.92 kB / 1.175 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.905e-05/1.057, allocations: 118.3 kB / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of Backend: time 3.7e-07/1.057, allocations: 0 / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008174/1.057, allocations: 436.5 kB / 1.176 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0007611/1.058, allocations: 0.672 MB / 1.176 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of Templates: time 0.007528/1.066, allocations: 2.924 MB / 1.179 GB, free: 7.227 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches