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.359/1.359, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 183.7 kB / 326.5 MB, free: 2.246 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.735/1.735, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0008603/0.0008604, allocations: 86.36 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003547, allocations: 12.97 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2626, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1887/0.4513, allocations: 131.8 MB / 1.029 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.4516, allocations: 71.95 kB / 1.029 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009896/0.4615, allocations: 3.619 MB / 1.032 GB, free: 8.254 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.834e-06/0.4616, allocations: 0 / 1.032 GB, free: 8.254 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.4616, allocations: 0 / 1.032 GB, free: 8.254 MB / 0.6823 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.0007374/0.4623, allocations: 0.4909 MB / 1.033 GB, free: 7.715 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.4624, allocations: 8.031 kB / 1.033 GB, free: 7.707 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.818e-05/0.4624, allocations: 15.81 kB / 1.033 GB, free: 7.691 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.4627, allocations: 206.6 kB / 1.033 GB, free: 7.449 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.4627, allocations: 4 kB / 1.033 GB, free: 7.445 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.4627, allocations: 8 kB / 1.033 GB, free: 7.438 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.4633, allocations: 205.4 kB / 1.033 GB, free: 7.23 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.4633, allocations: 4 kB / 1.033 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.4633, allocations: 8 kB / 1.033 GB, free: 7.219 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.4633, allocations: 0 / 1.033 GB, free: 7.219 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007045/0.464, allocations: 251.8 kB / 1.034 GB, free: 6.973 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001/0.4651, allocations: 0.512 MB / 1.034 GB, free: 6.41 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004114/0.4655, allocations: 167.1 kB / 1.034 GB, free: 6.238 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.241e-05/0.4655, allocations: 7.938 kB / 1.034 GB, free: 6.23 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.4655, allocations: 38.56 kB / 1.034 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=15): time 2.965e-06/0.4656, allocations: 3.984 kB / 1.034 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15): time 0.00131/0.4669, allocations: 0.6129 MB / 1.035 GB, free: 5.523 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.4669, allocations: 55.41 kB / 1.035 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.4671, allocations: 136.8 kB / 1.035 GB, free: 5.32 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.4671, allocations: 25.7 kB / 1.035 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.4672, allocations: 112.2 kB / 1.035 GB, free: 5.172 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.562e-05/0.4672, allocations: 47.36 kB / 1.035 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-06/0.4672, allocations: 0 / 1.035 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4674, allocations: 322.8 kB / 1.036 GB, free: 4.801 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/0.4677, allocations: 143.8 kB / 1.036 GB, free: 4.66 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003504/0.4681, allocations: 149.5 kB / 1.036 GB, free: 4.516 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/0.4685, allocations: 144 kB / 1.036 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4685, allocations: 0 / 1.036 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008026/0.4693, allocations: 337.2 kB / 1.036 GB, free: 4.039 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.4693, allocations: 4 kB / 1.036 GB, free: 4.035 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/0.4693, allocations: 7.984 kB / 1.036 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.4694, allocations: 0 / 1.036 GB, free: 4.027 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.4696, allocations: 55.95 kB / 1.036 GB, free: 3.973 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.4696, allocations: 0 / 1.036 GB, free: 3.973 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.4698, allocations: 39.95 kB / 1.036 GB, free: 3.934 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.144e-05/0.4698, allocations: 4 kB / 1.036 GB, free: 3.93 MB / 0.6823 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 (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 0.0001155/0.47, allocations: 133.8 kB / 1.037 GB, free: 3.789 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.557e-05/0.47, allocations: 15.77 kB / 1.037 GB, free: 3.773 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008829/0.4709, allocations: 360.2 kB / 1.037 GB, free: 3.418 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.4709, allocations: 4 kB / 1.037 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4709, allocations: 0 / 1.037 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.4709, allocations: 0 / 1.037 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002616/0.4712, allocations: 245.4 kB / 1.037 GB, free: 3.125 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.4712, allocations: 0 / 1.037 GB, free: 3.125 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.4714, allocations: 55.95 kB / 1.037 GB, free: 3.07 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.4715, allocations: 7.938 kB / 1.037 GB, free: 3.062 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.4715, allocations: 0 / 1.037 GB, free: 3.062 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.4715, allocations: 4 kB / 1.037 GB, free: 3.059 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.4715, allocations: 3.938 kB / 1.037 GB, free: 3.055 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008378/0.4723, allocations: 423.2 kB / 1.038 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.991e-05/0.4724, allocations: 92.94 kB / 1.038 GB, free: 2.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.4724, allocations: 3.953 kB / 1.038 GB, free: 2.512 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.4726, allocations: 39.95 kB / 1.038 GB, free: 2.473 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.762e-05/0.4727, allocations: 15.98 kB / 1.038 GB, free: 2.457 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.4727, allocations: 4 kB / 1.038 GB, free: 2.453 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 7.113e-05/0.4728, allocations: 111.2 kB / 1.038 GB, free: 2.344 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4728, allocations: 0 / 1.038 GB, free: 2.344 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.000431/0.4733, allocations: 47.84 kB / 1.038 GB, free: 2.297 MB / 0.6823 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 (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.0002673/0.4735, allocations: 123.2 kB / 1.038 GB, free: 2.164 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0008713/0.4744, allocations: 379.1 kB / 1.038 GB, free: 1.781 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.4744, allocations: 0 / 1.038 GB, free: 1.781 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.000435/0.4749, allocations: 219.3 kB / 1.039 GB, free: 1.555 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.4751, allocations: 23.86 kB / 1.039 GB, free: 1.531 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005855/0.4757, allocations: 330.7 kB / 1.039 GB, free: 1.184 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.4761, allocations: 0.7318 MB / 1.04 GB, free: 432 kB / 0.6823 GB Notification: Performance of simCode: alias equations: time 8.176e-05/0.4762, allocations: 11.98 kB / 1.04 GB, free: 420 kB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.611e-05/0.4762, allocations: 7.438 kB / 1.04 GB, free: 416 kB / 0.6823 GB Notification: Performance of SimCode: time 4.21e-07/0.4762, allocations: 0 / 1.04 GB, free: 416 kB / 0.6823 GB Notification: Performance of Templates: time 0.004853/0.4811, allocations: 1.598 MB / 1.041 GB, free: 14.82 MB / 0.698 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