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.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.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_11_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_11_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.001102/0.001102, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008971/0.008971, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.564/1.564, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.992/2.992, allocations: 470.6 MB / 0.7441 GB, free: 8.859 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003594, allocations: 7.656 kB / 0.9123 GB, free: 34.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3428/0.3431, allocations: 161.4 MB / 1.07 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001208/0.3444, allocations: 0.5472 MB / 1.07 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001588/0.346, allocations: 1.03 MB / 1.071 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.483e-05/0.3461, allocations: 4 kB / 1.071 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.3462, allocations: 7.922 kB / 1.071 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.582e-05/0.3463, allocations: 11.86 kB / 1.071 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003878/0.3467, allocations: 75.86 kB / 1.072 GB, free: 9.703 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.3469, allocations: 119.6 kB / 1.072 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.3471, allocations: 49.08 kB / 1.072 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.326e-05/0.3472, allocations: 43.83 kB / 1.072 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.347e-05/0.3473, allocations: 47.77 kB / 1.072 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.3473, allocations: 4 kB / 1.072 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.3474, allocations: 59.89 kB / 1.072 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.919e-05/0.3475, allocations: 31.86 kB / 1.072 GB, free: 9.355 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.225e-05/0.3476, allocations: 81.3 kB / 1.072 GB, free: 9.27 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.3479, allocations: 195.6 kB / 1.072 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3479, allocations: 0 / 1.072 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3479, allocations: 0 / 1.072 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.3479, allocations: 0 / 1.072 GB, free: 9.078 MB / 0.8262 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.000954/0.3489, allocations: 498.9 kB / 1.073 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.3489, allocations: 8.031 kB / 1.073 GB, free: 8.531 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.754e-05/0.349, allocations: 20.73 kB / 1.073 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.3492, allocations: 212 kB / 1.073 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.3493, allocations: 8.312 kB / 1.073 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.489e-05/0.3493, allocations: 8.375 kB / 1.073 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006721/0.35, allocations: 227.4 kB / 1.073 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.35, allocations: 192 / 1.073 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.35, allocations: 11.88 kB / 1.073 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.35, allocations: 0 / 1.073 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008607/0.3509, allocations: 283.7 kB / 1.073 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.352, allocations: 0.551 MB / 1.074 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005318/0.3525, allocations: 194.5 kB / 1.074 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005269/0.3531, allocations: 180.8 kB / 1.074 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 7.483e-05/0.3532, allocations: 8 kB / 1.074 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.3532, allocations: 34.56 kB / 1.074 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/0.3532, allocations: 0 / 1.074 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25): time 0.001718/0.355, allocations: 0.5494 MB / 1.075 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.355, allocations: 63.34 kB / 1.075 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001612/0.3552, allocations: 144.9 kB / 1.075 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.3552, allocations: 33.7 kB / 1.075 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.194e-05/0.3553, allocations: 108.5 kB / 1.075 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.668e-05/0.3554, allocations: 67.08 kB / 1.075 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.33e-05/0.3554, allocations: 25.7 kB / 1.075 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3556, allocations: 330.8 kB / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000453/0.3561, allocations: 159.9 kB / 1.076 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004508/0.3565, allocations: 159.9 kB / 1.076 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008963/0.3574, allocations: 350.6 kB / 1.076 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.103e-06/0.3574, allocations: 3.938 kB / 1.076 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0009803/0.3584, allocations: 390.7 kB / 1.077 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3584, allocations: 4 kB / 1.077 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.3585, allocations: 3.984 kB / 1.077 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.3585, allocations: 4 kB / 1.077 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002521/0.3587, allocations: 47.95 kB / 1.077 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3588, allocations: 3.938 kB / 1.077 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.359, allocations: 55.8 kB / 1.077 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.359, allocations: 8.234 kB / 1.077 GB, free: 4.176 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.000153/0.3592, allocations: 133.8 kB / 1.077 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.3592, allocations: 15.81 kB / 1.077 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.3603, allocations: 423.2 kB / 1.077 GB, free: 3.602 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.3603, allocations: 4 kB / 1.077 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.3603, allocations: 3.938 kB / 1.077 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.3604, allocations: 0 / 1.077 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003217/0.3607, allocations: 273.7 kB / 1.078 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.3607, allocations: 0 / 1.078 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.3609, allocations: 59.94 kB / 1.078 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.361, allocations: 3.938 kB / 1.078 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.361, allocations: 0 / 1.078 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.361, allocations: 0 / 1.078 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.361, allocations: 4.016 kB / 1.078 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.362, allocations: 0.4918 MB / 1.078 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.008e-05/0.3621, allocations: 96.84 kB / 1.078 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.3621, allocations: 0 / 1.078 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.3624, allocations: 47.95 kB / 1.078 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.3624, allocations: 11.92 kB / 1.078 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.3625, allocations: 8 kB / 1.078 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.631e-05/0.3626, allocations: 111.2 kB / 1.078 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3626, allocations: 0 / 1.078 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002953/0.3629, allocations: 40 kB / 1.078 GB, free: 2.379 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.0002411/0.3631, allocations: 123.2 kB / 1.078 GB, free: 2.25 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001078/0.3642, allocations: 435.1 kB / 1.079 GB, free: 1.812 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3642, allocations: 4 kB / 1.079 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005605/0.3648, allocations: 263.3 kB / 1.079 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.3651, allocations: 21.39 kB / 1.079 GB, free: 1.52 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006806/0.3658, allocations: 410.6 kB / 1.08 GB, free: 1.09 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.3662, allocations: 0.7409 MB / 1.08 GB, free: 332 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.656e-05/0.3663, allocations: 11.98 kB / 1.08 GB, free: 320 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.3663, allocations: 11.44 kB / 1.08 GB, free: 308 kB / 0.8262 GB Notification: Performance of SimCode: time 5.91e-07/0.3664, allocations: 0 / 1.08 GB, free: 308 kB / 0.8262 GB Notification: Performance of Templates: time 0.005404/0.3718, allocations: 1.692 MB / 1.082 GB, free: 14.63 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.makefile (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) 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) Reference file matches