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.001156/0.001156, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001447/0.001447, allocations: 169 kB / 24.28 MB, free: 280 kB / 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.991/0.991, allocations: 177.1 MB / 204.6 MB, free: 5.645 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.883/1.883, allocations: 359 MB / 0.6055 GB, free: 10.99 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.523e-06/1.523e-06, allocations: 0 / 0.7871 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.905e-05, allocations: 6.25 kB / 0.7871 GB, free: 12.81 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001304/0.001324, allocations: 0.8298 MB / 0.7879 GB, free: 12 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001033/0.002357, allocations: 1.061 MB / 0.7889 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.456e-05/0.002442, allocations: 1.344 kB / 0.7889 GB, free: 10.92 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.002551, allocations: 11.86 kB / 0.7889 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.093e-05/0.002592, allocations: 24.92 kB / 0.789 GB, free: 10.89 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003642/0.002956, allocations: 99.73 kB / 0.7891 GB, free: 10.79 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001272/0.003084, allocations: 123.6 kB / 0.7892 GB, free: 10.67 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.003207, allocations: 31.08 kB / 0.7892 GB, free: 10.64 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.404e-05/0.003291, allocations: 75.8 kB / 0.7893 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.412e-05/0.003346, allocations: 47.88 kB / 0.7893 GB, free: 10.52 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 3.414e-05/0.00338, allocations: 8 kB / 0.7893 GB, free: 10.51 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.003498, allocations: 92.66 kB / 0.7894 GB, free: 10.42 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 5.553e-05/0.003554, allocations: 47.83 kB / 0.7895 GB, free: 10.38 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/0.003594, allocations: 28.98 kB / 0.7895 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.003818, allocations: 179.3 kB / 0.7897 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.003821, allocations: 0 / 0.7897 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.305e-06/0.003823, allocations: 5.406 kB / 0.7897 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.003828, allocations: 0 / 0.7897 GB, free: 10.17 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.0005179/0.004346, allocations: 497.3 kB / 0.7901 GB, free: 9.645 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.004385, allocations: 12.03 kB / 0.7902 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.579e-05/0.004441, allocations: 20.8 kB / 0.7902 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001534/0.004594, allocations: 162.8 kB / 0.7903 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.004604, allocations: 384 / 0.7903 GB, free: 9.43 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.004619, allocations: 14 kB / 0.7903 GB, free: 9.418 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002215/0.004841, allocations: 118.9 kB / 0.7905 GB, free: 9.293 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.004848, allocations: 6.75 kB / 0.7905 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.004861, allocations: 8.375 kB / 0.7905 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.004869, allocations: 384 / 0.7905 GB, free: 9.281 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.364e-05/0.004943, allocations: 35.92 kB / 0.7905 GB, free: 9.246 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004767/0.005419, allocations: 427.9 kB / 0.7909 GB, free: 8.793 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.23e-05/0.005492, allocations: 47.06 kB / 0.791 GB, free: 8.734 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.094e-05/0.005543, allocations: 33.34 kB / 0.791 GB, free: 8.699 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.264e-05/0.005585, allocations: 11.97 kB / 0.791 GB, free: 8.688 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/0.005606, allocations: 37.39 kB / 0.791 GB, free: 8.641 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=25): time 1.232e-06/0.005607, allocations: 0 / 0.791 GB, free: 8.641 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25): time 0.0002553/0.005862, allocations: 161.6 kB / 0.7912 GB, free: 8.48 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.00589, allocations: 55.41 kB / 0.7912 GB, free: 8.414 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.877e-05/0.005989, allocations: 216.3 kB / 0.7915 GB, free: 8.188 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.006001, allocations: 25.7 kB / 0.7915 GB, free: 8.156 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.445e-05/0.006055, allocations: 155.2 kB / 0.7916 GB, free: 8 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.701e-05/0.006102, allocations: 71.89 kB / 0.7917 GB, free: 7.93 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.006149, allocations: 44.39 kB / 0.7917 GB, free: 7.879 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.006268, allocations: 0.5 MB / 0.7922 GB, free: 7.367 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.401e-05/0.006312, allocations: 20 kB / 0.7922 GB, free: 7.348 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.064e-05/0.006353, allocations: 26.02 kB / 0.7923 GB, free: 7.324 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.885e-05/0.006442, allocations: 79.33 kB / 0.7923 GB, free: 7.246 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.006444, allocations: 0 / 0.7923 GB, free: 7.246 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001389/0.006583, allocations: 125.6 kB / 0.7925 GB, free: 7.117 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.006595, allocations: 4 kB / 0.7925 GB, free: 7.113 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.006607, allocations: 4 kB / 0.7925 GB, free: 7.109 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.006618, allocations: 4.5 kB / 0.7925 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.78e-05/0.006706, allocations: 20.52 kB / 0.7925 GB, free: 7.086 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.006712, allocations: 4.703 kB / 0.7925 GB, free: 7.082 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.125e-05/0.006763, allocations: 24.41 kB / 0.7925 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.006781, allocations: 5.5 kB / 0.7925 GB, free: 7.055 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.393e-05/0.006865, allocations: 166.6 kB / 0.7927 GB, free: 6.883 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.323e-05/0.006888, allocations: 20.44 kB / 0.7927 GB, free: 6.863 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.007086, allocations: 157.2 kB / 0.7929 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.007088, allocations: 0 / 0.7929 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.007091, allocations: 0 / 0.7929 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.007094, allocations: 0 / 0.7929 GB, free: 6.707 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.007241, allocations: 181.6 kB / 0.793 GB, free: 6.496 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.007245, allocations: 0 / 0.793 GB, free: 6.496 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.882e-05/0.007304, allocations: 21.36 kB / 0.793 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.007306, allocations: 0 / 0.793 GB, free: 6.477 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.007315, allocations: 4 kB / 0.7931 GB, free: 6.473 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.007317, allocations: 3.984 kB / 0.7931 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.007319, allocations: 0.9062 kB / 0.7931 GB, free: 6.469 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.007511, allocations: 287.8 kB / 0.7933 GB, free: 6.172 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.623e-05/0.007527, allocations: 31.78 kB / 0.7934 GB, free: 6.141 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.007541, allocations: 0.8438 kB / 0.7934 GB, free: 6.141 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.191e-05/0.007603, allocations: 21.33 kB / 0.7934 GB, free: 6.121 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/0.00766, allocations: 11.98 kB / 0.7934 GB, free: 6.109 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-06/0.007669, allocations: 3.984 kB / 0.7934 GB, free: 6.105 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.664e-05/0.007725, allocations: 147.2 kB / 0.7935 GB, free: 5.961 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.007725, allocations: 4.562 kB / 0.7935 GB, free: 5.957 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001815/0.007907, allocations: 36.56 kB / 0.7936 GB, free: 5.922 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.0001389/0.008046, allocations: 129 kB / 0.7937 GB, free: 5.785 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001944/0.00824, allocations: 155.4 kB / 0.7939 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.008242, allocations: 0.875 kB / 0.7939 GB, free: 5.617 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.953e-05/0.008331, allocations: 123.1 kB / 0.794 GB, free: 5.48 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002196/0.008551, allocations: 37.5 kB / 0.794 GB, free: 5.449 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003842/0.008935, allocations: 293.4 kB / 0.7943 GB, free: 5.133 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.749e-05/0.008982, allocations: 79.33 kB / 0.7944 GB, free: 5.035 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.222e-05/0.009025, allocations: 22.31 kB / 0.7944 GB, free: 5.016 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.446e-05/0.009059, allocations: 24.44 kB / 0.7944 GB, free: 4.992 MB / 0.7448 GB Notification: Performance of SimCode: time 5.71e-07/0.00906, allocations: 0 / 0.7944 GB, free: 4.992 MB / 0.7448 GB Notification: Performance of Templates: time 0.003778/0.01284, allocations: 2.184 MB / 0.7965 GB, free: 2.871 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: 5.236206312198192]