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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001141/0.001141, allocations: 102.5 kB / 16.35 MB, free: 5.879 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.00125/0.00125, allocations: 194.2 kB / 17.3 MB, free: 5.52 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.577/2.577, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 66.28 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.347/0.3483, allocations: 153 MB / 1.027 GB, free: 2.047 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.002452/0.3508, allocations: 0.8479 MB / 1.028 GB, free: 1.199 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001656/0.3525, allocations: 1.28 MB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.952e-05/0.3525, allocations: 3.828 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.563e-05/0.3526, allocations: 7.875 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.083e-05/0.3527, allocations: 31.72 kB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007991/0.3535, allocations: 317.5 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003269/0.3538, allocations: 311.4 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.354, allocations: 41.42 kB / 1.029 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.3541, allocations: 115.8 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.3543, allocations: 111.7 kB / 1.03 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.3543, allocations: 28 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.3545, allocations: 39.98 kB / 1.03 GB, free: 14.92 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.295e-05/0.3545, allocations: 27.84 kB / 1.03 GB, free: 14.89 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.3546, allocations: 103.7 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.3549, allocations: 263.1 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3549, allocations: 0 / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.294e-06/0.3549, allocations: 4 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.3549, allocations: 0 / 1.03 GB, free: 14.53 MB / 0.8106 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.0006453/0.3556, allocations: 0.5236 MB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.3556, allocations: 8.031 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.146e-05/0.3557, allocations: 20.75 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3558, allocations: 186.2 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.3559, allocations: 16.36 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.892e-05/0.3559, allocations: 31.81 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001599/0.3561, allocations: 85.66 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.273e-06/0.3561, allocations: 0 / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.3561, allocations: 4 kB / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.3561, allocations: 0 / 1.031 GB, free: 13.55 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.92e-05/0.3563, allocations: 51.97 kB / 1.031 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.3569, allocations: 496.1 kB / 1.032 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.3572, allocations: 70.5 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.137e-05/0.3572, allocations: 36.91 kB / 1.032 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.3573, allocations: 3.984 kB / 1.032 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.3575, allocations: 127.2 kB / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.3575, allocations: 0 / 1.032 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003591/0.3579, allocations: 165.5 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.641e-05/0.3579, allocations: 63.34 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.3581, allocations: 160.1 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.609e-05/0.3581, allocations: 33.7 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.933e-05/0.3582, allocations: 108 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.014e-05/0.3583, allocations: 27.56 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.3584, allocations: 77.66 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3586, allocations: 326.8 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.3588, allocations: 99.94 kB / 1.033 GB, free: 11.62 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.359, allocations: 139.6 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.3593, allocations: 257.5 kB / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.3593, allocations: 0 / 1.033 GB, free: 11.17 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006031/0.3599, allocations: 394.4 kB / 1.034 GB, free: 10.76 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 7.415e-05/0.36, allocations: 105 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.36, allocations: 4.188 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.3601, allocations: 7.938 kB / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.758e-05/0.3601, allocations: 15.92 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3601, allocations: 4 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/0.3606, allocations: 83.75 kB / 1.034 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.277e-05/0.3606, allocations: 19.98 kB / 1.034 GB, free: 10.51 MB / 0.8106 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.0001205/0.3608, allocations: 130.6 kB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.168e-05/0.3608, allocations: 19.73 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/0.3608, allocations: 16.84 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3608, allocations: 0 / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3608, allocations: 7.938 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.3608, allocations: 0 / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.361, allocations: 213.6 kB / 1.034 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.361, allocations: 4 kB / 1.034 GB, free: 10.06 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.435e-05/0.3611, allocations: 12 kB / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3611, allocations: 7.938 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.3611, allocations: 3.938 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3611, allocations: 0 / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3611, allocations: 3.984 kB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.3613, allocations: 160 kB / 1.034 GB, free: 9.863 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.306e-05/0.3614, allocations: 92.94 kB / 1.034 GB, free: 9.754 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.3614, allocations: 11.94 kB / 1.034 GB, free: 9.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.098e-05/0.3615, allocations: 4 kB / 1.034 GB, free: 9.738 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.205e-05/0.3615, allocations: 11.98 kB / 1.034 GB, free: 9.727 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.3615, allocations: 8 kB / 1.034 GB, free: 9.719 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.396e-05/0.3616, allocations: 118.3 kB / 1.035 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.3616, allocations: 0 / 1.035 GB, free: 9.605 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002677/0.3619, allocations: 55.84 kB / 1.035 GB, free: 9.551 MB / 0.8106 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.0001571/0.3621, allocations: 107.2 kB / 1.035 GB, free: 9.438 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004994/0.3626, allocations: 390 kB / 1.035 GB, free: 9.02 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3626, allocations: 0 / 1.035 GB, free: 9.02 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.665e-05/0.3627, allocations: 47.98 kB / 1.035 GB, free: 8.973 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.3629, allocations: 25.34 kB / 1.035 GB, free: 8.949 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004405/0.3634, allocations: 248 kB / 1.035 GB, free: 8.684 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.3637, allocations: 0.7083 MB / 1.036 GB, free: 7.949 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.787e-05/0.3637, allocations: 12.64 kB / 1.036 GB, free: 7.938 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.3638, allocations: 15.44 kB / 1.036 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of SimCode: time 2.01e-07/0.3638, allocations: 0 / 1.036 GB, free: 7.922 MB / 0.8106 GB Notification: Performance of Templates: time 0.005615/0.3694, allocations: 2.794 MB / 1.039 GB, free: 5.16 MB / 0.8106 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 -s gbode -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