Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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_3.0.0_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_3.0.0_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.001105/0.001105, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001209/0.001209, allocations: 195.2 kB / 16.25 MB, free: 6.633 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.383/1.383, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.795/2.795, allocations: 472.6 MB / 0.7448 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 63.61 kB / 0.9115 GB, free: 33.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3021, allocations: 159.9 MB / 1.068 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001867/0.304, allocations: 0.7807 MB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001756/0.3042, allocations: 39.84 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.911e-05/0.3043, allocations: 8 kB / 1.069 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.787e-05/0.3044, allocations: 7.938 kB / 1.069 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001051/0.3045, allocations: 15.92 kB / 1.069 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 5.478e-05/0.3046, allocations: 16 kB / 1.069 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001871/0.3048, allocations: 183.5 kB / 1.069 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003336/0.3051, allocations: 260.9 kB / 1.069 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.734e-05/0.3052, allocations: 103.6 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.3053, allocations: 107.4 kB / 1.069 GB, free: 9.305 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.3053, allocations: 24 kB / 1.069 GB, free: 9.281 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 4.333e-05/0.3054, allocations: 24 kB / 1.069 GB, free: 9.258 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.637e-05/0.3055, allocations: 83.75 kB / 1.069 GB, free: 9.176 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.947e-05/0.3056, allocations: 127.2 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002907/0.3059, allocations: 346.9 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3059, allocations: 8 kB / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3059, allocations: 0 / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.3059, allocations: 0 / 1.07 GB, free: 8.703 MB / 0.8262 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.0005816/0.3065, allocations: 0.546 MB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.3065, allocations: 8.031 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.463e-05/0.3066, allocations: 32.56 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.3069, allocations: 317.2 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.045e-05/0.307, allocations: 28.92 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/0.307, allocations: 28.38 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/0.3075, allocations: 335 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.3075, allocations: 192 / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.428e-05/0.3075, allocations: 15.94 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.3075, allocations: 8 kB / 1.071 GB, free: 7.305 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000353/0.3079, allocations: 255.8 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.3091, allocations: 0.9168 MB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.377e-05/0.3091, allocations: 57.2 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.328e-05/0.3092, allocations: 37.7 kB / 1.072 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.3092, allocations: 7.922 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.3092, allocations: 34.56 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.3092, allocations: 0 / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0002455/0.3095, allocations: 125.3 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.3095, allocations: 85.36 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004591/0.31, allocations: 477.4 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.31, allocations: 25.7 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/0.3102, allocations: 187.5 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.647e-06/0.3102, allocations: 3.984 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.01e-05/0.3102, allocations: 41.7 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3104, allocations: 342.8 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.395e-05/0.3105, allocations: 59.95 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.091e-05/0.3106, allocations: 77.67 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.3107, allocations: 97.61 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.3107, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002439/0.3109, allocations: 189.2 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.311, allocations: 11.88 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.311, allocations: 4 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.311, allocations: 0 / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.3111, allocations: 23.98 kB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-06/0.3111, allocations: 0 / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.559e-05/0.3112, allocations: 35.59 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3112, allocations: 8 kB / 1.074 GB, free: 4.086 MB / 0.8262 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.0001684/0.3114, allocations: 193.7 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.668e-05/0.3115, allocations: 31.59 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001608/0.3116, allocations: 156.7 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-05/0.3117, allocations: 188.2 kB / 1.075 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.768e-05/0.3117, allocations: 176.3 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-05/0.3118, allocations: 176.3 kB / 1.075 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003177/0.3121, allocations: 0.5321 MB / 1.075 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.839e-05/0.3122, allocations: 104.9 kB / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.259e-05/0.3122, allocations: 109.1 kB / 1.076 GB, free: 2.324 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.914e-05/0.3123, allocations: 180.3 kB / 1.076 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.268e-05/0.3123, allocations: 180.3 kB / 1.076 GB, free: 1.957 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.17e-05/0.3124, allocations: 184.2 kB / 1.076 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-05/0.3125, allocations: 180.3 kB / 1.076 GB, free: 1.586 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001348/0.3126, allocations: 331.5 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.3127, allocations: 221.6 kB / 1.077 GB, free: 0.9961 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.568e-05/0.3128, allocations: 184.2 kB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.3129, allocations: 105 kB / 1.077 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/0.313, allocations: 184.2 kB / 1.077 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/0.313, allocations: 109 kB / 1.077 GB, free: 408 kB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000344/0.3134, allocations: 359.1 kB / 1.078 GB, free: 48 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3134, allocations: 0 / 1.078 GB, free: 48 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002417/0.3136, allocations: 28 kB / 1.078 GB, free: 20 kB / 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.0001295/0.3138, allocations: 174.5 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001486/0.3139, allocations: 75.89 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3139, allocations: 0 / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.836e-06/0.3139, allocations: 8 kB / 1.078 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.3144, allocations: 489.2 kB / 1.078 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005916/0.315, allocations: 0.5603 MB / 1.079 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003281/0.3153, allocations: 0.7714 MB / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.749e-05/0.3154, allocations: 62.12 kB / 1.08 GB, free: 13.83 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.175e-05/0.3155, allocations: 19.44 kB / 1.08 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3155, allocations: 0 / 1.08 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of Templates: time 0.004186/0.3197, allocations: 1.686 MB / 1.081 GB, free: 12.13 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile (rm -f Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1)