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.465/1.465, allocations: 249.3 MB / 261.8 MB, free: 5.824 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.001039/0.001039, allocations: 180.7 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.2 MB / 0.572 GB, free: 10.72 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.0009878/0.0009881, allocations: 82.48 kB / 0.6764 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 5.16e-05/5.162e-05, allocations: 8 kB / 0.788 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2296, allocations: 106.3 MB / 0.8918 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7224/0.952, allocations: 131.7 MB / 1.02 GB, free: 3 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.9524, allocations: 75.08 kB / 1.021 GB, free: 2.957 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01077/0.9631, allocations: 3.607 MB / 1.024 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.434e-06/0.9632, allocations: 0 / 1.024 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.731e-05/0.9632, allocations: 4 kB / 1.024 GB, free: 15.75 MB / 0.6511 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.0008765/0.9641, allocations: 477.2 kB / 1.025 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 7.2e-05/0.9642, allocations: 12.03 kB / 1.025 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.983e-05/0.9643, allocations: 11.81 kB / 1.025 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.9646, allocations: 221.8 kB / 1.025 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.9646, allocations: 7 kB / 1.025 GB, free: 14.97 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.613e-05/0.9647, allocations: 7.812 kB / 1.025 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.965, allocations: 114.5 kB / 1.025 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.965, allocations: 7.922 kB / 1.025 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.534e-05/0.965, allocations: 3.984 kB / 1.025 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.9651, allocations: 4 kB / 1.025 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.9652, allocations: 80.55 kB / 1.025 GB, free: 14.81 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009828/0.9662, allocations: 0.5073 MB / 1.025 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001239/0.9664, allocations: 87.08 kB / 1.026 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.9665, allocations: 76.33 kB / 1.026 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.9665, allocations: 4 kB / 1.026 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.9666, allocations: 30.56 kB / 1.026 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.9666, allocations: 0 / 1.026 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0003175/0.9669, allocations: 158 kB / 1.026 GB, free: 14.02 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.9669, allocations: 55.34 kB / 1.026 GB, free: 13.95 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.9671, allocations: 128.2 kB / 1.026 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.9671, allocations: 28.95 kB / 1.026 GB, free: 13.8 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.358e-05/0.9672, allocations: 107.7 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.734e-05/0.9673, allocations: 54.05 kB / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.525e-06/0.9673, allocations: 0 / 1.026 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001755/0.9675, allocations: 325.3 kB / 1.026 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.187e-05/0.9676, allocations: 50.86 kB / 1.027 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.642e-05/0.9677, allocations: 54.91 kB / 1.027 GB, free: 13.26 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001009/0.9678, allocations: 62.86 kB / 1.027 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.9678, allocations: 0 / 1.027 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002652/0.9681, allocations: 169.1 kB / 1.027 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.9681, allocations: 4 kB / 1.027 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/0.9682, allocations: 8 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.9682, allocations: 0 / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.9685, allocations: 51.94 kB / 1.027 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.9685, allocations: 240 / 1.027 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.9687, allocations: 51.8 kB / 1.027 GB, free: 12.97 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.9687, allocations: 7.984 kB / 1.027 GB, free: 12.96 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.034e-05/0.9688, allocations: 108.8 kB / 1.027 GB, free: 12.85 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/0.9689, allocations: 23.8 kB / 1.027 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003362/0.9692, allocations: 181.5 kB / 1.027 GB, free: 12.69 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.9692, allocations: 3.984 kB / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.9692, allocations: 4 kB / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.9692, allocations: 0 / 1.027 GB, free: 12.68 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.9695, allocations: 244 kB / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.9695, allocations: 0 / 1.027 GB, free: 12.42 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.9697, allocations: 58.91 kB / 1.027 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.9698, allocations: 0 / 1.027 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.9698, allocations: 3.938 kB / 1.027 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.9698, allocations: 0 / 1.027 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.9698, allocations: 0 / 1.027 GB, free: 12.36 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.9701, allocations: 272.1 kB / 1.028 GB, free: 12.12 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.659e-05/0.9702, allocations: 85.02 kB / 1.028 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.03e-05/0.9702, allocations: 3.953 kB / 1.028 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/0.9704, allocations: 43.95 kB / 1.028 GB, free: 11.97 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.763e-05/0.9705, allocations: 19.77 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.9705, allocations: 4 kB / 1.028 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.161e-05/0.9706, allocations: 109.8 kB / 1.028 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9706, allocations: 0 / 1.028 GB, free: 11.85 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002918/0.9709, allocations: 47.47 kB / 1.028 GB, free: 11.81 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.0002231/0.9711, allocations: 119.2 kB / 1.028 GB, free: 11.68 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002902/0.9714, allocations: 197.7 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9715, allocations: 4 kB / 1.028 GB, free: 11.52 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.9716, allocations: 136.2 kB / 1.028 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.9718, allocations: 22.17 kB / 1.029 GB, free: 11.38 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003913/0.9722, allocations: 215.7 kB / 1.029 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.9726, allocations: 0.7279 MB / 1.029 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.544e-05/0.9727, allocations: 19.92 kB / 1.029 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.526e-05/0.9727, allocations: 7.438 kB / 1.029 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of SimCode: time 2.61e-07/0.9727, allocations: 0 / 1.029 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of Templates: time 0.004259/0.977, allocations: 1.633 MB / 1.031 GB, free: 8.793 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