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.001596/0.001596, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00208/0.00208, allocations: 194.8 kB / 16.14 MB, free: 6.656 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.474/1.474, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.83/2.83, allocations: 472.6 MB / 0.7447 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.06 kB / 0.9114 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3852, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002602/0.3879, allocations: 0.7721 MB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002951/0.3882, allocations: 43.84 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.3883, allocations: 0 / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.3885, allocations: 11.92 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001515/0.3887, allocations: 23.91 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 6.62e-05/0.3887, allocations: 16 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002405/0.389, allocations: 163.6 kB / 1.069 GB, free: 9.859 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.3894, allocations: 256.9 kB / 1.069 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.3895, allocations: 75.66 kB / 1.069 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.3897, allocations: 103.5 kB / 1.069 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.042e-05/0.3898, allocations: 15.94 kB / 1.069 GB, free: 9.414 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 3.535e-05/0.3898, allocations: 16 kB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.534e-05/0.3899, allocations: 55.78 kB / 1.069 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.39, allocations: 115.2 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003548/0.3904, allocations: 334.9 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3904, allocations: 0 / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3904, allocations: 0 / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.328e-05/0.3904, allocations: 4 kB / 1.069 GB, free: 8.898 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.0009081/0.3913, allocations: 0.5461 MB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.3914, allocations: 11.97 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.535e-05/0.3915, allocations: 32.56 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004344/0.3919, allocations: 305.3 kB / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.641e-05/0.392, allocations: 28.94 kB / 1.07 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.392, allocations: 32.25 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005708/0.3926, allocations: 343 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.3926, allocations: 4.125 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.3927, allocations: 15.94 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.3927, allocations: 7.984 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004263/0.3931, allocations: 255.8 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001387/0.3945, allocations: 0.9207 MB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.49e-05/0.3946, allocations: 53.2 kB / 1.072 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.894e-05/0.3947, allocations: 37.75 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.406e-05/0.3947, allocations: 7.875 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.3947, allocations: 34.56 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.283e-06/0.3947, allocations: 0 / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0003144/0.3951, allocations: 129.3 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.3951, allocations: 77.11 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005398/0.3957, allocations: 477.4 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.3957, allocations: 25.7 kB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3958, allocations: 187.8 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.067e-05/0.3958, allocations: 8 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.098e-05/0.3959, allocations: 41.7 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.3961, allocations: 342.8 kB / 1.073 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.206e-05/0.3962, allocations: 55.97 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.593e-05/0.3963, allocations: 73.66 kB / 1.073 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.3964, allocations: 105.6 kB / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3964, allocations: 0 / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002941/0.3967, allocations: 185.2 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3968, allocations: 7.984 kB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.3968, allocations: 0 / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.3968, allocations: 4 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.3969, allocations: 23.94 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.397, allocations: 0 / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.514e-05/0.397, allocations: 27.59 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.3971, allocations: 7.984 kB / 1.074 GB, free: 4.289 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.0002051/0.3973, allocations: 197.7 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.994e-05/0.3974, allocations: 31.66 kB / 1.074 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/0.3976, allocations: 160.6 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.568e-05/0.3976, allocations: 184.2 kB / 1.074 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.639e-05/0.3977, allocations: 184.2 kB / 1.074 GB, free: 3.508 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.022e-05/0.3978, allocations: 180.3 kB / 1.075 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/0.3982, allocations: 0.5204 MB / 1.075 GB, free: 2.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.937e-05/0.3982, allocations: 104.9 kB / 1.075 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.799e-05/0.3983, allocations: 105.1 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.564e-05/0.3983, allocations: 188.2 kB / 1.075 GB, free: 2.336 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.014e-05/0.3984, allocations: 180.2 kB / 1.076 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.586e-05/0.3985, allocations: 188.2 kB / 1.076 GB, free: 1.961 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.089e-05/0.3986, allocations: 188.2 kB / 1.076 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.3987, allocations: 323.5 kB / 1.076 GB, free: 1.43 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001377/0.3989, allocations: 225.6 kB / 1.077 GB, free: 1.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.399, allocations: 188.2 kB / 1.077 GB, free: 0.9922 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.3991, allocations: 105 kB / 1.077 GB, free: 0.8828 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.3992, allocations: 180.2 kB / 1.077 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.132e-05/0.3993, allocations: 105 kB / 1.077 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004036/0.3997, allocations: 359.1 kB / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3997, allocations: 0 / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002721/0.4, allocations: 28 kB / 1.077 GB, free: 216 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.0001477/0.4001, allocations: 182.5 kB / 1.078 GB, free: 24 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001796/0.4003, allocations: 75.89 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4003, allocations: 0 / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.665e-06/0.4003, allocations: 0 / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005981/0.4009, allocations: 0.5533 MB / 1.078 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007084/0.4017, allocations: 0.549 MB / 1.079 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003854/0.4021, allocations: 0.7677 MB / 1.08 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001047/0.4022, allocations: 58.23 kB / 1.08 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.05e-05/0.4022, allocations: 19.44 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.4022, allocations: 7.875 kB / 1.08 GB, free: 13.94 MB / 0.8419 GB Notification: Performance of Templates: time 0.005467/0.4077, allocations: 1.632 MB / 1.081 GB, free: 12.32 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)