Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,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.|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_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,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.|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_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009499/0.0009497, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005657/0.005657, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.585/1.585, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.964/2.964, allocations: 462.7 MB / 0.7364 GB, free: 280 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0005227/0.0005227, allocations: 16.66 kB / 0.9028 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3917, allocations: 159.6 MB / 1.059 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001113/0.3928, allocations: 0.5533 MB / 1.059 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001565/0.3944, allocations: 1.03 MB / 1.06 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.499e-05/0.3945, allocations: 7.875 kB / 1.06 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.3947, allocations: 7.922 kB / 1.06 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.944e-05/0.3948, allocations: 19.86 kB / 1.06 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.3952, allocations: 67.86 kB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001802/0.3954, allocations: 115.7 kB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.3956, allocations: 49.08 kB / 1.06 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.3957, allocations: 47.77 kB / 1.061 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000211/0.3959, allocations: 47.77 kB / 1.061 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.3959, allocations: 8 kB / 1.061 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001367/0.3961, allocations: 59.89 kB / 1.061 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.184e-05/0.3962, allocations: 31.86 kB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.298e-05/0.3962, allocations: 77.25 kB / 1.061 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003932/0.3966, allocations: 199.5 kB / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3967, allocations: 0 / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.973e-06/0.3967, allocations: 0 / 1.061 GB, free: 3.145 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.3967, allocations: 0 / 1.061 GB, free: 3.145 MB / 0.8106 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.0009314/0.3976, allocations: 0.491 MB / 1.061 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.3977, allocations: 12.03 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.664e-05/0.3977, allocations: 12.75 kB / 1.061 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.398, allocations: 222.7 kB / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.398, allocations: 384 / 1.062 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.398, allocations: 8.375 kB / 1.062 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006431/0.3987, allocations: 235.3 kB / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.3987, allocations: 192 / 1.062 GB, free: 2.082 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.3987, allocations: 7.938 kB / 1.062 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/0.3987, allocations: 0 / 1.062 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008571/0.3996, allocations: 279.7 kB / 1.062 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.4007, allocations: 0.5549 MB / 1.063 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004908/0.4012, allocations: 186.5 kB / 1.063 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004794/0.4017, allocations: 196.7 kB / 1.063 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 6.055e-05/0.4018, allocations: 4 kB / 1.063 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.4018, allocations: 30.56 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.913e-06/0.4018, allocations: 0 / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001598/0.4034, allocations: 0.5533 MB / 1.064 GB, free: 212 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.4035, allocations: 55.34 kB / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.4037, allocations: 150.3 kB / 1.064 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.4037, allocations: 29.64 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.4038, allocations: 108.5 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.503e-05/0.4039, allocations: 71.02 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-05/0.404, allocations: 25.7 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4041, allocations: 334.8 kB / 1.064 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004633/0.4046, allocations: 163.8 kB / 1.065 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.405, allocations: 156.5 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009019/0.406, allocations: 359.7 kB / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.406, allocations: 0 / 1.065 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001028/0.407, allocations: 381.2 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/0.407, allocations: 4 kB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/0.4071, allocations: 4 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.162e-05/0.4071, allocations: 3.984 kB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.4074, allocations: 51.95 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.4074, allocations: 3.938 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.4076, allocations: 51.8 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/0.4076, allocations: 8 kB / 1.066 GB, free: 14.23 MB / 0.8262 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.0001885/0.4078, allocations: 136.2 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.34e-05/0.4079, allocations: 11.81 kB / 1.066 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.409, allocations: 431 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.409, allocations: 0 / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.409, allocations: 3.938 kB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.409, allocations: 0 / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003194/0.4093, allocations: 277.7 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4094, allocations: 0 / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.4096, allocations: 51.95 kB / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4096, allocations: 0 / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.4096, allocations: 8 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.4096, allocations: 0 / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.4096, allocations: 3.938 kB / 1.066 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.4108, allocations: 487.9 kB / 1.067 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.048e-05/0.4109, allocations: 92.86 kB / 1.067 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.4109, allocations: 7.984 kB / 1.067 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.4111, allocations: 43.97 kB / 1.067 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.4113, allocations: 15.91 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.4113, allocations: 4 kB / 1.067 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000111/0.4114, allocations: 117.9 kB / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.884e-06/0.4115, allocations: 0 / 1.067 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003417/0.4118, allocations: 39.94 kB / 1.067 GB, free: 12.45 MB / 0.8262 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.0002715/0.4121, allocations: 119.2 kB / 1.067 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001057/0.4132, allocations: 447.4 kB / 1.068 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4132, allocations: 0 / 1.068 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005144/0.4137, allocations: 259.4 kB / 1.068 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.414, allocations: 25.84 kB / 1.068 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007602/0.4148, allocations: 414.5 kB / 1.068 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000388/0.4152, allocations: 0.7393 MB / 1.069 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.991e-05/0.4153, allocations: 11.98 kB / 1.069 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.249e-05/0.4153, allocations: 11.44 kB / 1.069 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of SimCode: time 3.31e-07/0.4153, allocations: 0 / 1.069 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of Templates: time 0.005201/0.4206, allocations: 1.696 MB / 1.071 GB, free: 8.688 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_SortWithIndices.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches