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.001412/0.001412, allocations: 106.1 kB / 16.41 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.001467/0.001468, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.354/1.354, allocations: 222.9 MB / 241 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.425/2.425, allocations: 437.1 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 59.91 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9409/0.9424, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002077/0.9445, allocations: 0.8398 MB / 1.168 GB, free: 3.004 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001704/0.9463, allocations: 1.292 MB / 1.169 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.153e-05/0.9464, allocations: 0 / 1.169 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.494e-05/0.9464, allocations: 7.875 kB / 1.169 GB, free: 1.688 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.9466, allocations: 23.78 kB / 1.169 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009464/0.9475, allocations: 321 kB / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000393/0.9479, allocations: 311.5 kB / 1.17 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.9481, allocations: 37.44 kB / 1.17 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.9483, allocations: 123.7 kB / 1.17 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.9485, allocations: 111.7 kB / 1.17 GB, free: 0.7812 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.709e-05/0.9486, allocations: 24 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.9487, allocations: 39.98 kB / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.397e-05/0.9487, allocations: 27.91 kB / 1.17 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.9488, allocations: 107.5 kB / 1.17 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003517/0.9492, allocations: 267.1 kB / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.9492, allocations: 0 / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of FrontEnd: time 1.744e-06/0.9492, allocations: 0 / 1.171 GB, free: 336 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.626e-06/0.9492, 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.0007501/0.95, allocations: 0.5253 MB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.95, allocations: 8.031 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.722e-05/0.9501, allocations: 16.84 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.9503, allocations: 184.7 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.9503, allocations: 16.12 kB / 1.171 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.099e-05/0.9504, allocations: 23.98 kB / 1.171 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.9506, allocations: 93.61 kB / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.9506, allocations: 0 / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.9506, allocations: 0 / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.9506, allocations: 4 kB / 1.172 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001141/0.9507, allocations: 51.91 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007209/0.9515, allocations: 492.1 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.9517, allocations: 74.61 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.597e-05/0.9518, allocations: 24.92 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.9518, allocations: 7.984 kB / 1.172 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.952, allocations: 115.2 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 2.185e-06/0.952, allocations: 0 / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.000382/0.9524, allocations: 170.8 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.9525, allocations: 63.39 kB / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.9526, allocations: 164.3 kB / 1.173 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.9527, allocations: 33.7 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 9.198e-05/0.9528, allocations: 116 kB / 1.173 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.9528, allocations: 19.72 kB / 1.173 GB, free: 13.94 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.953, allocations: 77.66 kB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.9531, allocations: 322.8 kB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002089/0.9533, allocations: 91.95 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.9535, allocations: 152.5 kB / 1.173 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.9539, allocations: 257.5 kB / 1.174 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.9539, allocations: 4 kB / 1.174 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000639/0.9545, allocations: 402.2 kB / 1.174 GB, free: 12.56 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.448e-05/0.9546, allocations: 103.6 kB / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.9546, allocations: 0 / 1.174 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.9546, allocations: 4.188 kB / 1.174 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.9e-05/0.9547, allocations: 15.98 kB / 1.174 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.9547, allocations: 4 kB / 1.174 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004595/0.9552, allocations: 83.66 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-05/0.9552, allocations: 23.97 kB / 1.174 GB, free: 12.32 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.000124/0.9554, allocations: 141.7 kB / 1.174 GB, free: 12.17 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.9554, allocations: 11.84 kB / 1.174 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.664e-05/0.9555, allocations: 20.83 kB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.9555, allocations: 3.984 kB / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.9555, allocations: 0 / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.9555, allocations: 0 / 1.174 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.9557, allocations: 217.5 kB / 1.175 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.9557, allocations: 3.938 kB / 1.175 GB, free: 11.87 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.542e-05/0.9557, allocations: 19.86 kB / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.9558, allocations: 4 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.9558, allocations: 8 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.9558, allocations: 0 / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.9558, allocations: 0 / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.956, allocations: 161.8 kB / 1.175 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.742e-05/0.9561, allocations: 92.86 kB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.9561, allocations: 3.984 kB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.48e-05/0.9561, allocations: 8 kB / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.741e-05/0.9562, allocations: 11.98 kB / 1.175 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.9562, allocations: 8 kB / 1.175 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.624e-05/0.9563, allocations: 114.8 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9563, allocations: 0 / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002888/0.9566, allocations: 48 kB / 1.175 GB, free: 11.36 MB / 0.9044 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.000162/0.9567, allocations: 115.2 kB / 1.175 GB, free: 11.24 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005187/0.9573, allocations: 379.5 kB / 1.176 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9573, allocations: 0 / 1.176 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.601e-05/0.9574, allocations: 59.92 kB / 1.176 GB, free: 10.78 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.9577, allocations: 26.55 kB / 1.176 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005439/0.9582, allocations: 269.2 kB / 1.176 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.9585, allocations: 0.7163 MB / 1.177 GB, free: 9.715 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.472e-05/0.9586, allocations: 15.44 kB / 1.177 GB, free: 9.703 MB / 0.9044 GB Notification: Performance of SimCode: time 2.11e-07/0.9586, allocations: 0 / 1.177 GB, free: 9.703 MB / 0.9044 GB Notification: Performance of Templates: time 0.004392/0.963, allocations: 2.293 MB / 1.179 GB, free: 7.43 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