Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.007919/0.007919, allocations: 101.7 kB / 15.73 MB, free: 6.062 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.001196/0.001196, allocations: 194.5 kB / 16.67 MB, free: 5.969 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.712/2.712, allocations: 469.8 MB / 0.7425 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 71.84 kB / 1.065 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9377/0.9392, allocations: 159.1 MB / 1.221 GB, free: 2.125 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002094/0.9413, allocations: 0.8226 MB / 1.221 GB, free: 1.305 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00172/0.943, allocations: 1.283 MB / 1.223 GB, free: 8 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.795e-05/0.9431, allocations: 4 kB / 1.223 GB, free: 4 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 6.563e-05/0.9431, allocations: 11.92 kB / 1.223 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.965e-05/0.9432, allocations: 31.78 kB / 1.223 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008081/0.9441, allocations: 318.1 kB / 1.223 GB, free: 15.66 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003152/0.9444, allocations: 299.3 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.9445, allocations: 33.38 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.9446, allocations: 119.8 kB / 1.223 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.9448, allocations: 107.7 kB / 1.224 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.711e-05/0.9448, allocations: 27.94 kB / 1.224 GB, free: 15.08 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.92e-05/0.9449, allocations: 39.98 kB / 1.224 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.198e-05/0.945, allocations: 31.91 kB / 1.224 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.9451, allocations: 103.6 kB / 1.224 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.9454, allocations: 263.7 kB / 1.224 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.9454, allocations: 0 / 1.224 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.342e-06/0.9454, allocations: 0 / 1.224 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.125e-06/0.9454, allocations: 0 / 1.224 GB, free: 14.66 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.0006781/0.9461, allocations: 0.5273 MB / 1.225 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.9461, allocations: 12.62 kB / 1.225 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.575e-05/0.9462, allocations: 20.88 kB / 1.225 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.9463, allocations: 196.6 kB / 1.225 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.9464, allocations: 16.12 kB / 1.225 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.675e-05/0.9464, allocations: 20 kB / 1.225 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001781/0.9466, allocations: 85.64 kB / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.9466, allocations: 0 / 1.225 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.9466, allocations: 4 kB / 1.225 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.537e-06/0.9466, allocations: 4 kB / 1.225 GB, free: 13.67 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001006/0.9467, allocations: 50.38 kB / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006853/0.9474, allocations: 496.4 kB / 1.225 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002429/0.9476, allocations: 74.48 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.903e-05/0.9477, allocations: 20.98 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.303e-05/0.9477, allocations: 0 / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.9479, allocations: 123.2 kB / 1.226 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 1.643e-06/0.9479, allocations: 0 / 1.226 GB, free: 12.85 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.0003784/0.9483, allocations: 173.5 kB / 1.226 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.9484, allocations: 55.41 kB / 1.226 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.9485, allocations: 169.2 kB / 1.226 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.9485, allocations: 33.64 kB / 1.226 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.369e-05/0.9486, allocations: 112.1 kB / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.9486, allocations: 32.66 kB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.9488, allocations: 73.67 kB / 1.226 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001154/0.9489, allocations: 322.8 kB / 1.227 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.9491, allocations: 95.95 kB / 1.227 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.9493, allocations: 145.9 kB / 1.227 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.9496, allocations: 253 kB / 1.227 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.9496, allocations: 0 / 1.227 GB, free: 11.3 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006469/0.9503, allocations: 414.3 kB / 1.227 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.507e-05/0.9504, allocations: 99.44 kB / 1.227 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.9504, allocations: 4 kB / 1.227 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.9504, allocations: 0 / 1.227 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.822e-05/0.9504, allocations: 19.94 kB / 1.228 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.9504, allocations: 7.922 kB / 1.228 GB, free: 10.73 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004583/0.9509, allocations: 83.98 kB / 1.228 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.474e-05/0.9509, allocations: 23.98 kB / 1.228 GB, free: 10.62 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.0001317/0.9511, allocations: 134.3 kB / 1.228 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.9511, allocations: 15.89 kB / 1.228 GB, free: 10.47 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/0.9511, allocations: 16.83 kB / 1.228 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.9512, allocations: 11.94 kB / 1.228 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.9512, allocations: 0 / 1.228 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.9512, allocations: 0 / 1.228 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.9514, allocations: 217.5 kB / 1.228 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.9514, allocations: 0 / 1.228 GB, free: 10.17 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.039e-05/0.9514, allocations: 15.92 kB / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.9514, allocations: 0 / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.29e-05/0.9514, allocations: 0 / 1.228 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.9515, allocations: 4 kB / 1.228 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.9515, allocations: 0 / 1.228 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/0.9517, allocations: 169 kB / 1.228 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.227e-05/0.9518, allocations: 92.95 kB / 1.228 GB, free: 9.859 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.9518, allocations: 3.984 kB / 1.228 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.669e-05/0.9518, allocations: 8 kB / 1.228 GB, free: 9.848 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.793e-05/0.9519, allocations: 11.98 kB / 1.228 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.9519, allocations: 4 kB / 1.228 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001122/0.952, allocations: 117.7 kB / 1.228 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6e-08/0.952, allocations: 0 / 1.228 GB, free: 9.719 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003291/0.9523, allocations: 55.94 kB / 1.228 GB, free: 9.664 MB / 0.9512 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.0002416/0.9526, allocations: 111.2 kB / 1.229 GB, free: 9.547 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005866/0.9532, allocations: 342.9 kB / 1.229 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.9532, allocations: 0 / 1.229 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.794e-05/0.9533, allocations: 43.92 kB / 1.229 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.9536, allocations: 28.36 kB / 1.229 GB, free: 9.105 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006422/0.9542, allocations: 248.9 kB / 1.229 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003944/0.9546, allocations: 0.7122 MB / 1.23 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 6.84e-05/0.9547, allocations: 12.59 kB / 1.23 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.663e-05/0.9547, allocations: 23.42 kB / 1.23 GB, free: 8.066 MB / 0.9512 GB Notification: Performance of SimCode: time 4.31e-07/0.9547, allocations: 0 / 1.23 GB, free: 8.066 MB / 0.9512 GB Notification: Performance of Templates: time 0.007549/0.9623, allocations: 2.805 MB / 1.233 GB, free: 5.297 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches