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.00561/0.00561, allocations: 99.41 kB / 15.73 MB, free: 6.039 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.001268/0.001268, allocations: 196 kB / 16.67 MB, free: 5.961 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.788/2.788, allocations: 469.8 MB / 0.7425 GB, free: 7.383 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 67.89 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3399, allocations: 159.1 MB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.002036/0.3419, allocations: 0.837 MB / 1.221 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001711/0.3436, allocations: 1.018 MB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.233e-05/0.3437, allocations: 0 / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.3438, allocations: 15.75 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.919e-05/0.3439, allocations: 23.8 kB / 1.222 GB, free: 11.94 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004815/0.3444, allocations: 95.81 kB / 1.223 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.3445, allocations: 123.6 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.3448, allocations: 49.06 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.3449, allocations: 51.84 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.345, allocations: 59.75 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.345, allocations: 8 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.3452, allocations: 95.84 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.89e-05/0.3453, allocations: 43.84 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.992e-05/0.3453, allocations: 59.61 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000336/0.3457, allocations: 211 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3457, allocations: 0 / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.013e-06/0.3457, allocations: 0 / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.3457, allocations: 3.938 kB / 1.223 GB, free: 11.16 MB / 0.9825 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.0009758/0.3467, allocations: 0.4946 MB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.3467, allocations: 8.031 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.653e-05/0.3468, allocations: 20.8 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.347, allocations: 212.1 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.347, allocations: 4.375 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.3471, allocations: 8.375 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.3476, allocations: 203.8 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.3476, allocations: 192 / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.3476, allocations: 3.938 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.3477, allocations: 7.938 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006633/0.3483, allocations: 227.7 kB / 1.224 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009266/0.3492, allocations: 0.5237 MB / 1.225 GB, free: 9.312 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003942/0.3496, allocations: 154.4 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003786/0.35, allocations: 136.8 kB / 1.225 GB, free: 9.016 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.08e-05/0.3501, allocations: 4 kB / 1.225 GB, free: 9.012 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.3501, allocations: 42.55 kB / 1.225 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=25): time 1.263e-06/0.3501, allocations: 0 / 1.225 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25): time 0.001341/0.3515, allocations: 471 kB / 1.226 GB, free: 8.496 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.3515, allocations: 63.34 kB / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.3517, allocations: 152 kB / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.3517, allocations: 25.7 kB / 1.226 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.311e-05/0.3517, allocations: 112.6 kB / 1.226 GB, free: 8.117 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.561e-05/0.3518, allocations: 75.44 kB / 1.226 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.065e-05/0.3519, allocations: 33.7 kB / 1.226 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.352, allocations: 322.8 kB / 1.226 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/0.3524, allocations: 144 kB / 1.227 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003534/0.3527, allocations: 141.9 kB / 1.227 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006773/0.3534, allocations: 290.2 kB / 1.227 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3534, allocations: 0 / 1.227 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007947/0.3542, allocations: 341.2 kB / 1.227 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3542, allocations: 4 kB / 1.227 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.3542, allocations: 0 / 1.227 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3543, allocations: 4 kB / 1.227 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000218/0.3545, allocations: 35.95 kB / 1.227 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3545, allocations: 3.938 kB / 1.227 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.3546, allocations: 39.84 kB / 1.227 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.337e-05/0.3547, allocations: 0 / 1.227 GB, free: 6.691 MB / 0.9825 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.0001356/0.3548, allocations: 147.7 kB / 1.227 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.75e-05/0.3548, allocations: 19.89 kB / 1.228 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008866/0.3557, allocations: 358.5 kB / 1.228 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.3557, allocations: 0 / 1.228 GB, free: 6.168 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3557, allocations: 3.938 kB / 1.228 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.3557, allocations: 7.984 kB / 1.228 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002825/0.356, allocations: 261.5 kB / 1.228 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.356, allocations: 0 / 1.228 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001978/0.3562, allocations: 31.95 kB / 1.228 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.3562, allocations: 7.984 kB / 1.228 GB, free: 5.812 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/0.3562, allocations: 8 kB / 1.228 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3563, allocations: 0 / 1.228 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3563, allocations: 3.938 kB / 1.228 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008609/0.3571, allocations: 439.1 kB / 1.229 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.3572, allocations: 92.95 kB / 1.229 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.3572, allocations: 4 kB / 1.229 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.3574, allocations: 27.95 kB / 1.229 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.657e-05/0.3575, allocations: 19.91 kB / 1.229 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.3575, allocations: 8 kB / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 6.684e-05/0.3575, allocations: 114.3 kB / 1.229 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3575, allocations: 0 / 1.229 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002942/0.3578, allocations: 43.89 kB / 1.229 GB, free: 5.035 MB / 0.9825 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.0002213/0.3581, allocations: 127.2 kB / 1.229 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008747/0.3589, allocations: 367 kB / 1.229 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3589, allocations: 3.938 kB / 1.229 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.00044/0.3594, allocations: 219.3 kB / 1.23 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.3597, allocations: 27.92 kB / 1.23 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000634/0.3604, allocations: 347.9 kB / 1.23 GB, free: 3.902 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.3607, allocations: 0.7353 MB / 1.231 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.448e-05/0.3608, allocations: 11.98 kB / 1.231 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.712e-05/0.3608, allocations: 11.44 kB / 1.231 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of SimCode: time 3.81e-07/0.3608, allocations: 0 / 1.231 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of Templates: time 0.005025/0.3658, allocations: 2.068 MB / 1.233 GB, free: 1.07 MB / 0.9825 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=480 -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