Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 79.19 kB / 19.76 MB, free: 2.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00222/0.00222, allocations: 156.5 kB / 23.01 MB, free: 4.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.717/2.717, allocations: 359.1 MB / 0.6044 GB, free: 14.86 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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.|sorAsc.yIdx.1.|sorAsc.yIdx.2.|sorAsc.yIdx.3.|sorAsc.yIdx.4.|sorAsc.yIdx.5.|sorDes.yIdx.1.|sorDes.yIdx.2.|sorDes.yIdx.3.|sorDes.yIdx.4.|sorDes.yIdx.5.",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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.|sorAsc.yIdx.1.|sorAsc.yIdx.2.|sorAsc.yIdx.3.|sorAsc.yIdx.4.|sorAsc.yIdx.5.|sorDes.yIdx.1.|sorDes.yIdx.2.|sorDes.yIdx.3.|sorDes.yIdx.4.|sorDes.yIdx.5.",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 63.89 kB / 0.9515 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3458, allocations: 169.9 MB / 1.117 GB, free: 2.559 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.002337/0.3481, allocations: 0.8134 MB / 1.118 GB, free: 1.746 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001426/0.3495, allocations: 1.026 MB / 1.119 GB, free: 0.707 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.682e-05/0.3496, allocations: 0 / 1.119 GB, free: 0.707 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.3497, allocations: 23.8 kB / 1.119 GB, free: 0.6836 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.314e-05/0.3498, allocations: 19.78 kB / 1.119 GB, free: 0.6641 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.3502, allocations: 95.78 kB / 1.119 GB, free: 0.5703 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.3503, allocations: 127.6 kB / 1.119 GB, free: 456 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.3505, allocations: 41.2 kB / 1.12 GB, free: 416 kB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.561e-05/0.3506, allocations: 55.83 kB / 1.12 GB, free: 360 kB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.874e-05/0.3507, allocations: 47.83 kB / 1.12 GB, free: 312 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.87e-05/0.3507, allocations: 12 kB / 1.12 GB, free: 300 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000156/0.3508, allocations: 91.78 kB / 1.12 GB, free: 208 kB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.367e-05/0.3509, allocations: 39.91 kB / 1.12 GB, free: 168 kB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.501e-05/0.351, allocations: 47.67 kB / 1.12 GB, free: 120 kB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003122/0.3513, allocations: 215 kB / 1.12 GB, free: 15.91 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3513, allocations: 0 / 1.12 GB, free: 15.91 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.432e-06/0.3513, allocations: 0 / 1.12 GB, free: 15.91 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.062e-05/0.3513, allocations: 0 / 1.12 GB, free: 15.91 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.0008515/0.3522, allocations: 429.4 kB / 1.12 GB, free: 15.46 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3522, allocations: 11.97 kB / 1.12 GB, free: 15.45 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.058e-05/0.3522, allocations: 16.84 kB / 1.12 GB, free: 15.43 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.3525, allocations: 150.2 kB / 1.121 GB, free: 15.26 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3525, allocations: 8.375 kB / 1.121 GB, free: 15.25 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.3525, allocations: 4.375 kB / 1.121 GB, free: 15.25 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005631/0.3531, allocations: 206.1 kB / 1.121 GB, free: 15.04 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.3531, allocations: 3.938 kB / 1.121 GB, free: 15.04 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.3531, allocations: 4 kB / 1.121 GB, free: 15.03 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.3531, allocations: 4 kB / 1.121 GB, free: 15.03 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007482/0.3538, allocations: 227.6 kB / 1.121 GB, free: 14.8 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008796/0.3547, allocations: 448 kB / 1.121 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004406/0.3552, allocations: 150.5 kB / 1.122 GB, free: 14.18 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004124/0.3556, allocations: 136.8 kB / 1.122 GB, free: 14.04 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 5.257e-05/0.3556, allocations: 11.98 kB / 1.122 GB, free: 14.03 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.3556, allocations: 34.56 kB / 1.122 GB, free: 13.99 MB / 1.076 GB Notification: Performance of pre-optimization done (n=25): time 1.543e-06/0.3556, allocations: 0 / 1.122 GB, free: 13.99 MB / 1.076 GB Notification: Performance of matching and sorting (n=25): time 0.001445/0.3571, allocations: 472.1 kB / 1.122 GB, free: 13.52 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.3571, allocations: 63.38 kB / 1.122 GB, free: 13.45 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.3573, allocations: 148.3 kB / 1.122 GB, free: 13.3 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.3573, allocations: 25.7 kB / 1.122 GB, free: 13.27 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 8.474e-05/0.3574, allocations: 116.5 kB / 1.123 GB, free: 13.15 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 6.612e-05/0.3575, allocations: 71.38 kB / 1.123 GB, free: 13.08 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.969e-05/0.3575, allocations: 33.7 kB / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3577, allocations: 326.8 kB / 1.123 GB, free: 12.71 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004015/0.3581, allocations: 135.8 kB / 1.123 GB, free: 12.58 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003843/0.3585, allocations: 131.9 kB / 1.123 GB, free: 12.45 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008568/0.3593, allocations: 304.1 kB / 1.124 GB, free: 12.15 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3593, allocations: 0 / 1.124 GB, free: 12.15 MB / 1.076 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009012/0.3602, allocations: 337.1 kB / 1.124 GB, free: 11.82 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.3603, allocations: 4 kB / 1.124 GB, free: 11.81 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-05/0.3603, allocations: 4 kB / 1.124 GB, free: 11.81 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.3603, allocations: 0 / 1.124 GB, free: 11.81 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.3605, allocations: 31.95 kB / 1.124 GB, free: 11.78 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.3605, allocations: 7.938 kB / 1.124 GB, free: 11.77 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.3607, allocations: 39.84 kB / 1.124 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.82e-05/0.3607, allocations: 8 kB / 1.124 GB, free: 11.72 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorDes.yIdx[5],sorDes.yIdx[4],sorDes.yIdx[3],sorDes.yIdx[2],sorDes.yIdx[1],sorAsc.yIdx[5],sorAsc.yIdx[4],sorAsc.yIdx[3],sorAsc.yIdx[2],sorAsc.yIdx[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001495/0.3609, allocations: 137.8 kB / 1.124 GB, free: 11.58 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.568e-05/0.3609, allocations: 11.91 kB / 1.124 GB, free: 11.57 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009769/0.3619, allocations: 369.9 kB / 1.124 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3619, allocations: 4 kB / 1.124 GB, free: 11.2 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3619, allocations: 7.938 kB / 1.124 GB, free: 11.19 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3619, allocations: 0 / 1.124 GB, free: 11.19 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.3622, allocations: 193.1 kB / 1.125 GB, free: 10.97 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.3622, allocations: 4 kB / 1.125 GB, free: 10.96 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.3624, allocations: 39.95 kB / 1.125 GB, free: 10.93 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3624, allocations: 0 / 1.125 GB, free: 10.93 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.3624, allocations: 4 kB / 1.125 GB, free: 10.92 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3624, allocations: 0 / 1.125 GB, free: 10.92 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3624, allocations: 0 / 1.125 GB, free: 10.92 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009074/0.3633, allocations: 439 kB / 1.125 GB, free: 10.48 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.401e-05/0.3633, allocations: 15.84 kB / 1.125 GB, free: 10.46 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.3633, allocations: 4 kB / 1.125 GB, free: 10.46 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.3635, allocations: 31.95 kB / 1.125 GB, free: 10.43 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.297e-05/0.3636, allocations: 15.97 kB / 1.125 GB, free: 10.41 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.3636, allocations: 7.938 kB / 1.125 GB, free: 10.4 MB / 1.076 GB Notification: Performance of sorting global known variables: time 8.342e-05/0.3637, allocations: 110.5 kB / 1.125 GB, free: 10.3 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.3637, allocations: 0 / 1.125 GB, free: 10.3 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003077/0.364, allocations: 43.94 kB / 1.125 GB, free: 10.25 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (sorAsc.yIdx[1],sorAsc.yIdx[2],sorAsc.yIdx[3],sorAsc.yIdx[4],sorAsc.yIdx[5],sorDes.yIdx[1],sorDes.yIdx[2],sorDes.yIdx[3],sorDes.yIdx[4],sorDes.yIdx[5]) * 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 (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.0002917/0.3643, allocations: 121.2 kB / 1.125 GB, free: 10.13 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.001004/0.3653, allocations: 371.4 kB / 1.126 GB, free: 9.754 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.3653, allocations: 0 / 1.126 GB, free: 9.754 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0004893/0.3658, allocations: 223.4 kB / 1.126 GB, free: 9.523 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.3661, allocations: 22.14 kB / 1.126 GB, free: 9.504 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006555/0.3668, allocations: 359.1 kB / 1.126 GB, free: 9.125 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.3669, allocations: 135 kB / 1.126 GB, free: 8.977 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 6.902e-05/0.367, allocations: 11.98 kB / 1.127 GB, free: 8.965 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.419e-05/0.367, allocations: 12.5 kB / 1.127 GB, free: 8.953 MB / 1.076 GB Notification: Performance of SimCode: time 7.01e-07/0.367, allocations: 0 / 1.127 GB, free: 8.953 MB / 1.076 GB Notification: Performance of Templates: time 0.00582/0.3729, allocations: 2.166 MB / 1.129 GB, free: 6.828 MB / 1.076 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices -abortSlowSimulation -alarm=400 -s ida -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.927872944972478]