Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 165.9 kB / 22.45 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9245/0.9245, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.677/1.677, allocations: 359 MB / 0.6037 GB, free: 11.07 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.396e-06/3.396e-06, allocations: 0 / 0.9505 GB, free: 3.5 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.027e-05/2.366e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.496 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001408/0.001431, allocations: 0.7219 MB / 0.9512 GB, free: 2.77 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0002121/0.001643, allocations: 47.83 kB / 0.9512 GB, free: 2.723 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.457e-05/0.001718, allocations: 4 kB / 0.9512 GB, free: 2.719 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.001833, allocations: 15.86 kB / 0.9512 GB, free: 2.703 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.001953, allocations: 15.81 kB / 0.9513 GB, free: 2.688 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 4.92e-05/0.002003, allocations: 19.98 kB / 0.9513 GB, free: 2.668 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001689/0.002172, allocations: 183.5 kB / 0.9514 GB, free: 2.488 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.002381, allocations: 149.4 kB / 0.9516 GB, free: 2.344 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 9.859e-05/0.00248, allocations: 139.8 kB / 0.9517 GB, free: 2.207 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 9.975e-05/0.00258, allocations: 103.7 kB / 0.9518 GB, free: 2.105 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 3.899e-05/0.002619, allocations: 28 kB / 0.9518 GB, free: 2.078 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 2.281e-05/0.002641, allocations: 24 kB / 0.9519 GB, free: 2.055 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 5.467e-05/0.002696, allocations: 71.75 kB / 0.9519 GB, free: 1.984 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 6.347e-05/0.002759, allocations: 75.77 kB / 0.952 GB, free: 1.91 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.003056, allocations: 374.7 kB / 0.9524 GB, free: 1.543 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.00306, allocations: 0 / 0.9524 GB, free: 1.543 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.603e-06/0.003062, allocations: 0 / 0.9524 GB, free: 1.543 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 6.492e-06/0.003068, allocations: 0 / 0.9524 GB, free: 1.543 MB / 0.9011 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.0005852/0.003654, allocations: 497.5 kB / 0.9528 GB, free: 1.02 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.003706, allocations: 12.03 kB / 0.9529 GB, free: 1.008 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.391e-05/0.00377, allocations: 62.72 kB / 0.9529 GB, free: 0.9375 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.915e-05/0.003819, allocations: 40.64 kB / 0.953 GB, free: 0.8984 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.004173, allocations: 254.8 kB / 0.9532 GB, free: 0.6211 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-05/0.004226, allocations: 29.03 kB / 0.9532 GB, free: 0.5938 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.644e-05/0.004252, allocations: 24.38 kB / 0.9532 GB, free: 0.5703 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.004649, allocations: 344.2 kB / 0.9536 GB, free: 228 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.004661, allocations: 192 / 0.9536 GB, free: 228 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.004684, allocations: 16.38 kB / 0.9536 GB, free: 212 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.004697, allocations: 8.125 kB / 0.9536 GB, free: 204 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.004972, allocations: 259.8 kB / 0.9538 GB, free: 15.94 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.006026, allocations: 0.8358 MB / 0.9547 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 7.342e-05/0.006099, allocations: 57.14 kB / 0.9547 GB, free: 14.99 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.548e-05/0.006135, allocations: 33.77 kB / 0.9548 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.006158, allocations: 3.984 kB / 0.9548 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.006182, allocations: 30.56 kB / 0.9548 GB, free: 14.91 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=2): time 1.974e-06/0.006184, allocations: 0 / 0.9548 GB, free: 14.91 MB / 0.9167 GB Notification: Performance of matching and sorting (n=2): time 0.0002336/0.006417, allocations: 137.5 kB / 0.9549 GB, free: 14.77 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.286e-05/0.00646, allocations: 77.11 kB / 0.955 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.006828, allocations: 485.4 kB / 0.9555 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.382e-05/0.006842, allocations: 25.7 kB / 0.9555 GB, free: 14.16 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.006955, allocations: 192.3 kB / 0.9557 GB, free: 13.96 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 8.546e-06/0.006963, allocations: 4 kB / 0.9557 GB, free: 13.96 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-05/0.00702, allocations: 49.66 kB / 0.9557 GB, free: 13.91 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.007124, allocations: 338.8 kB / 0.956 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.742e-05/0.007192, allocations: 55.95 kB / 0.9561 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.467e-05/0.007266, allocations: 77.66 kB / 0.9562 GB, free: 13.43 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.007373, allocations: 93.62 kB / 0.9563 GB, free: 13.33 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.007376, allocations: 4.031 kB / 0.9563 GB, free: 13.33 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001833/0.007559, allocations: 189.4 kB / 0.9564 GB, free: 13.14 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.007575, allocations: 11.94 kB / 0.9564 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.007581, allocations: 0 / 0.9564 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.007595, allocations: 0 / 0.9564 GB, free: 13.12 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.007708, allocations: 27.92 kB / 0.9565 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.007715, allocations: 4 kB / 0.9565 GB, free: 13.09 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.569e-05/0.00776, allocations: 35.72 kB / 0.9565 GB, free: 13.06 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.007777, allocations: 4 kB / 0.9565 GB, free: 13.05 MB / 0.9167 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.000158/0.007935, allocations: 201.5 kB / 0.9567 GB, free: 12.85 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.64e-05/0.007971, allocations: 27.81 kB / 0.9567 GB, free: 12.82 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001663/0.008137, allocations: 164.5 kB / 0.9569 GB, free: 12.64 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-05/0.008192, allocations: 184.3 kB / 0.9571 GB, free: 12.46 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.369e-05/0.008245, allocations: 188.2 kB / 0.9572 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.032e-05/0.008296, allocations: 176.3 kB / 0.9574 GB, free: 12.09 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002639/0.008559, allocations: 484.2 kB / 0.9579 GB, free: 11.56 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-05/0.008592, allocations: 108.9 kB / 0.958 GB, free: 11.45 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.194e-05/0.008624, allocations: 104.9 kB / 0.9581 GB, free: 11.34 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-05/0.008674, allocations: 188.3 kB / 0.9583 GB, free: 11.15 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.008725, allocations: 184.2 kB / 0.9584 GB, free: 10.96 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.664e-05/0.008771, allocations: 180.2 kB / 0.9586 GB, free: 10.78 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.302e-05/0.008814, allocations: 180.3 kB / 0.9588 GB, free: 10.59 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001254/0.00894, allocations: 331.6 kB / 0.9591 GB, free: 10.25 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.966e-05/0.009009, allocations: 144.8 kB / 0.9592 GB, free: 10.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.009072, allocations: 188.1 kB / 0.9594 GB, free: 9.906 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.751e-05/0.009149, allocations: 105 kB / 0.9595 GB, free: 9.797 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.033e-05/0.0092, allocations: 184.2 kB / 0.9597 GB, free: 9.609 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.009228, allocations: 105 kB / 0.9598 GB, free: 9.5 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0002722/0.0095, allocations: 363.1 kB / 0.9601 GB, free: 9.152 MB / 0.9167 GB Notification: Performance of sort global known variables: time 4.01e-07/0.0095, allocations: 4 kB / 0.9601 GB, free: 9.148 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001893/0.009689, allocations: 28 kB / 0.9602 GB, free: 9.121 MB / 0.9167 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.0003462/0.01004, allocations: 0.8358 MB / 0.961 GB, free: 8.258 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001427/0.01018, allocations: 67.95 kB / 0.961 GB, free: 8.191 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.01018, allocations: 0 / 0.961 GB, free: 8.191 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 2.735e-06/0.01018, allocations: 3.938 kB / 0.961 GB, free: 8.188 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003633/0.01055, allocations: 489.1 kB / 0.9615 GB, free: 7.703 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.01274, allocations: 2.82 MB / 0.9643 GB, free: 4.793 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.01286, allocations: 165.8 kB / 0.9644 GB, free: 4.609 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 7.643e-05/0.01294, allocations: 58.23 kB / 0.9645 GB, free: 4.551 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.9e-05/0.01304, allocations: 80.41 kB / 0.9646 GB, free: 4.473 MB / 0.9167 GB Notification: Performance of SimCode: time 9.72e-07/0.01304, allocations: 0 / 0.9646 GB, free: 4.473 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01994/0.03298, allocations: 5.717 MB / 0.9701 GB, free: 14.92 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.058/7.091, allocations: 10.88 kB / 0.9702 GB, free: 14.91 MB / 0.9323 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable idxLasTru.y in file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTru.y from file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! Error: Could not read variable idxLasTruAllFal.y in file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv. Warning: Get data of variable idxLasTruAllFal.y from file Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.217124075628817]