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.0009275/0.0009275, allocations: 87.58 kB / 20.45 MB, free: 4.121 MB / 18.57 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.0009996/0.0009996, allocations: 161.4 kB / 23.82 MB, free: 0.7539 MB / 18.57 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 0.9906/0.9906, allocations: 177.1 MB / 204.2 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] 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 1.728/1.728, allocations: 359 MB / 0.6052 GB, free: 11.02 MB / 0.573 GB " [Timeout remaining time 178] 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.[0-9,]+.|sorAsc.y.[0-9,]+.|sorDes.y.[0-9,]+.|sorAsc.yIdx.[0-9,]+.|sorDes.yIdx.[0-9,]+.",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.[0-9,]+.|sorAsc.y.[0-9,]+.|sorDes.y.[0-9,]+.|sorAsc.yIdx.[0-9,]+.|sorDes.yIdx.[0-9,]+.",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 0.7871 GB, free: 12.51 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.808e-05/3.002e-05, allocations: 6.312 kB / 0.7871 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001976/0.002006, allocations: 0.8414 MB / 0.7879 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.00144/0.003446, allocations: 1.061 MB / 0.7889 GB, free: 10.61 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.36e-05/0.00351, allocations: 5.062 kB / 0.7889 GB, free: 10.6 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.00363, allocations: 11.86 kB / 0.789 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 6.368e-05/0.003694, allocations: 29.3 kB / 0.789 GB, free: 10.56 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.00415, allocations: 91.81 kB / 0.7891 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001554/0.004306, allocations: 124.6 kB / 0.7892 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.004455, allocations: 33.28 kB / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.004566, allocations: 71.86 kB / 0.7893 GB, free: 10.25 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 7.624e-05/0.004642, allocations: 48.5 kB / 0.7893 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.004668, allocations: 8 kB / 0.7893 GB, free: 10.2 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001529/0.004821, allocations: 92.41 kB / 0.7894 GB, free: 10.11 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.553e-05/0.004877, allocations: 41 kB / 0.7895 GB, free: 10.07 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 5.616e-05/0.004933, allocations: 39.84 kB / 0.7895 GB, free: 10.03 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.005197, allocations: 175.4 kB / 0.7897 GB, free: 9.855 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.0052, allocations: 6.125 kB / 0.7897 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.82e-07/0.0052, allocations: 0 / 0.7897 GB, free: 9.852 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.518e-06/0.005205, allocations: 0 / 0.7897 GB, free: 9.852 MB / 0.7448 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.0006396/0.005844, allocations: 495.8 kB / 0.7902 GB, free: 9.328 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.005889, allocations: 10.06 kB / 0.7902 GB, free: 9.32 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.86e-05/0.005957, allocations: 28.8 kB / 0.7902 GB, free: 9.293 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.006144, allocations: 146.4 kB / 0.7903 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.006158, allocations: 8.375 kB / 0.7903 GB, free: 9.117 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.006176, allocations: 4.375 kB / 0.7903 GB, free: 9.113 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003153/0.006491, allocations: 128.4 kB / 0.7905 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.006501, allocations: 192 / 0.7905 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.006517, allocations: 384 / 0.7905 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.00653, allocations: 4.375 kB / 0.7905 GB, free: 8.977 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001036/0.006634, allocations: 41.23 kB / 0.7905 GB, free: 8.938 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005681/0.007202, allocations: 425 kB / 0.7909 GB, free: 8.488 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.712e-05/0.007279, allocations: 51 kB / 0.791 GB, free: 8.426 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.143e-05/0.00733, allocations: 36.98 kB / 0.791 GB, free: 8.387 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/0.007376, allocations: 4 kB / 0.791 GB, free: 8.383 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.007398, allocations: 38.45 kB / 0.791 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=25): time 1.853e-06/0.0074, allocations: 0 / 0.791 GB, free: 8.336 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25): time 0.000256/0.007656, allocations: 170 kB / 0.7912 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.832e-05/0.007685, allocations: 51.41 kB / 0.7913 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.00779, allocations: 208.1 kB / 0.7915 GB, free: 7.887 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.007833, allocations: 29.7 kB / 0.7915 GB, free: 7.852 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 9.944e-05/0.007933, allocations: 159.2 kB / 0.7916 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 8.221e-05/0.008015, allocations: 71.45 kB / 0.7917 GB, free: 7.621 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.561e-05/0.008101, allocations: 41.95 kB / 0.7917 GB, free: 7.574 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.00828, allocations: 0.5078 MB / 0.7922 GB, free: 7.055 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.921e-05/0.00837, allocations: 20 kB / 0.7923 GB, free: 7.035 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.679e-05/0.008436, allocations: 23.98 kB / 0.7923 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.008593, allocations: 77.36 kB / 0.7924 GB, free: 6.934 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.008598, allocations: 4 kB / 0.7924 GB, free: 6.93 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002596/0.008857, allocations: 124.2 kB / 0.7925 GB, free: 6.805 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.008877, allocations: 4 kB / 0.7925 GB, free: 6.801 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.062e-05/0.008897, allocations: 0.5312 kB / 0.7925 GB, free: 6.801 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.008917, allocations: 4 kB / 0.7925 GB, free: 6.797 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.009048, allocations: 25.62 kB / 0.7925 GB, free: 6.773 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.009054, allocations: 0 / 0.7925 GB, free: 6.773 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.306e-05/0.009107, allocations: 27.88 kB / 0.7925 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.009126, allocations: 0.6562 kB / 0.7925 GB, free: 6.746 MB / 0.7448 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 8.67e-05/0.009213, allocations: 171.3 kB / 0.7927 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/0.009234, allocations: 13.06 kB / 0.7927 GB, free: 6.559 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001953/0.009429, allocations: 166.7 kB / 0.7929 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.009431, allocations: 0 / 0.7929 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.009436, allocations: 0.8438 kB / 0.7929 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.009439, allocations: 0 / 0.7929 GB, free: 6.391 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.009581, allocations: 185.2 kB / 0.793 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.009585, allocations: 0 / 0.793 GB, free: 6.176 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.634e-05/0.009641, allocations: 21.27 kB / 0.7931 GB, free: 6.156 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.009643, allocations: 0 / 0.7931 GB, free: 6.156 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.009652, allocations: 3.984 kB / 0.7931 GB, free: 6.152 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.009654, allocations: 4.844 kB / 0.7931 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.009655, allocations: 0 / 0.7931 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001845/0.00984, allocations: 285.4 kB / 0.7933 GB, free: 5.852 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.425e-05/0.009854, allocations: 24.78 kB / 0.7934 GB, free: 5.828 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.009868, allocations: 4 kB / 0.7934 GB, free: 5.824 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.09e-05/0.009929, allocations: 13.42 kB / 0.7934 GB, free: 5.812 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.487e-05/0.009984, allocations: 15.98 kB / 0.7934 GB, free: 5.797 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.009993, allocations: 7.984 kB / 0.7934 GB, free: 5.789 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.578e-05/0.01005, allocations: 147.7 kB / 0.7936 GB, free: 5.648 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.01005, allocations: 0 / 0.7936 GB, free: 5.648 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001771/0.01023, allocations: 43.94 kB / 0.7936 GB, free: 5.605 MB / 0.7448 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.0001483/0.01037, allocations: 126.2 kB / 0.7937 GB, free: 5.473 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001948/0.01057, allocations: 159 kB / 0.7939 GB, free: 5.301 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01057, allocations: 0 / 0.7939 GB, free: 5.301 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.846e-05/0.01066, allocations: 118.3 kB / 0.794 GB, free: 5.172 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.01088, allocations: 34.8 kB / 0.794 GB, free: 5.141 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003981/0.01128, allocations: 295.9 kB / 0.7943 GB, free: 4.824 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.93e-05/0.01132, allocations: 84.38 kB / 0.7944 GB, free: 4.723 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.184e-05/0.01137, allocations: 17.11 kB / 0.7944 GB, free: 4.707 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.0114, allocations: 15.31 kB / 0.7944 GB, free: 4.695 MB / 0.7448 GB Notification: Performance of SimCode: time 5.81e-07/0.0114, allocations: 0 / 0.7944 GB, free: 4.695 MB / 0.7448 GB Notification: Performance of Templates: time 0.004274/0.01567, allocations: 2.379 MB / 0.7967 GB, free: 2.367 MB / 0.7448 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.982209927402437]