Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax.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.Continuous.Validation.MultiMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.1..y|con.2..y|con.3..y|con.4..y|con.5..y|maxVal.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.1..y|con.2..y|con.3..y|con.4..y|con.5..y|maxVal.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.567/2.567, allocations: 393.5 MB / 408.5 MB, free: 11.09 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.00162/0.00162, allocations: 195.8 kB / 0.4902 GB, free: 2.207 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.595/1.595, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.001132/0.001132, allocations: 108 kB / 0.9396 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.000374, allocations: 13.84 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3677, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2054/0.5732, allocations: 149.2 MB / 1.375 GB, free: 4.25 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/0.5736, allocations: 71.95 kB / 1.375 GB, free: 4.18 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.001931/0.5755, allocations: 0.685 MB / 1.376 GB, free: 3.492 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.315e-06/0.5756, allocations: 0 / 1.376 GB, free: 3.492 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.477e-05/0.5756, allocations: 7.938 kB / 1.376 GB, free: 3.484 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003674/0.576, allocations: 339.2 kB / 1.376 GB, free: 3.105 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.576, allocations: 12.56 kB / 1.376 GB, free: 3.094 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.839e-05/0.5761, allocations: 7.906 kB / 1.376 GB, free: 3.086 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.5763, allocations: 183 kB / 1.376 GB, free: 2.867 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.5764, allocations: 4 kB / 1.376 GB, free: 2.863 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.377e-05/0.5764, allocations: 11.98 kB / 1.376 GB, free: 2.852 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.5766, allocations: 69.66 kB / 1.376 GB, free: 2.777 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.5766, allocations: 0 / 1.376 GB, free: 2.777 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.5766, allocations: 4 kB / 1.376 GB, free: 2.773 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.5766, allocations: 4 kB / 1.376 GB, free: 2.77 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.934e-05/0.5767, allocations: 39.91 kB / 1.376 GB, free: 2.73 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005762/0.5773, allocations: 491.9 kB / 1.377 GB, free: 2.199 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.5774, allocations: 181 kB / 1.377 GB, free: 2.012 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.5774, allocations: 79.28 kB / 1.377 GB, free: 1.934 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.98e-05/0.5775, allocations: 109.8 kB / 1.377 GB, free: 1.816 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=0): time 1.302e-06/0.5775, allocations: 0 / 1.377 GB, free: 1.816 MB / 0.8698 GB Notification: Performance of matching and sorting (n=0): time 9.084e-05/0.5776, allocations: 33.61 kB / 1.377 GB, free: 1.777 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.5777, allocations: 130.6 kB / 1.377 GB, free: 1.637 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001737/0.5779, allocations: 159 kB / 1.378 GB, free: 1.473 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.5779, allocations: 25.7 kB / 1.378 GB, free: 1.441 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.037e-05/0.578, allocations: 100.1 kB / 1.378 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.467e-06/0.578, allocations: 0 / 1.378 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-06/0.578, allocations: 0 / 1.378 GB, free: 1.34 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.5781, allocations: 316.4 kB / 1.378 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.691e-05/0.5782, allocations: 8 kB / 1.378 GB, free: 1.016 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.359e-05/0.5782, allocations: 7.984 kB / 1.378 GB, free: 1.008 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.157e-05/0.5782, allocations: 8 kB / 1.378 GB, free: 1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.5782, allocations: 0 / 1.378 GB, free: 1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001355/0.5784, allocations: 57.64 kB / 1.378 GB, free: 0.9375 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.5784, allocations: 11.95 kB / 1.378 GB, free: 0.9258 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.5784, allocations: 0 / 1.378 GB, free: 0.9258 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.5784, allocations: 0 / 1.378 GB, free: 0.9258 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.674e-05/0.5785, allocations: 0 / 1.378 GB, free: 0.9258 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.5785, allocations: 7.938 kB / 1.378 GB, free: 0.918 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.777e-05/0.5785, allocations: 15.84 kB / 1.378 GB, free: 0.9023 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.5786, allocations: 0 / 1.378 GB, free: 0.9023 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0001166/0.5787, allocations: 194 kB / 1.378 GB, free: 0.7031 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.35e-05/0.5788, allocations: 109 kB / 1.378 GB, free: 0.5898 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.239e-05/0.5789, allocations: 124.6 kB / 1.378 GB, free: 476 kB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.098e-05/0.5789, allocations: 184.1 kB / 1.379 GB, free: 284 kB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.517e-05/0.579, allocations: 180.3 kB / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.961e-05/0.5791, allocations: 180.3 kB / 1.379 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.5794, allocations: 433.1 kB / 1.379 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.632e-05/0.5794, allocations: 101 kB / 1.379 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-05/0.5794, allocations: 104.9 kB / 1.38 GB, free: 15.21 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-05/0.5795, allocations: 180.3 kB / 1.38 GB, free: 15.03 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.329e-05/0.5796, allocations: 184.2 kB / 1.38 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.377e-05/0.5797, allocations: 180.2 kB / 1.38 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.537e-05/0.5797, allocations: 192.2 kB / 1.38 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001566/0.5799, allocations: 303.7 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.58, allocations: 193.9 kB / 1.381 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.354e-05/0.5801, allocations: 176.3 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.822e-05/0.5802, allocations: 112.9 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.666e-05/0.5803, allocations: 180.2 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.5803, allocations: 105 kB / 1.381 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001056/0.5804, allocations: 128.3 kB / 1.381 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5805, allocations: 0 / 1.381 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002306/0.5807, allocations: 8 kB / 1.381 GB, free: 13.21 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000199/0.5809, allocations: 183.2 kB / 1.382 GB, free: 13.02 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 7.186e-05/0.581, allocations: 12 kB / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.581, allocations: 0 / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.234e-06/0.581, allocations: 352 / 1.382 GB, free: 13 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.5814, allocations: 0.5224 MB / 1.382 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003261/0.5818, allocations: 214.1 kB / 1.382 GB, free: 12.24 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.5821, allocations: 0.6926 MB / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.244e-05/0.5821, allocations: 11.98 kB / 1.383 GB, free: 11.51 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.594e-05/0.5821, allocations: 7.438 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of SimCode: time 5.61e-07/0.5821, allocations: 3.938 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of Templates: time 0.0025/0.5846, allocations: 445.5 kB / 1.383 GB, free: 11.07 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_MultiMax.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.MultiMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches