Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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.336/2.336, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001258/0.001258, allocations: 186.6 kB / 498.1 MB, free: 5.73 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.516/1.516, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.0009732/0.0009731, allocations: 100.3 kB / 0.9346 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003901/0.0003902, allocations: 11.28 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3358, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1874/0.5232, allocations: 149.6 MB / 1.369 GB, free: 12.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.5236, allocations: 75.95 kB / 1.369 GB, free: 12.33 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006634/0.5303, allocations: 2.24 MB / 1.371 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.314e-06/0.5303, allocations: 0 / 1.371 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.5303, allocations: 0 / 1.371 GB, free: 10.08 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006015/0.5309, allocations: 424.8 kB / 1.372 GB, free: 9.613 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.531, allocations: 8.031 kB / 1.372 GB, free: 9.605 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.616e-05/0.5311, allocations: 11.91 kB / 1.372 GB, free: 9.594 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.5312, allocations: 171 kB / 1.372 GB, free: 9.387 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.5312, allocations: 4 kB / 1.372 GB, free: 9.383 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.055e-05/0.5313, allocations: 7.938 kB / 1.372 GB, free: 9.375 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.5316, allocations: 97.56 kB / 1.372 GB, free: 9.273 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.5316, allocations: 4 kB / 1.372 GB, free: 9.27 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.5316, allocations: 0 / 1.372 GB, free: 9.27 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.5316, allocations: 0 / 1.372 GB, free: 9.27 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.5319, allocations: 95.86 kB / 1.372 GB, free: 9.176 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000494/0.5324, allocations: 332.6 kB / 1.372 GB, free: 8.801 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.5326, allocations: 74.47 kB / 1.372 GB, free: 8.719 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.5327, allocations: 0 / 1.372 GB, free: 8.719 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.533, allocations: 107.4 kB / 1.373 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=6): time 1.463e-06/0.533, allocations: 0 / 1.373 GB, free: 8.602 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6): time 0.0006012/0.5336, allocations: 189.5 kB / 1.373 GB, free: 8.41 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.5336, allocations: 63.3 kB / 1.373 GB, free: 8.336 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.486e-05/0.5337, allocations: 113.2 kB / 1.373 GB, free: 8.215 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.5338, allocations: 37.69 kB / 1.373 GB, free: 8.172 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.098e-05/0.5338, allocations: 88.14 kB / 1.373 GB, free: 8.082 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.973e-05/0.5339, allocations: 11.81 kB / 1.373 GB, free: 8.07 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.5339, allocations: 4 kB / 1.373 GB, free: 8.066 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.534, allocations: 318.8 kB / 1.373 GB, free: 7.746 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002036/0.5342, allocations: 71.95 kB / 1.373 GB, free: 7.676 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.5344, allocations: 90.59 kB / 1.373 GB, free: 7.578 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.5347, allocations: 101.7 kB / 1.374 GB, free: 7.473 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.5347, allocations: 0 / 1.374 GB, free: 7.473 MB / 0.8698 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005178/0.5352, allocations: 235.1 kB / 1.374 GB, free: 7.23 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.098e-05/0.5352, allocations: 41.77 kB / 1.374 GB, free: 7.184 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.5352, allocations: 0 / 1.374 GB, free: 7.184 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.5353, allocations: 0 / 1.374 GB, free: 7.184 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.5354, allocations: 27.91 kB / 1.374 GB, free: 7.156 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.5354, allocations: 4 kB / 1.374 GB, free: 7.152 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.5357, allocations: 59.84 kB / 1.374 GB, free: 7.094 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.5357, allocations: 4 kB / 1.374 GB, free: 7.09 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001043/0.5358, allocations: 117.8 kB / 1.374 GB, free: 6.965 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.204e-05/0.5358, allocations: 7.906 kB / 1.374 GB, free: 6.957 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.5359, allocations: 12.38 kB / 1.374 GB, free: 6.945 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.5359, allocations: 4 kB / 1.374 GB, free: 6.941 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5359, allocations: 0 / 1.374 GB, free: 6.941 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.5359, allocations: 0 / 1.374 GB, free: 6.941 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000147/0.5361, allocations: 185.6 kB / 1.374 GB, free: 6.711 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.5361, allocations: 96 / 1.374 GB, free: 6.711 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.5362, allocations: 23.92 kB / 1.374 GB, free: 6.688 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.5362, allocations: 0 / 1.374 GB, free: 6.688 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.5362, allocations: 7.938 kB / 1.374 GB, free: 6.68 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.5362, allocations: 4 kB / 1.374 GB, free: 6.676 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.5362, allocations: 0 / 1.374 GB, free: 6.676 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003692/0.5366, allocations: 181.2 kB / 1.374 GB, free: 6.48 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.5367, allocations: 81.02 kB / 1.374 GB, free: 6.383 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.5367, allocations: 4.062 kB / 1.374 GB, free: 6.379 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.888e-05/0.5368, allocations: 19.97 kB / 1.375 GB, free: 6.359 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.5368, allocations: 15.98 kB / 1.375 GB, free: 6.344 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.5368, allocations: 3.984 kB / 1.375 GB, free: 6.34 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.892e-05/0.5369, allocations: 95.27 kB / 1.375 GB, free: 6.246 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1e-07/0.5369, allocations: 0 / 1.375 GB, free: 6.246 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002132/0.5371, allocations: 28 kB / 1.375 GB, free: 6.219 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001953/0.5373, allocations: 111 kB / 1.375 GB, free: 6.102 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0004826/0.5378, allocations: 211.2 kB / 1.375 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.5378, allocations: 4 kB / 1.375 GB, free: 5.879 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.538, allocations: 60.08 kB / 1.375 GB, free: 5.82 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001772/0.5382, allocations: 19.89 kB / 1.375 GB, free: 5.801 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003674/0.5386, allocations: 178.6 kB / 1.375 GB, free: 5.598 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.5388, allocations: 0.6926 MB / 1.376 GB, free: 4.879 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.117e-05/0.5389, allocations: 8.172 kB / 1.376 GB, free: 4.867 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.839e-05/0.5389, allocations: 11.44 kB / 1.376 GB, free: 4.855 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/0.5389, allocations: 4 kB / 1.376 GB, free: 4.852 MB / 0.8698 GB Notification: Performance of Templates: time 0.003699/0.5426, allocations: 1.316 MB / 1.377 GB, free: 3.555 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches