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.001902/0.001902, allocations: 80.2 kB / 19.18 MB, free: 2.527 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.002314/0.002314, allocations: 174.5 kB / 22.46 MB, free: 5.355 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.53/1.53, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.76/2.76, allocations: 359 MB / 0.6037 GB, free: 15.01 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 2.195e-06/2.195e-06, allocations: 0 / 0.951 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.082e-05/3.301e-05, allocations: 2.281 kB / 0.951 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.00193/0.001963, allocations: 0.8086 MB / 0.9518 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001561/0.003524, allocations: 1.046 MB / 0.9528 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.829e-05/0.003582, allocations: 0 / 0.9528 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001125/0.003694, allocations: 11.86 kB / 0.9528 GB, free: 9.734 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.003836, allocations: 23.75 kB / 0.9528 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000406/0.004242, allocations: 91.81 kB / 0.9529 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001735/0.004416, allocations: 127.6 kB / 0.953 GB, free: 9.496 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.004561, allocations: 37.22 kB / 0.9531 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.004669, allocations: 67.88 kB / 0.9531 GB, free: 9.391 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.426e-05/0.004753, allocations: 51.86 kB / 0.9532 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.126e-05/0.004784, allocations: 12 kB / 0.9532 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.004983, allocations: 87.86 kB / 0.9533 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.44e-05/0.005047, allocations: 39.84 kB / 0.9533 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.566e-05/0.005103, allocations: 39.84 kB / 0.9533 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003156/0.005419, allocations: 231.2 kB / 0.9536 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.005421, allocations: 0 / 0.9536 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of FrontEnd: time 6.21e-07/0.005421, allocations: 0 / 0.9536 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.005426, allocations: 0 / 0.9536 GB, free: 8.938 MB / 0.8575 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.0008795/0.006305, allocations: 425.4 kB / 0.954 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.006341, allocations: 8.031 kB / 0.954 GB, free: 8.48 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.562e-05/0.006386, allocations: 16.84 kB / 0.954 GB, free: 8.465 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.006588, allocations: 149.4 kB / 0.9541 GB, free: 8.293 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.006605, allocations: 8.375 kB / 0.9541 GB, free: 8.285 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.006624, allocations: 8.375 kB / 0.9541 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005981/0.007222, allocations: 198.1 kB / 0.9543 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.007231, allocations: 192 / 0.9543 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.007251, allocations: 8.375 kB / 0.9543 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.007264, allocations: 4.359 kB / 0.9543 GB, free: 8.066 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008154/0.00808, allocations: 227.7 kB / 0.9546 GB, free: 7.844 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009773/0.009057, allocations: 452 kB / 0.955 GB, free: 7.371 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004866/0.009544, allocations: 151 kB / 0.9551 GB, free: 7.215 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004708/0.01001, allocations: 140.8 kB / 0.9553 GB, free: 7.074 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.513e-05/0.01007, allocations: 4 kB / 0.9553 GB, free: 7.07 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.0101, allocations: 42.48 kB / 0.9553 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.01011, allocations: 0 / 0.9553 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=25): time 0.001541/0.01165, allocations: 474 kB / 0.9558 GB, free: 6.551 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.01171, allocations: 55.41 kB / 0.9558 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.01186, allocations: 149.8 kB / 0.956 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.01189, allocations: 25.7 kB / 0.956 GB, free: 6.301 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.948e-05/0.01198, allocations: 112.5 kB / 0.9561 GB, free: 6.188 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.715e-05/0.01205, allocations: 79.39 kB / 0.9562 GB, free: 6.109 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.779e-05/0.01212, allocations: 33.7 kB / 0.9562 GB, free: 6.07 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001885/0.01231, allocations: 334.8 kB / 0.9565 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004324/0.01274, allocations: 127.9 kB / 0.9566 GB, free: 5.609 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.01317, allocations: 138.1 kB / 0.9568 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008676/0.01404, allocations: 297.5 kB / 0.9571 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01404, allocations: 0 / 0.9571 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009287/0.01497, allocations: 334.5 kB / 0.9574 GB, free: 4.852 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.01498, allocations: 8 kB / 0.9574 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.015, allocations: 0 / 0.9574 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.01502, allocations: 0 / 0.9574 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002396/0.01526, allocations: 35.95 kB / 0.9574 GB, free: 4.809 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.01526, allocations: 0 / 0.9574 GB, free: 4.809 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.01546, allocations: 43.84 kB / 0.9575 GB, free: 4.766 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.01549, allocations: 4 kB / 0.9575 GB, free: 4.762 MB / 0.8575 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.0001498/0.01564, allocations: 140 kB / 0.9576 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.01568, allocations: 11.91 kB / 0.9576 GB, free: 4.605 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.01671, allocations: 378 kB / 0.958 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.01672, allocations: 0 / 0.958 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.01672, allocations: 0 / 0.958 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.01673, allocations: 0 / 0.958 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.017, allocations: 196.9 kB / 0.9582 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.01701, allocations: 4 kB / 0.9582 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.01723, allocations: 35.95 kB / 0.9582 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.639e-05/0.01724, allocations: 4 kB / 0.9582 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.531e-05/0.01726, allocations: 7.938 kB / 0.9582 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.01726, allocations: 3.984 kB / 0.9582 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.01727, allocations: 0 / 0.9582 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.0183, allocations: 439 kB / 0.9586 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.011e-05/0.01834, allocations: 19.84 kB / 0.9587 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.01836, allocations: 0 / 0.9587 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.01857, allocations: 31.95 kB / 0.9587 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.321e-05/0.01864, allocations: 15.97 kB / 0.9587 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.01866, allocations: 8 kB / 0.9587 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.159e-05/0.01874, allocations: 107.2 kB / 0.9588 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.01874, allocations: 3.938 kB / 0.9588 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003026/0.01904, allocations: 47.89 kB / 0.9589 GB, free: 3.285 MB / 0.8575 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.0002483/0.01929, allocations: 123.2 kB / 0.959 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009987/0.02029, allocations: 363.5 kB / 0.9593 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.02029, allocations: 0 / 0.9593 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000532/0.02082, allocations: 227.2 kB / 0.9595 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.02115, allocations: 24.22 kB / 0.9596 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006571/0.02181, allocations: 342.7 kB / 0.9599 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.02194, allocations: 124.8 kB / 0.96 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.055e-05/0.02201, allocations: 19.97 kB / 0.96 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.775e-05/0.02206, allocations: 12.5 kB / 0.96 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of SimCode: time 4.11e-07/0.02206, allocations: 0 / 0.96 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of Templates: time 0.005822/0.02788, allocations: 2.17 MB / 0.9622 GB, free: 15.86 MB / 0.8731 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 -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/jenkins/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.196063172072172]