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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",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.001517/0.001521, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 199.1 kB / 16.79 MB, free: 6.809 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.365/1.365, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.704/2.704, allocations: 461.8 MB / 0.7348 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 70.3 kB / 0.8991 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2622, allocations: 157.4 MB / 1.053 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices): time 0.002192/0.2644, allocations: 0.91 MB / 1.054 GB, free: 7.434 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.2657, allocations: 1.026 MB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.664e-05/0.2658, allocations: 0 / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.2659, allocations: 7.938 kB / 1.055 GB, free: 6.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.499e-05/0.266, allocations: 19.84 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.2663, allocations: 71.86 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.2665, allocations: 115.6 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.2666, allocations: 57.08 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.111e-05/0.2667, allocations: 39.84 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.42e-05/0.2668, allocations: 59.75 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.2668, allocations: 12 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.267, allocations: 59.89 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.329e-05/0.267, allocations: 39.84 kB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.542e-05/0.2671, allocations: 59.59 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001865/0.2673, allocations: 147.9 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.2673, allocations: 0 / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2673, allocations: 0 / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.987e-06/0.2673, allocations: 0 / 1.055 GB, free: 5.719 MB / 0.8106 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.0008332/0.2681, allocations: 498.7 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2682, allocations: 8.031 kB / 1.056 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.668e-05/0.2682, allocations: 16.75 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.2684, allocations: 207.8 kB / 1.056 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/0.2685, allocations: 8.375 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.2685, allocations: 4.375 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005422/0.269, allocations: 206.1 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.269, allocations: 192 / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.2691, allocations: 11.94 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.76e-06/0.2691, allocations: 0 / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007325/0.2698, allocations: 223.7 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009206/0.2707, allocations: 0.5237 MB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/0.2712, allocations: 174.4 kB / 1.057 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003949/0.2716, allocations: 152.7 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.046e-05/0.2717, allocations: 4 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.2717, allocations: 34.56 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=25): time 1.503e-06/0.2717, allocations: 4 kB / 1.057 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25): time 0.001376/0.2731, allocations: 478.8 kB / 1.058 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/0.2731, allocations: 59.28 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.2733, allocations: 157.6 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.2733, allocations: 25.7 kB / 1.058 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.804e-05/0.2734, allocations: 108.5 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.028e-05/0.2734, allocations: 67.08 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.826e-05/0.2735, allocations: 41.64 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.2736, allocations: 322.8 kB / 1.059 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003934/0.274, allocations: 135.9 kB / 1.059 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.2744, allocations: 141.2 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007642/0.2752, allocations: 301 kB / 1.059 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2752, allocations: 0 / 1.059 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008346/0.276, allocations: 329.2 kB / 1.059 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.276, allocations: 8 kB / 1.059 GB, free: 1.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.2761, allocations: 7.969 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.2761, allocations: 0 / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.2763, allocations: 35.95 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.2763, allocations: 3.938 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001838/0.2765, allocations: 39.8 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.2766, allocations: 4 kB / 1.059 GB, free: 1.238 MB / 0.8106 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.0001425/0.2767, allocations: 139 kB / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.922e-05/0.2767, allocations: 11.81 kB / 1.06 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009253/0.2777, allocations: 370.3 kB / 1.06 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2777, allocations: 4 kB / 1.06 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.2777, allocations: 3.938 kB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2777, allocations: 0 / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.278, allocations: 273.7 kB / 1.06 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.278, allocations: 0 / 1.06 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001998/0.2782, allocations: 35.95 kB / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2782, allocations: 0 / 1.06 GB, free: 364 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.2782, allocations: 4 kB / 1.06 GB, free: 360 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2782, allocations: 4 kB / 1.06 GB, free: 356 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.2782, allocations: 7.938 kB / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008734/0.2791, allocations: 434.8 kB / 1.061 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.291e-05/0.2792, allocations: 96.84 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.2792, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.2794, allocations: 27.95 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.751e-05/0.2795, allocations: 15.92 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.2795, allocations: 4 kB / 1.061 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.289e-05/0.2796, allocations: 117.9 kB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2796, allocations: 4 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003124/0.2799, allocations: 36 kB / 1.061 GB, free: 15.59 MB / 0.8262 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.000212/0.2801, allocations: 127.2 kB / 1.061 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008907/0.281, allocations: 379.1 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.281, allocations: 3.938 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000455/0.2815, allocations: 243.2 kB / 1.062 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.2818, allocations: 12.7 kB / 1.062 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006135/0.2825, allocations: 442.8 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.2828, allocations: 0.7315 MB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.432e-05/0.2828, allocations: 15.44 kB / 1.063 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.2828, allocations: 0 / 1.063 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of Templates: time 0.003785/0.2866, allocations: 2.054 MB / 1.065 GB, free: 11.52 MB / 0.8262 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 -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.SortWithIndices.pipe 2>&1)