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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.292/2.292, allocations: 390.3 MB / 402.8 MB, free: 6.715 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 184.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 221.3 MB / 0.7915 GB, free: 5.395 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009187/0.0009188, allocations: 107.5 kB / 0.9317 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.79e-05/3.792e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3251, allocations: 143 MB / 1.219 GB, free: 13.48 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.106/1.431, allocations: 150.5 MB / 1.366 GB, free: 3.512 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/1.431, allocations: 63.91 kB / 1.366 GB, free: 3.48 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01422/1.446, allocations: 4.511 MB / 1.37 GB, free: 15.56 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.435e-06/1.446, allocations: 0 / 1.37 GB, free: 15.56 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.238e-05/1.446, allocations: 4 kB / 1.37 GB, free: 15.56 MB / 0.8386 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.0006986/1.447, allocations: 484.8 kB / 1.371 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.971e-05/1.447, allocations: 15.86 kB / 1.371 GB, free: 15.02 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001359/1.447, allocations: 19.91 kB / 1.371 GB, free: 15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/1.447, allocations: 180.4 kB / 1.371 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/1.447, allocations: 14.69 kB / 1.371 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.916e-05/1.447, allocations: 18.56 kB / 1.371 GB, free: 14.76 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/1.447, allocations: 91.67 kB / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/1.447, allocations: 3.953 kB / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/1.447, allocations: 3.938 kB / 1.371 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/1.447, allocations: 4 kB / 1.371 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001137/1.447, allocations: 43.25 kB / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009374/1.448, allocations: 499.1 kB / 1.372 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/1.449, allocations: 72.94 kB / 1.372 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.849e-05/1.449, allocations: 23.92 kB / 1.372 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/1.449, allocations: 0 / 1.372 GB, free: 14.09 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002374/1.449, allocations: 125.7 kB / 1.372 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=14): time 2.274e-06/1.449, allocations: 0 / 1.372 GB, free: 13.97 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14): time 0.0003757/1.449, allocations: 139.1 kB / 1.372 GB, free: 13.85 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.108e-05/1.45, allocations: 55.41 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/1.45, allocations: 153.4 kB / 1.372 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.024e-05/1.45, allocations: 37.52 kB / 1.372 GB, free: 13.61 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/1.45, allocations: 110 kB / 1.372 GB, free: 13.51 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.91e-05/1.45, allocations: 27.14 kB / 1.372 GB, free: 13.49 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.684e-05/1.45, allocations: 12 kB / 1.372 GB, free: 13.48 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001622/1.45, allocations: 321.6 kB / 1.373 GB, free: 13.16 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/1.45, allocations: 95.48 kB / 1.373 GB, free: 13.1 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/1.451, allocations: 143.2 kB / 1.373 GB, free: 12.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/1.451, allocations: 174.5 kB / 1.373 GB, free: 12.81 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/1.451, allocations: 4 kB / 1.373 GB, free: 12.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006838/1.452, allocations: 392 kB / 1.373 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.186e-05/1.452, allocations: 92.47 kB / 1.373 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/1.452, allocations: 8.188 kB / 1.373 GB, free: 12.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.68e-05/1.452, allocations: 4 kB / 1.373 GB, free: 12.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.45e-05/1.452, allocations: 19.69 kB / 1.373 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/1.452, allocations: 0 / 1.373 GB, free: 12.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00051/1.452, allocations: 111.8 kB / 1.374 GB, free: 12.22 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.215e-05/1.452, allocations: 23.22 kB / 1.374 GB, free: 12.2 MB / 0.8386 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,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001314/1.453, allocations: 128.1 kB / 1.374 GB, free: 12.08 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/1.453, allocations: 15.8 kB / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.187e-05/1.453, allocations: 12.31 kB / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/1.453, allocations: 0 / 1.374 GB, free: 12.06 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/1.453, allocations: 3.953 kB / 1.374 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/1.453, allocations: 4 kB / 1.374 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/1.453, allocations: 220.2 kB / 1.374 GB, free: 11.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/1.453, allocations: 0 / 1.374 GB, free: 11.81 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.752e-05/1.453, allocations: 12 kB / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/1.453, allocations: 0 / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/1.453, allocations: 7.438 kB / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/1.453, allocations: 3.938 kB / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.453, allocations: 0 / 1.374 GB, free: 11.79 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002384/1.453, allocations: 159.5 kB / 1.374 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.505e-05/1.453, allocations: 85 kB / 1.374 GB, free: 11.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.547e-05/1.453, allocations: 7.562 kB / 1.374 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.256e-05/1.453, allocations: 4 kB / 1.374 GB, free: 11.53 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.033e-05/1.454, allocations: 11.48 kB / 1.374 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/1.454, allocations: 4 kB / 1.374 GB, free: 11.52 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.915e-05/1.454, allocations: 121.2 kB / 1.374 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.454, allocations: 0 / 1.374 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003217/1.454, allocations: 58.94 kB / 1.374 GB, free: 11.36 MB / 0.8386 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000259/1.454, allocations: 118.9 kB / 1.374 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005498/1.455, allocations: 378.3 kB / 1.375 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.455, allocations: 0 / 1.375 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.812e-05/1.455, allocations: 48.5 kB / 1.375 GB, free: 10.86 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/1.455, allocations: 26.23 kB / 1.375 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000427/1.456, allocations: 158.9 kB / 1.375 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/1.456, allocations: 0.7168 MB / 1.376 GB, free: 9.941 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.731e-05/1.456, allocations: 8.781 kB / 1.376 GB, free: 9.934 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.668e-05/1.456, allocations: 18.62 kB / 1.376 GB, free: 9.918 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/1.456, allocations: 0 / 1.376 GB, free: 9.918 MB / 0.8386 GB Notification: Performance of Templates: time 0.006862/1.463, allocations: 2.54 MB / 1.378 GB, free: 7.414 MB / 0.8386 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 -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","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches