Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sorAsc.u.1.|sorAsc.u.2.|sorAsc.u.3.|sorAsc.u.4.|sorAsc.u.5.|sorAsc.y.1.|sorAsc.y.2.|sorAsc.y.3.|sorAsc.y.4.|sorAsc.y.5.|sorDes.y.1.|sorDes.y.2.|sorDes.y.3.|sorDes.y.4.|sorDes.y.5.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.383/1.383, allocations: 249.4 MB / 256.7 MB, free: 7.117 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00112/0.001121, allocations: 173.3 kB / 316 MB, free: 3.562 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.1 MB / 0.5667 GB, free: 15.71 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 94.06 kB / 0.671 GB, free: 4.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.596e-06/8.636e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.188, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4732/0.6613, allocations: 132.1 MB / 1.014 GB, free: 6.617 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.6615, allocations: 70.09 kB / 1.014 GB, free: 6.582 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.009701/0.6712, allocations: 3.322 MB / 1.017 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.888e-06/0.6713, allocations: 4 kB / 1.017 GB, free: 3.684 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007169/0.672, allocations: 495.7 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.672, allocations: 8.031 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.6721, allocations: 15.81 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002038/0.6723, allocations: 211 kB / 1.018 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.783e-06/0.6723, allocations: 0 / 1.018 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.6723, allocations: 7.984 kB / 1.018 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001751/0.6725, allocations: 81.8 kB / 1.018 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001775/0.6727, allocations: 116.6 kB / 1.018 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.6727, allocations: 0 / 1.018 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.6727, allocations: 4 kB / 1.018 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.6727, allocations: 0 / 1.018 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009046/0.6736, allocations: 0.5011 MB / 1.018 GB, free: 2.254 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.6738, allocations: 74.44 kB / 1.018 GB, free: 2.195 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.786e-05/0.6739, allocations: 71.34 kB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.501e-05/0.6739, allocations: 3.984 kB / 1.018 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.6739, allocations: 45.44 kB / 1.018 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.6739, allocations: 0 / 1.018 GB, free: 2.094 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15): time 0.0003523/0.6743, allocations: 167 kB / 1.019 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.634e-05/0.6743, allocations: 51.41 kB / 1.019 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.652e-05/0.6744, allocations: 125 kB / 1.019 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.6745, allocations: 25.7 kB / 1.019 GB, free: 1.746 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.125e-05/0.6745, allocations: 103.5 kB / 1.019 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.6745, allocations: 42.64 kB / 1.019 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.6746, allocations: 8 kB / 1.019 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.6747, allocations: 321.4 kB / 1.019 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.597e-05/0.6748, allocations: 52.86 kB / 1.019 GB, free: 1.246 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.15e-05/0.6748, allocations: 55.17 kB / 1.019 GB, free: 1.211 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001124/0.675, allocations: 68.64 kB / 1.019 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.675, allocations: 0 / 1.019 GB, free: 1.16 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.00026/0.6752, allocations: 171.1 kB / 1.02 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.6752, allocations: 8 kB / 1.02 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.6753, allocations: 0 / 1.02 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.6753, allocations: 4.75 kB / 1.02 GB, free: 1.008 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.6756, allocations: 59.64 kB / 1.02 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.307e-06/0.6756, allocations: 0 / 1.02 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.6758, allocations: 55.8 kB / 1.02 GB, free: 0.8984 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.6758, allocations: 8.234 kB / 1.02 GB, free: 0.8906 MB / 0.6355 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.104e-05/0.6759, allocations: 101 kB / 1.02 GB, free: 0.7852 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/0.676, allocations: 11.81 kB / 1.02 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003366/0.6763, allocations: 194.7 kB / 1.02 GB, free: 0.6172 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.6763, allocations: 7.938 kB / 1.02 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.6763, allocations: 0 / 1.02 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.6763, allocations: 0 / 1.02 GB, free: 0.6094 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002053/0.6765, allocations: 220.1 kB / 1.02 GB, free: 392 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.6766, allocations: 4 kB / 1.02 GB, free: 388 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.6768, allocations: 51.95 kB / 1.02 GB, free: 336 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.6768, allocations: 7.906 kB / 1.02 GB, free: 328 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.6768, allocations: 3.938 kB / 1.02 GB, free: 324 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.6768, allocations: 7.984 kB / 1.02 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.6769, allocations: 80 / 1.02 GB, free: 316 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002975/0.6772, allocations: 280.9 kB / 1.021 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.003e-05/0.6772, allocations: 88.95 kB / 1.021 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.782e-05/0.6773, allocations: 11.83 kB / 1.021 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.6775, allocations: 43.97 kB / 1.021 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.503e-05/0.6776, allocations: 15.53 kB / 1.021 GB, free: 15.89 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.6776, allocations: 7.984 kB / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of sort global known variables: time 7.739e-05/0.6777, allocations: 110.2 kB / 1.021 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002633/0.678, allocations: 36 kB / 1.021 GB, free: 15.75 MB / 0.6511 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002005/0.6782, allocations: 111.2 kB / 1.021 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002506/0.6784, allocations: 205.3 kB / 1.021 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.6784, allocations: 0 / 1.021 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.6786, allocations: 141.8 kB / 1.021 GB, free: 15.33 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.6788, allocations: 23.14 kB / 1.021 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004008/0.6792, allocations: 204.2 kB / 1.022 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003569/0.6796, allocations: 0.7393 MB / 1.022 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.6796, allocations: 0 / 1.022 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of Templates: time 0.00388/0.6835, allocations: 1.77 MB / 1.024 GB, free: 12.61 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_Sort.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches