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.007263/0.007263, allocations: 100.5 kB / 15.73 MB, free: 6.496 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.001445/0.001445, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.533/1.533, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.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.871/2.871, allocations: 437 MB / 0.7105 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.91 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4308/0.4321, allocations: 151.6 MB / 1.167 GB, free: 6.797 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001976/0.4341, allocations: 0.8333 MB / 1.167 GB, free: 5.957 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001757/0.4359, allocations: 1.288 MB / 1.169 GB, free: 4.652 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.942e-05/0.436, allocations: 0 / 1.169 GB, free: 4.652 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 5.024e-05/0.4361, allocations: 7.875 kB / 1.169 GB, free: 4.645 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.4362, allocations: 23.78 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009397/0.4372, allocations: 318.6 kB / 1.169 GB, free: 4.316 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004034/0.4376, allocations: 315.5 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.4377, allocations: 37.42 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000135/0.4379, allocations: 119.7 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.4381, allocations: 115.6 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 7.414e-05/0.4382, allocations: 28 kB / 1.17 GB, free: 3.707 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001084/0.4383, allocations: 43.92 kB / 1.17 GB, free: 3.664 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.855e-05/0.4383, allocations: 23.92 kB / 1.17 GB, free: 3.641 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001471/0.4385, allocations: 99.61 kB / 1.17 GB, free: 3.543 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003642/0.4388, allocations: 263.2 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.4389, allocations: 0 / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.795e-06/0.4389, allocations: 0 / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.4389, allocations: 0 / 1.17 GB, free: 3.285 MB / 0.92 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.0007012/0.4396, allocations: 0.5311 MB / 1.171 GB, free: 2.688 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.4396, allocations: 12.03 kB / 1.171 GB, free: 2.676 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.026e-05/0.4397, allocations: 20.89 kB / 1.171 GB, free: 2.656 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.4399, allocations: 184.7 kB / 1.171 GB, free: 2.438 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.051e-05/0.4399, allocations: 20.12 kB / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.44, allocations: 23.98 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.4401, allocations: 85.66 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/0.4402, allocations: 0 / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.4402, allocations: 0 / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.4402, allocations: 4 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.4403, allocations: 54.48 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007038/0.441, allocations: 492.5 kB / 1.171 GB, free: 1.719 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002349/0.4413, allocations: 82.59 kB / 1.171 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.579e-05/0.4413, allocations: 24.86 kB / 1.172 GB, free: 1.602 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/0.4414, allocations: 3.984 kB / 1.172 GB, free: 1.598 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001799/0.4415, allocations: 123.2 kB / 1.172 GB, free: 1.465 MB / 0.92 GB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.4415, allocations: 0 / 1.172 GB, free: 1.465 MB / 0.92 GB Notification: Performance of matching and sorting (n=14): time 0.000365/0.4419, allocations: 169.1 kB / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.442, allocations: 59.39 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.4421, allocations: 160 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.4422, allocations: 37.7 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 9.28e-05/0.4423, allocations: 112 kB / 1.172 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.078e-05/0.4423, allocations: 35.73 kB / 1.172 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.4425, allocations: 81.66 kB / 1.172 GB, free: 0.7812 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4426, allocations: 318.8 kB / 1.173 GB, free: 472 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001988/0.4428, allocations: 95.95 kB / 1.173 GB, free: 376 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002361/0.443, allocations: 141.9 kB / 1.173 GB, free: 212 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.4434, allocations: 255 kB / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4434, allocations: 0 / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000634/0.444, allocations: 407.8 kB / 1.173 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 7.765e-05/0.4441, allocations: 101.1 kB / 1.174 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.4441, allocations: 4 kB / 1.174 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.4442, allocations: 0 / 1.174 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.917e-05/0.4442, allocations: 15.98 kB / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.4442, allocations: 0 / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004739/0.4447, allocations: 87.94 kB / 1.174 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.409e-05/0.4448, allocations: 23.98 kB / 1.174 GB, free: 15.25 MB / 0.9356 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.0001295/0.4449, allocations: 133.8 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.141e-05/0.4449, allocations: 15.89 kB / 1.174 GB, free: 15.09 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.519e-05/0.445, allocations: 16.83 kB / 1.174 GB, free: 15.08 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.445, allocations: 4 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.445, allocations: 4 kB / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.445, allocations: 0 / 1.174 GB, free: 15.07 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.4452, allocations: 221.5 kB / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.4452, allocations: 0 / 1.174 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.502e-05/0.4452, allocations: 15.92 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4453, allocations: 0 / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.4453, allocations: 4 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.4453, allocations: 11.88 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.4453, allocations: 0 / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002188/0.4455, allocations: 157 kB / 1.174 GB, free: 14.6 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.901e-05/0.4456, allocations: 92.95 kB / 1.174 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.4456, allocations: 3.984 kB / 1.174 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.15e-05/0.4456, allocations: 4 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.498e-05/0.4457, allocations: 7.984 kB / 1.174 GB, free: 14.48 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.4457, allocations: 16 kB / 1.174 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.481e-05/0.4458, allocations: 112.8 kB / 1.174 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4458, allocations: 0 / 1.174 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002872/0.4461, allocations: 48 kB / 1.174 GB, free: 14.3 MB / 0.9356 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.0002586/0.4464, allocations: 117.4 kB / 1.175 GB, free: 14.18 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006137/0.447, allocations: 386.1 kB / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.447, allocations: 0 / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.4471, allocations: 55.92 kB / 1.175 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.4475, allocations: 32.28 kB / 1.175 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006022/0.4481, allocations: 243.2 kB / 1.175 GB, free: 13.42 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005605/0.4486, allocations: 0.7123 MB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.781e-05/0.4487, allocations: 16.59 kB / 1.176 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.541e-05/0.4488, allocations: 19.44 kB / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of SimCode: time 6.41e-07/0.4488, allocations: 0 / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of Templates: time 0.007457/0.4562, allocations: 2.802 MB / 1.179 GB, free: 9.883 MB / 0.9356 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/jenkins/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