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.452/2.452, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001071/0.001071, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.542/1.542, allocations: 221.5 MB / 0.7824 GB, free: 0.9336 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009496/0.0009496, allocations: 103 kB / 0.9219 GB, free: 2.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.242e-05/2.244e-05, allocations: 12 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.261, allocations: 142.4 MB / 1.206 GB, free: 43.93 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8213/1.082, allocations: 148.9 MB / 1.351 GB, free: 18.4 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/1.083, allocations: 68.77 kB / 1.351 GB, free: 18.4 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00758/1.09, allocations: 2.218 MB / 1.354 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.263e-06/1.09, allocations: 4 kB / 1.354 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.3e-06/1.09, allocations: 0 / 1.354 GB, free: 33.99 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004552/1.091, allocations: 412.7 kB / 1.354 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/1.091, allocations: 11.56 kB / 1.354 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.536e-05/1.091, allocations: 14.75 kB / 1.354 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.809e-05/1.091, allocations: 180.2 kB / 1.354 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/1.091, allocations: 3.844 kB / 1.354 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.453e-05/1.091, allocations: 8.406 kB / 1.354 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.066e-05/1.091, allocations: 24.28 kB / 1.354 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.198e-05/1.091, allocations: 48.94 kB / 1.354 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/1.091, allocations: 3.844 kB / 1.354 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/1.091, allocations: 0.75 kB / 1.354 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/1.091, allocations: 0 / 1.354 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000378/1.092, allocations: 311.4 kB / 1.355 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.759e-05/1.092, allocations: 29.11 kB / 1.355 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.356e-05/1.092, allocations: 19.67 kB / 1.355 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.452e-05/1.092, allocations: 4.531 kB / 1.355 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001091/1.092, allocations: 68.56 kB / 1.355 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/1.092, allocations: 4 kB / 1.355 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001668/1.092, allocations: 66.06 kB / 1.355 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.837e-05/1.092, allocations: 55.61 kB / 1.355 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.22e-05/1.092, allocations: 114.5 kB / 1.355 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/1.092, allocations: 25.7 kB / 1.355 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.513e-05/1.092, allocations: 92.11 kB / 1.355 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/1.092, allocations: 13 kB / 1.355 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/1.092, allocations: 0 / 1.355 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001011/1.092, allocations: 328.5 kB / 1.355 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.208e-05/1.092, allocations: 35.72 kB / 1.355 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.577e-05/1.092, allocations: 53.06 kB / 1.355 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000175/1.093, allocations: 38.44 kB / 1.355 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/1.093, allocations: 0 / 1.355 GB, free: 32.35 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002969/1.093, allocations: 131.9 kB / 1.356 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.802e-05/1.093, allocations: 42.92 kB / 1.356 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/1.093, allocations: 0.6562 kB / 1.356 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/1.093, allocations: 3.969 kB / 1.356 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/1.093, allocations: 24.16 kB / 1.356 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/1.093, allocations: 0.7031 kB / 1.356 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002478/1.093, allocations: 59.27 kB / 1.356 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/1.093, allocations: 8.953 kB / 1.356 GB, free: 32.27 MB / 0.8386 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 () * 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 7.913e-05/1.094, allocations: 109.5 kB / 1.356 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.229e-05/1.094, allocations: 11.69 kB / 1.356 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/1.094, allocations: 14.09 kB / 1.356 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/1.094, allocations: 7.719 kB / 1.356 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/1.094, allocations: 0 / 1.356 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/1.094, allocations: 0.6094 kB / 1.356 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.239e-05/1.094, allocations: 160.4 kB / 1.356 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/1.094, allocations: 5.391 kB / 1.356 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/1.094, allocations: 19.89 kB / 1.356 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/1.094, allocations: 0 / 1.356 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/1.094, allocations: 4.656 kB / 1.356 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/1.094, allocations: 0 / 1.356 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.094, allocations: 0.8281 kB / 1.356 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001154/1.094, allocations: 105.7 kB / 1.356 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.996e-05/1.094, allocations: 81.95 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/1.094, allocations: 0.75 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.463e-05/1.094, allocations: 22.03 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/1.094, allocations: 7.156 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/1.094, allocations: 3.781 kB / 1.356 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.449e-05/1.094, allocations: 92.92 kB / 1.356 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.094, allocations: 3.938 kB / 1.356 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002111/1.094, allocations: 28.27 kB / 1.356 GB, free: 31.72 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete 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.0001427/1.095, allocations: 112.6 kB / 1.356 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001854/1.095, allocations: 137.1 kB / 1.357 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/1.095, allocations: 0 / 1.357 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.429e-05/1.095, allocations: 22.31 kB / 1.357 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000171/1.095, allocations: 18.45 kB / 1.357 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000216/1.095, allocations: 96.86 kB / 1.357 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002405/1.096, allocations: 0.6927 MB / 1.357 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.657e-05/1.096, allocations: 8.703 kB / 1.357 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.596e-05/1.096, allocations: 8.141 kB / 1.357 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.096, allocations: 0 / 1.357 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of Templates: time 0.003339/1.099, allocations: 1.241 MB / 1.359 GB, free: 30.66 MB / 0.8386 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