Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009952/0.0009951, allocations: 92.78 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 179.4 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 223.3 MB / 241 MB, free: 5.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.727/2.727, allocations: 437.8 MB / 0.7128 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004062/0.0004062, allocations: 12 kB / 0.8735 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6888/0.6892, allocations: 153.8 MB / 1.024 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sort): time 0.001216/0.6905, allocations: 0.5485 MB / 1.024 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001755/0.6923, allocations: 1.022 MB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.844e-05/0.6924, allocations: 0 / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.6925, allocations: 7.922 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.84e-05/0.6926, allocations: 11.88 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000496/0.6931, allocations: 75.84 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001828/0.6933, allocations: 115.6 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.6935, allocations: 53.38 kB / 1.025 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.6937, allocations: 35.84 kB / 1.026 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.941e-05/0.6938, allocations: 51.75 kB / 1.026 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.6938, allocations: 4 kB / 1.026 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.694, allocations: 51.91 kB / 1.026 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.142e-05/0.694, allocations: 35.89 kB / 1.026 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.273e-05/0.6941, allocations: 77.31 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000234/0.6944, allocations: 129.7 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.6944, allocations: 0 / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.964e-06/0.6944, allocations: 4 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.568e-06/0.6944, allocations: 0 / 1.026 GB, free: 13.64 MB / 0.7794 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.0009658/0.6954, allocations: 486.9 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 9.498e-05/0.6955, allocations: 8.031 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.247e-05/0.6956, allocations: 12.75 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.6959, allocations: 213.5 kB / 1.027 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.6959, allocations: 8.375 kB / 1.027 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.124e-05/0.696, allocations: 8.375 kB / 1.027 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006486/0.6966, allocations: 218.7 kB / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.6966, allocations: 192 / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.6967, allocations: 11.94 kB / 1.027 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.714e-05/0.6967, allocations: 15.92 kB / 1.027 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008078/0.6975, allocations: 259.8 kB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001032/0.6986, allocations: 480.3 kB / 1.028 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.699, allocations: 174.3 kB / 1.028 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004228/0.6995, allocations: 156.8 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.6995, allocations: 4 kB / 1.028 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.6995, allocations: 34.5 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.6995, allocations: 4 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.001471/0.701, allocations: 475.6 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.7011, allocations: 51.41 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.7012, allocations: 157 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.7013, allocations: 29.7 kB / 1.029 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.379e-05/0.7013, allocations: 108.4 kB / 1.029 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.7014, allocations: 47.33 kB / 1.029 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.611e-05/0.7015, allocations: 21.66 kB / 1.029 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.7016, allocations: 322.8 kB / 1.029 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004381/0.7021, allocations: 143.9 kB / 1.029 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004117/0.7025, allocations: 143.8 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008769/0.7034, allocations: 292.6 kB / 1.03 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.7034, allocations: 0 / 1.03 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008987/0.7043, allocations: 327.6 kB / 1.03 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.7043, allocations: 4 kB / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.7044, allocations: 0 / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.7044, allocations: 0 / 1.03 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.7047, allocations: 59.89 kB / 1.03 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.7047, allocations: 0 / 1.03 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002143/0.7049, allocations: 55.73 kB / 1.03 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.705, allocations: 0 / 1.03 GB, free: 9.176 MB / 0.7794 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: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.7051, allocations: 130.4 kB / 1.03 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/0.7051, allocations: 11.91 kB / 1.03 GB, free: 9.027 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.207e-05/0.7052, allocations: 12.83 kB / 1.03 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/0.7052, allocations: 8 kB / 1.03 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.7052, allocations: 0 / 1.03 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.7052, allocations: 3.938 kB / 1.03 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000312/0.7056, allocations: 229.5 kB / 1.03 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.7056, allocations: 0 / 1.03 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.7058, allocations: 51.95 kB / 1.03 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.7058, allocations: 0 / 1.03 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.7058, allocations: 7.984 kB / 1.03 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.7058, allocations: 4 kB / 1.03 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.7059, allocations: 0 / 1.03 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.7069, allocations: 439 kB / 1.031 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.165e-05/0.707, allocations: 96.88 kB / 1.031 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.707, allocations: 0 / 1.031 GB, free: 8.109 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.7072, allocations: 43.95 kB / 1.031 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.7073, allocations: 15.92 kB / 1.031 GB, free: 8.051 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.7073, allocations: 4 kB / 1.031 GB, free: 8.047 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.833e-05/0.7074, allocations: 115.2 kB / 1.031 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7074, allocations: 0 / 1.031 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003246/0.7078, allocations: 43.83 kB / 1.031 GB, free: 7.891 MB / 0.7794 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: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003122/0.7081, allocations: 119.2 kB / 1.031 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0009374/0.709, allocations: 311.7 kB / 1.032 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.709, allocations: 0 / 1.032 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0004368/0.7095, allocations: 159.9 kB / 1.032 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.7099, allocations: 12 kB / 1.032 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007013/0.7106, allocations: 407.7 kB / 1.032 GB, free: 6.867 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.7109, allocations: 0.7199 MB / 1.033 GB, free: 6.121 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.711, allocations: 11.44 kB / 1.033 GB, free: 6.109 MB / 0.7794 GB Notification: Performance of SimCode: time 6.41e-07/0.711, allocations: 0 / 1.033 GB, free: 6.109 MB / 0.7794 GB Notification: Performance of Templates: time 0.004286/0.7153, allocations: 1.874 MB / 1.035 GB, free: 4.258 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Sort.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Sort.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches