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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.466/1.466, allocations: 249.5 MB / 257 MB, free: 6.859 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.001069/0.001069, allocations: 187.1 kB / 316.3 MB, free: 3.238 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.715/1.715, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008619/0.0008619, allocations: 88.75 kB / 0.6714 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.53e-05/2.547e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2197, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6447/0.8645, allocations: 132 MB / 1.014 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/0.8647, allocations: 71.27 kB / 1.014 GB, free: 5.703 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.009683/0.8744, allocations: 3.587 MB / 1.018 GB, free: 2.547 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.052e-06/0.8744, allocations: 4 kB / 1.018 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.8745, allocations: 0 / 1.018 GB, free: 2.543 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.0007168/0.8752, allocations: 479.3 kB / 1.018 GB, free: 2.039 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.8752, allocations: 8.031 kB / 1.018 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.044e-05/0.8753, allocations: 15.81 kB / 1.018 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001896/0.8755, allocations: 210.2 kB / 1.018 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-06/0.8755, allocations: 0 / 1.018 GB, free: 1.777 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.8755, allocations: 7.938 kB / 1.018 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001626/0.8757, allocations: 88.53 kB / 1.019 GB, free: 1.711 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.8758, allocations: 107.8 kB / 1.019 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.675e-06/0.8759, allocations: 0 / 1.019 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.8759, allocations: 3.984 kB / 1.019 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.8759, allocations: 0 / 1.019 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008244/0.8767, allocations: 495.7 kB / 1.019 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001085/0.8768, allocations: 82.78 kB / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.061e-05/0.8769, allocations: 62.72 kB / 1.019 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.877, allocations: 3.953 kB / 1.019 GB, free: 1.039 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.877, allocations: 42.31 kB / 1.019 GB, free: 0.9922 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.877, allocations: 0 / 1.019 GB, free: 0.9922 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15): time 0.0003356/0.8774, allocations: 150 kB / 1.019 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.044e-05/0.8774, allocations: 55.41 kB / 1.019 GB, free: 0.8047 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.598e-05/0.8775, allocations: 122.9 kB / 1.02 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.395e-05/0.8775, allocations: 29.69 kB / 1.02 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.996e-05/0.8776, allocations: 115.1 kB / 1.02 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.73e-05/0.8776, allocations: 42.73 kB / 1.02 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.764e-06/0.8776, allocations: 0 / 1.02 GB, free: 0.5078 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.98e-05/0.8777, allocations: 330.1 kB / 1.02 GB, free: 188 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.595e-05/0.8778, allocations: 46.3 kB / 1.02 GB, free: 156 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.602e-05/0.8779, allocations: 57.75 kB / 1.02 GB, free: 120 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001084/0.878, allocations: 61.91 kB / 1.02 GB, free: 76 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.878, allocations: 4 kB / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002466/0.8783, allocations: 152.4 kB / 1.02 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.8783, allocations: 18.12 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.8783, allocations: 3.938 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.8783, allocations: 0.75 kB / 1.02 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002674/0.8786, allocations: 51.95 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.8786, allocations: 4 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.8788, allocations: 51.45 kB / 1.021 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.8789, allocations: 4 kB / 1.021 GB, free: 15.82 MB / 0.6511 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.304e-05/0.8789, allocations: 105 kB / 1.021 GB, free: 15.71 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.879, allocations: 11.81 kB / 1.021 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003093/0.8793, allocations: 188.5 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.8793, allocations: 7.938 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.8793, allocations: 7.875 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.8793, allocations: 0 / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002064/0.8795, allocations: 217.9 kB / 1.021 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.944e-06/0.8796, allocations: 4 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002285/0.8798, allocations: 47.95 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.8798, allocations: 4 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.8798, allocations: 0 / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.8798, allocations: 7.938 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.8798, allocations: 320 / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002801/0.8801, allocations: 265.4 kB / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.613e-05/0.8802, allocations: 89 kB / 1.021 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.8802, allocations: 4 kB / 1.021 GB, free: 14.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.8804, allocations: 39.95 kB / 1.021 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.456e-05/0.8805, allocations: 14.88 kB / 1.021 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.8805, allocations: 11.44 kB / 1.021 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.555e-05/0.8806, allocations: 109.4 kB / 1.022 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8806, allocations: 0 / 1.022 GB, free: 14.74 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002658/0.8808, allocations: 43.84 kB / 1.022 GB, free: 14.7 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.0001845/0.881, allocations: 115.2 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002475/0.8813, allocations: 198.4 kB / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.8813, allocations: 0 / 1.022 GB, free: 14.41 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.8814, allocations: 134.7 kB / 1.022 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.8817, allocations: 23.44 kB / 1.022 GB, free: 14.27 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003724/0.8821, allocations: 205.5 kB / 1.022 GB, free: 14.07 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.8824, allocations: 0.7229 MB / 1.023 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.479e-05/0.8824, allocations: 19.94 kB / 1.023 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.728e-05/0.8825, allocations: 11.44 kB / 1.023 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.8825, allocations: 0 / 1.023 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of Templates: time 0.00352/0.886, allocations: 1.495 MB / 1.024 GB, free: 11.82 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