Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.41/2.41, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001339/0.001339, allocations: 173.2 kB / 498.1 MB, free: 5.738 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.642/1.642, allocations: 223.2 MB / 0.7948 GB, free: 18.86 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.0009833/0.0009834, allocations: 103.9 kB / 0.9346 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003652, allocations: 10.94 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3053, allocations: 142.3 MB / 1.223 GB, free: 89.54 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1923/0.4977, allocations: 149.7 MB / 1.369 GB, free: 3.613 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.498, allocations: 75.94 kB / 1.369 GB, free: 3.539 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01418/0.5122, allocations: 4.533 MB / 1.374 GB, free: 15 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.544e-06/0.5122, allocations: 0 / 1.374 GB, free: 15 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.522e-05/0.5123, allocations: 4 kB / 1.374 GB, free: 15 MB / 0.8855 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.00101/0.5133, allocations: 488.9 kB / 1.374 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/0.5134, allocations: 12.03 kB / 1.374 GB, free: 14.44 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.5136, allocations: 23.81 kB / 1.374 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.5138, allocations: 179.7 kB / 1.374 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.525e-05/0.5139, allocations: 15.98 kB / 1.374 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.472e-05/0.514, allocations: 20 kB / 1.374 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.5142, allocations: 85.66 kB / 1.374 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.5142, allocations: 3.953 kB / 1.374 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.5142, allocations: 0 / 1.374 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.5143, allocations: 4 kB / 1.374 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001209/0.5144, allocations: 47.97 kB / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.5155, allocations: 0.4885 MB / 1.375 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.5157, allocations: 74.53 kB / 1.375 GB, free: 13.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.5158, allocations: 4 kB / 1.375 GB, free: 13.39 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.5161, allocations: 111.3 kB / 1.375 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=14): time 2.605e-06/0.5161, allocations: 0 / 1.375 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14): time 0.0004781/0.5166, allocations: 177.1 kB / 1.375 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.5166, allocations: 51.41 kB / 1.375 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.5168, allocations: 157.9 kB / 1.375 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.802e-05/0.5169, allocations: 29.7 kB / 1.376 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001311/0.517, allocations: 112.2 kB / 1.376 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.471e-05/0.5171, allocations: 31.61 kB / 1.376 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.5171, allocations: 8 kB / 1.376 GB, free: 12.69 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001569/0.5173, allocations: 322.8 kB / 1.376 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.5175, allocations: 99.88 kB / 1.376 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002512/0.5178, allocations: 143.4 kB / 1.376 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/0.518, allocations: 178.7 kB / 1.376 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.5181, allocations: 0 / 1.376 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007423/0.5188, allocations: 394.3 kB / 1.377 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/0.5189, allocations: 107 kB / 1.377 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.519, allocations: 0 / 1.377 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.69e-05/0.519, allocations: 4 kB / 1.377 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.463e-05/0.5191, allocations: 15.94 kB / 1.377 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.5191, allocations: 7.953 kB / 1.377 GB, free: 11.36 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.5196, allocations: 107.8 kB / 1.377 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/0.5197, allocations: 27.98 kB / 1.377 GB, free: 11.22 MB / 0.8855 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.5199, allocations: 137.8 kB / 1.377 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/0.5199, allocations: 11.81 kB / 1.377 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.797e-05/0.5199, allocations: 16.84 kB / 1.377 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.52, allocations: 0 / 1.377 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.52, allocations: 0 / 1.377 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.52, allocations: 11.94 kB / 1.377 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.5202, allocations: 213.5 kB / 1.377 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.5202, allocations: 4 kB / 1.377 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.716e-05/0.5203, allocations: 8 kB / 1.377 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.5203, allocations: 3.984 kB / 1.377 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.5203, allocations: 8 kB / 1.377 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.5203, allocations: 0 / 1.377 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5203, allocations: 0 / 1.377 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002461/0.5206, allocations: 160.9 kB / 1.378 GB, free: 10.57 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/0.5206, allocations: 88.92 kB / 1.378 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.5207, allocations: 0 / 1.378 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.4e-05/0.5207, allocations: 12 kB / 1.378 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.5208, allocations: 7.984 kB / 1.378 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.5208, allocations: 7.984 kB / 1.378 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 8.527e-05/0.5209, allocations: 116.8 kB / 1.378 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.1e-07/0.5209, allocations: 0 / 1.378 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003325/0.5212, allocations: 52 kB / 1.378 GB, free: 10.28 MB / 0.8855 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 (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.0002368/0.5215, allocations: 135.4 kB / 1.378 GB, free: 10.14 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006049/0.5221, allocations: 386 kB / 1.378 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5221, allocations: 0 / 1.378 GB, free: 9.723 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.542e-05/0.5222, allocations: 47.98 kB / 1.378 GB, free: 9.676 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.5225, allocations: 19.98 kB / 1.378 GB, free: 9.656 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005314/0.523, allocations: 268.5 kB / 1.379 GB, free: 9.367 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.5233, allocations: 0.7165 MB / 1.379 GB, free: 8.625 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.862e-05/0.5234, allocations: 12.64 kB / 1.379 GB, free: 8.613 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.548e-05/0.5234, allocations: 19.38 kB / 1.379 GB, free: 8.594 MB / 0.8855 GB Notification: Performance of SimCode: time 4.71e-07/0.5235, allocations: 0 / 1.379 GB, free: 8.594 MB / 0.8855 GB Notification: Performance of Templates: time 0.00596/0.5294, allocations: 2.521 MB / 1.382 GB, free: 6.098 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches