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.008882/0.008882, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.002005/0.002005, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.796/2.796, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001326, allocations: 67.89 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3562, allocations: 157.4 MB / 1.208 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.002028/0.3583, allocations: 0.8396 MB / 1.209 GB, free: 8.816 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.3595, allocations: 1.01 MB / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.581e-05/0.3595, allocations: 0 / 1.21 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.3597, allocations: 15.86 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.711e-05/0.3597, allocations: 15.81 kB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004015/0.3601, allocations: 103.7 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001427/0.3603, allocations: 123.7 kB / 1.21 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.3605, allocations: 61.08 kB / 1.21 GB, free: 7.48 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.094e-05/0.3605, allocations: 55.77 kB / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.695e-05/0.3606, allocations: 55.77 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.3607, allocations: 12 kB / 1.21 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.3608, allocations: 87.91 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.3609, allocations: 39.84 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.043e-05/0.3609, allocations: 59.61 kB / 1.21 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002662/0.3612, allocations: 215.2 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3612, allocations: 4 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.835e-06/0.3612, allocations: 0 / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.482e-06/0.3612, allocations: 7.938 kB / 1.21 GB, free: 6.953 MB / 0.9669 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.0007775/0.362, allocations: 494.7 kB / 1.211 GB, free: 6.418 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3621, allocations: 8.625 kB / 1.211 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.532e-05/0.3621, allocations: 20.66 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.3623, allocations: 211.8 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.3623, allocations: 8.375 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.3624, allocations: 4.375 kB / 1.211 GB, free: 6.133 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005082/0.3629, allocations: 206.7 kB / 1.211 GB, free: 5.926 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.3629, allocations: 4.125 kB / 1.211 GB, free: 5.922 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.3629, allocations: 11.94 kB / 1.211 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.3629, allocations: 4 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006364/0.3636, allocations: 213.5 kB / 1.211 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008665/0.3645, allocations: 0.5275 MB / 1.212 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.3648, allocations: 170.5 kB / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003666/0.3652, allocations: 152.7 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 5.429e-05/0.3653, allocations: 11.94 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.3653, allocations: 38.56 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 1.984e-06/0.3653, allocations: 0 / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.001179/0.3665, allocations: 473.3 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.3665, allocations: 59.34 kB / 1.213 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.3667, allocations: 153.2 kB / 1.213 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.3667, allocations: 25.7 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.799e-05/0.3668, allocations: 112.5 kB / 1.213 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.88e-05/0.3668, allocations: 71.08 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.923e-05/0.3669, allocations: 33.7 kB / 1.213 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001105/0.367, allocations: 326.8 kB / 1.214 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/0.3673, allocations: 131.9 kB / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003318/0.3677, allocations: 135.8 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006581/0.3683, allocations: 298.7 kB / 1.214 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3684, allocations: 0 / 1.214 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007257/0.3691, allocations: 333.2 kB / 1.214 GB, free: 2.566 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.3691, allocations: 4 kB / 1.214 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.871e-05/0.3692, allocations: 3.938 kB / 1.214 GB, free: 2.559 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.3692, allocations: 4 kB / 1.214 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002051/0.3694, allocations: 31.95 kB / 1.214 GB, free: 2.523 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.3694, allocations: 7.938 kB / 1.214 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.3696, allocations: 43.73 kB / 1.214 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.3696, allocations: 4 kB / 1.214 GB, free: 2.469 MB / 0.9669 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.0001314/0.3697, allocations: 139.2 kB / 1.215 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.735e-05/0.3698, allocations: 19.81 kB / 1.215 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008329/0.3706, allocations: 358.5 kB / 1.215 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3706, allocations: 0 / 1.215 GB, free: 1.949 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3706, allocations: 7.938 kB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3707, allocations: 0 / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002553/0.3709, allocations: 269.4 kB / 1.215 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.3709, allocations: 4 kB / 1.215 GB, free: 1.625 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.3711, allocations: 39.89 kB / 1.215 GB, free: 1.586 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.3711, allocations: 4 kB / 1.215 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.3711, allocations: 0 / 1.215 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.3711, allocations: 0 / 1.215 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.3712, allocations: 7.875 kB / 1.215 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007863/0.3719, allocations: 439.1 kB / 1.216 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.223e-05/0.372, allocations: 92.86 kB / 1.216 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.372, allocations: 4 kB / 1.216 GB, free: 1.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.3722, allocations: 31.95 kB / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.405e-05/0.3723, allocations: 15.92 kB / 1.216 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.3723, allocations: 0 / 1.216 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 9.782e-05/0.3724, allocations: 111.2 kB / 1.216 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3724, allocations: 0 / 1.216 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002841/0.3727, allocations: 47.91 kB / 1.216 GB, free: 0.8125 MB / 0.9669 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.0002077/0.3729, allocations: 123.2 kB / 1.216 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008727/0.3738, allocations: 379.2 kB / 1.216 GB, free: 308 kB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3738, allocations: 0 / 1.216 GB, free: 308 kB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004366/0.3743, allocations: 239.2 kB / 1.217 GB, free: 56 kB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.3746, allocations: 27.11 kB / 1.217 GB, free: 32 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006427/0.3752, allocations: 339.5 kB / 1.217 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.3756, allocations: 0.7275 MB / 1.218 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.652e-05/0.3756, allocations: 27.89 kB / 1.218 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4e-05/0.3757, allocations: 15.44 kB / 1.218 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.3757, allocations: 0 / 1.218 GB, free: 14.87 MB / 0.9825 GB Notification: Performance of Templates: time 0.005126/0.3808, allocations: 2.057 MB / 1.22 GB, free: 12.84 MB / 0.9825 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