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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007677/0.0007677, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005631/0.005631, allocations: 169.2 kB / 16.26 MB, free: 6.648 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.274/1.274, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.507/2.507, allocations: 462.6 MB / 0.7364 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002946/0.0002946, allocations: 8.438 kB / 0.9029 GB, free: 36.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2474, allocations: 159.6 MB / 1.059 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.0008504/0.2483, allocations: 453.5 kB / 1.059 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0001969/0.2485, allocations: 47.78 kB / 1.059 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.286e-05/0.2486, allocations: 0 / 1.059 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.851e-05/0.2487, allocations: 11.94 kB / 1.059 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.647e-05/0.2488, allocations: 7.922 kB / 1.059 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.051e-05/0.2489, allocations: 19.98 kB / 1.059 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002026/0.2491, allocations: 163.6 kB / 1.059 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003286/0.2494, allocations: 244.8 kB / 1.06 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.441e-05/0.2495, allocations: 51.66 kB / 1.06 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.049e-05/0.2496, allocations: 67.52 kB / 1.06 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.787e-05/0.2496, allocations: 8 kB / 1.06 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.646e-05/0.2496, allocations: 8 kB / 1.06 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.923e-05/0.2497, allocations: 35.8 kB / 1.06 GB, free: 3.801 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.049e-05/0.2498, allocations: 120.9 kB / 1.06 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002788/0.2501, allocations: 326.8 kB / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2501, allocations: 0 / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2501, allocations: 0 / 1.06 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.2501, allocations: 0 / 1.06 GB, free: 3.355 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.0005318/0.2506, allocations: 0.4915 MB / 1.061 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2507, allocations: 15.91 kB / 1.061 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.367e-05/0.2508, allocations: 66.73 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.509e-05/0.2508, allocations: 28.56 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.2512, allocations: 321.1 kB / 1.061 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/0.2512, allocations: 24.94 kB / 1.061 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.2513, allocations: 24.38 kB / 1.061 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004827/0.2518, allocations: 347 kB / 1.062 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.2518, allocations: 7.922 kB / 1.062 GB, free: 1.934 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.2518, allocations: 8 kB / 1.062 GB, free: 1.926 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.2518, allocations: 16 kB / 1.062 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000379/0.2522, allocations: 251.8 kB / 1.062 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.2533, allocations: 0.9168 MB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.7e-05/0.2534, allocations: 57.27 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.186e-05/0.2534, allocations: 33.62 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.219e-05/0.2535, allocations: 4 kB / 1.063 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.2535, allocations: 38.5 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.2535, allocations: 0 / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0002648/0.2538, allocations: 133.2 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.2538, allocations: 77.11 kB / 1.063 GB, free: 304 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004792/0.2543, allocations: 473.5 kB / 1.063 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.2543, allocations: 25.7 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.2544, allocations: 191.4 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.135e-06/0.2545, allocations: 4 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/0.2545, allocations: 29.7 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.2546, allocations: 343.1 kB / 1.064 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.527e-05/0.2547, allocations: 59.95 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.275e-05/0.2548, allocations: 73.66 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001258/0.2549, allocations: 97.62 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2549, allocations: 0 / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002465/0.2552, allocations: 189.2 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.2552, allocations: 11.94 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.2552, allocations: 0 / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.708e-06/0.2552, allocations: 0 / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.2554, allocations: 31.92 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.2554, allocations: 0 / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.149e-05/0.2554, allocations: 31.67 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.2555, allocations: 4 kB / 1.065 GB, free: 14.71 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.0001592/0.2556, allocations: 193.5 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.017e-05/0.2557, allocations: 31.56 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001577/0.2559, allocations: 168.6 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.696e-05/0.2559, allocations: 180.3 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.955e-05/0.256, allocations: 184.2 kB / 1.065 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-05/0.256, allocations: 176.3 kB / 1.065 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.2563, allocations: 0.5244 MB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.734e-05/0.2564, allocations: 105 kB / 1.066 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.883e-05/0.2564, allocations: 104.9 kB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.54e-05/0.2565, allocations: 180.4 kB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.592e-05/0.2565, allocations: 188.3 kB / 1.066 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.963e-05/0.2566, allocations: 184.2 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.752e-05/0.2566, allocations: 180.3 kB / 1.067 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.2568, allocations: 339.3 kB / 1.067 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.2569, allocations: 221.7 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.258e-05/0.257, allocations: 180.2 kB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.2571, allocations: 105 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.454e-05/0.2571, allocations: 180.3 kB / 1.068 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.498e-05/0.2572, allocations: 108.9 kB / 1.068 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003613/0.2575, allocations: 363.1 kB / 1.068 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2575, allocations: 0 / 1.068 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002547/0.2578, allocations: 24 kB / 1.068 GB, free: 10.64 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.0003565/0.2581, allocations: 0.8396 MB / 1.069 GB, free: 9.773 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001408/0.2583, allocations: 75.89 kB / 1.069 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2583, allocations: 0 / 1.069 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.498e-06/0.2583, allocations: 4 kB / 1.069 GB, free: 9.695 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.2587, allocations: 0.5512 MB / 1.07 GB, free: 9.141 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002924/0.2617, allocations: 2.854 MB / 1.073 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.262, allocations: 0.7794 MB / 1.073 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 9.694e-05/0.2621, allocations: 58.25 kB / 1.073 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.2622, allocations: 83.34 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of SimCode: time 4.2e-07/0.2622, allocations: 0 / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.489/1.751, allocations: 4.574 MB / 1.078 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002939/1.752, allocations: 236.6 kB / 1.078 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/3.709, allocations: 0.75 kB / 1.078 GB, free: 0.6133 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1)