Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.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.LastTrueIndex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006424/0.006424, allocations: 101.4 kB / 15.88 MB, free: 5.863 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.001518/0.001518, allocations: 190.9 kB / 16.79 MB, free: 5.805 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.381/1.381, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.692/2.692, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 67.12 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2768, allocations: 157.4 MB / 1.053 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002049/0.2789, allocations: 0.7778 MB / 1.054 GB, free: 7.492 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002066/0.2791, allocations: 47.78 kB / 1.054 GB, free: 7.445 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.601e-05/0.2792, allocations: 4 kB / 1.054 GB, free: 7.441 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.2794, allocations: 11.92 kB / 1.054 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.2795, allocations: 15.92 kB / 1.054 GB, free: 7.414 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.406e-05/0.2795, allocations: 20 kB / 1.054 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000186/0.2797, allocations: 163.6 kB / 1.054 GB, free: 7.234 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003308/0.2801, allocations: 252.9 kB / 1.054 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.836e-05/0.2802, allocations: 75.66 kB / 1.054 GB, free: 6.914 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.2803, allocations: 99.48 kB / 1.054 GB, free: 6.816 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/0.2803, allocations: 12 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.927e-05/0.2804, allocations: 16 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.003e-05/0.2804, allocations: 59.77 kB / 1.054 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.2806, allocations: 115.2 kB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002341/0.2808, allocations: 279.5 kB / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2808, allocations: 0 / 1.055 GB, free: 6.344 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.82e-07/0.2808, allocations: 3.938 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.336e-06/0.2808, allocations: 0 / 1.055 GB, free: 6.34 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0006533/0.2815, allocations: 0.5461 MB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.2815, allocations: 11.97 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.287e-05/0.2816, allocations: 40.47 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.282, allocations: 317.1 kB / 1.056 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.893e-05/0.2821, allocations: 32.94 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.2821, allocations: 24.38 kB / 1.056 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004937/0.2826, allocations: 343 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.2826, allocations: 192 / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.2826, allocations: 15.94 kB / 1.056 GB, free: 4.926 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.2827, allocations: 4 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003824/0.283, allocations: 255.8 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.2842, allocations: 0.913 MB / 1.057 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7.69e-05/0.2843, allocations: 61.08 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.946e-05/0.2844, allocations: 41.75 kB / 1.057 GB, free: 3.578 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.2844, allocations: 3.938 kB / 1.057 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.2844, allocations: 30.56 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 3.056e-06/0.2845, allocations: 0 / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002794/0.2847, allocations: 133.2 kB / 1.057 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.2848, allocations: 81.05 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.2853, allocations: 481.6 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.2853, allocations: 29.7 kB / 1.058 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.2854, allocations: 183.6 kB / 1.058 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.2855, allocations: 7.906 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.478e-05/0.2855, allocations: 41.7 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.2857, allocations: 338.8 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.887e-05/0.2857, allocations: 59.95 kB / 1.058 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.2859, allocations: 73.66 kB / 1.059 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.286, allocations: 97.69 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.286, allocations: 0 / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002635/0.2863, allocations: 193.1 kB / 1.059 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2863, allocations: 4 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2863, allocations: 0 / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.2863, allocations: 7.938 kB / 1.059 GB, free: 1.762 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.2865, allocations: 27.92 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2865, allocations: 0 / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.486e-05/0.2866, allocations: 23.69 kB / 1.059 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.2866, allocations: 8 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (idxLasTru.booToInt[1].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[6].y,idxLasTru.y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001728/0.2868, allocations: 193.5 kB / 1.059 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.568e-05/0.2868, allocations: 35.56 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001659/0.287, allocations: 160.6 kB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.686e-05/0.2871, allocations: 180.2 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.208e-05/0.2871, allocations: 188.2 kB / 1.06 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.997e-05/0.2872, allocations: 176.3 kB / 1.06 GB, free: 0.7422 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003686/0.2876, allocations: 0.5166 MB / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.334e-05/0.2876, allocations: 112.9 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.083e-05/0.2877, allocations: 101.1 kB / 1.06 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.148e-05/0.2877, allocations: 192.2 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.152e-05/0.2878, allocations: 176.3 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.746e-05/0.2879, allocations: 188.3 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-05/0.2879, allocations: 184.2 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.2881, allocations: 335.4 kB / 1.062 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.2882, allocations: 213.7 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.785e-05/0.2883, allocations: 184.2 kB / 1.062 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001266/0.2884, allocations: 108.9 kB / 1.062 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.279e-05/0.2885, allocations: 184.2 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.109e-05/0.2886, allocations: 108.9 kB / 1.062 GB, free: 14 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003634/0.2889, allocations: 363.1 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2889, allocations: 0 / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002606/0.2892, allocations: 28 kB / 1.063 GB, free: 13.62 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001231/0.2893, allocations: 178.5 kB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001635/0.2895, allocations: 80.03 kB / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2895, allocations: 0 / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.954e-06/0.2895, allocations: 0 / 1.063 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/0.29, allocations: 0.5482 MB / 1.063 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000669/0.2907, allocations: 0.5819 MB / 1.064 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.291, allocations: 0.7638 MB / 1.065 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.563e-05/0.2911, allocations: 27.44 kB / 1.065 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of SimCode: time 3.91e-07/0.2911, allocations: 0 / 1.065 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of Templates: time 0.005109/0.2962, allocations: 3.254 MB / 1.068 GB, free: 8.129 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1)