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.0009745/0.0009745, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.0009826/0.0009826, allocations: 165 kB / 23.82 MB, free: 0.7422 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.9745/0.9745, allocations: 177.1 MB / 204.2 MB, free: 5.637 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.841/1.841, allocations: 359 MB / 0.6052 GB, free: 11.01 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.332e-06/1.332e-06, allocations: 0.9844 kB / 0.7871 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.639e-05/2.772e-05, allocations: 9.344 kB / 0.7871 GB, free: 12.47 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.001567/0.001595, allocations: 0.8348 MB / 0.7879 GB, free: 11.66 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001075/0.00267, allocations: 1.061 MB / 0.7889 GB, free: 10.58 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.43e-05/0.002724, allocations: 4 kB / 0.7889 GB, free: 10.58 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.002826, allocations: 13.08 kB / 0.789 GB, free: 10.57 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.061e-05/0.002867, allocations: 24.36 kB / 0.789 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.00325, allocations: 97.22 kB / 0.7891 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.00337, allocations: 127.5 kB / 0.7892 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.003502, allocations: 29.3 kB / 0.7892 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.342e-05/0.003585, allocations: 71.86 kB / 0.7893 GB, free: 10.23 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.394e-05/0.003639, allocations: 48.72 kB / 0.7893 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.003661, allocations: 8 kB / 0.7893 GB, free: 10.17 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.00378, allocations: 84.47 kB / 0.7894 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 4.808e-05/0.003828, allocations: 47.84 kB / 0.7895 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 3.805e-05/0.003866, allocations: 36.48 kB / 0.7895 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.004072, allocations: 179.3 kB / 0.7897 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.004075, allocations: 0.9062 kB / 0.7897 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.062e-06/0.004076, allocations: 0 / 0.7897 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.004081, allocations: 0.6562 kB / 0.7897 GB, free: 9.832 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.0007525/0.004833, allocations: 497.4 kB / 0.7902 GB, free: 9.309 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.00487, allocations: 12.03 kB / 0.7902 GB, free: 9.297 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.565e-05/0.004916, allocations: 24.8 kB / 0.7902 GB, free: 9.273 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.005056, allocations: 155 kB / 0.7903 GB, free: 9.098 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.005066, allocations: 8.375 kB / 0.7903 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.00508, allocations: 7.812 kB / 0.7903 GB, free: 9.086 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.005297, allocations: 124.8 kB / 0.7905 GB, free: 8.957 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.005306, allocations: 192 / 0.7905 GB, free: 8.957 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.005317, allocations: 4.375 kB / 0.7905 GB, free: 8.953 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.005325, allocations: 4.375 kB / 0.7905 GB, free: 8.949 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.311e-05/0.005398, allocations: 31.92 kB / 0.7905 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004516/0.005849, allocations: 428 kB / 0.7909 GB, free: 8.465 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.028e-05/0.00592, allocations: 56.64 kB / 0.791 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.679e-05/0.005967, allocations: 31.69 kB / 0.791 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.561e-05/0.006012, allocations: 8 kB / 0.791 GB, free: 8.355 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.006031, allocations: 37.38 kB / 0.791 GB, free: 8.309 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=25): time 8.61e-07/0.006031, allocations: 1.375 kB / 0.791 GB, free: 8.309 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25): time 0.0002495/0.006281, allocations: 164.1 kB / 0.7912 GB, free: 8.145 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.435e-05/0.006305, allocations: 51.41 kB / 0.7912 GB, free: 8.082 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.006407, allocations: 213.4 kB / 0.7915 GB, free: 7.859 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.006418, allocations: 25.7 kB / 0.7915 GB, free: 7.828 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.459e-05/0.006472, allocations: 159.2 kB / 0.7916 GB, free: 7.668 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 4.423e-05/0.006516, allocations: 72.11 kB / 0.7917 GB, free: 7.598 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.006563, allocations: 43.3 kB / 0.7917 GB, free: 7.547 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.006675, allocations: 0.5085 MB / 0.7922 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.248e-05/0.006717, allocations: 16 kB / 0.7923 GB, free: 7.012 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.709e-05/0.006754, allocations: 25.28 kB / 0.7923 GB, free: 6.988 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.908e-05/0.006843, allocations: 77.36 kB / 0.7923 GB, free: 6.91 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.006845, allocations: 0 / 0.7923 GB, free: 6.91 MB / 0.7448 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001393/0.006984, allocations: 128.3 kB / 0.7925 GB, free: 6.781 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.006997, allocations: 7.984 kB / 0.7925 GB, free: 6.773 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.007011, allocations: 5.344 kB / 0.7925 GB, free: 6.77 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.007026, allocations: 3.938 kB / 0.7925 GB, free: 6.766 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.564e-05/0.007121, allocations: 19.98 kB / 0.7925 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.007126, allocations: 0.5625 kB / 0.7925 GB, free: 6.746 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.117e-05/0.007178, allocations: 24.44 kB / 0.7925 GB, free: 6.723 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.878e-05/0.007196, allocations: 5.219 kB / 0.7925 GB, free: 6.719 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.926e-05/0.007286, allocations: 169.2 kB / 0.7927 GB, free: 6.543 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.007309, allocations: 15.91 kB / 0.7927 GB, free: 6.527 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001941/0.007503, allocations: 160.1 kB / 0.7929 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.007505, allocations: 0 / 0.7929 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.007508, allocations: 3.938 kB / 0.7929 GB, free: 6.363 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.007511, allocations: 0 / 0.7929 GB, free: 6.363 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.007645, allocations: 181.7 kB / 0.793 GB, free: 6.152 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.007649, allocations: 3.984 kB / 0.793 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.044e-05/0.00771, allocations: 20.52 kB / 0.7931 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.007712, allocations: 0.5312 kB / 0.7931 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.078e-06/0.007721, allocations: 4 kB / 0.7931 GB, free: 6.125 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.007723, allocations: 0.875 kB / 0.7931 GB, free: 6.125 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.007723, allocations: 0 / 0.7931 GB, free: 6.125 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.007904, allocations: 286 kB / 0.7933 GB, free: 5.828 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.235e-05/0.007917, allocations: 19.8 kB / 0.7934 GB, free: 5.809 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.007929, allocations: 4.531 kB / 0.7934 GB, free: 5.805 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.276e-05/0.007992, allocations: 16.8 kB / 0.7934 GB, free: 5.789 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.549e-05/0.008048, allocations: 19.91 kB / 0.7934 GB, free: 5.77 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.008055, allocations: 4.938 kB / 0.7934 GB, free: 5.766 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.106e-05/0.008107, allocations: 147.2 kB / 0.7935 GB, free: 5.621 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.008107, allocations: 0 / 0.7935 GB, free: 5.621 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001894/0.008296, allocations: 45.16 kB / 0.7936 GB, free: 5.578 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.0001316/0.008428, allocations: 124.1 kB / 0.7937 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001787/0.008606, allocations: 157.2 kB / 0.7939 GB, free: 5.281 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.008608, allocations: 0 / 0.7939 GB, free: 5.281 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 8.295e-05/0.008691, allocations: 123 kB / 0.794 GB, free: 5.145 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.008912, allocations: 36.67 kB / 0.794 GB, free: 5.109 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003841/0.009296, allocations: 294.5 kB / 0.7943 GB, free: 4.793 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.55e-05/0.009341, allocations: 78.78 kB / 0.7944 GB, free: 4.699 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 4.48e-05/0.009386, allocations: 20.91 kB / 0.7944 GB, free: 4.68 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.009421, allocations: 16.5 kB / 0.7944 GB, free: 4.664 MB / 0.7448 GB Notification: Performance of SimCode: time 6.61e-07/0.009422, allocations: 0.5 kB / 0.7944 GB, free: 4.664 MB / 0.7448 GB Notification: Performance of Templates: time 0.003769/0.01319, allocations: 2.198 MB / 0.7965 GB, free: 2.531 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.36208134284243]