Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_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.001067/0.001067, allocations: 104.3 kB / 19.72 MB, free: 420 kB / 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.001004/0.001004, allocations: 207.8 kB / 23.02 MB, free: 2.965 MB / 13.93 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 1.029/1.029, allocations: 230.6 MB / 256.8 MB, free: 9.582 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.953/1.953, allocations: 0.5045 GB / 0.8104 GB, free: 2.742 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.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_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,fileNamePrefix="Buildings_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 71.88 kB / 1.177 GB, free: 12 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7476/0.7487, allocations: 180 MB / 1.352 GB, free: 1.711 MB / 1.026 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001739/0.7504, allocations: 0.7029 MB / 1.353 GB, free: 1.012 MB / 1.026 GB Notification: Performance of NFInst.instExpressions: time 0.0002953/0.7507, allocations: 55.78 kB / 1.353 GB, free: 0.957 MB / 1.026 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001104/0.7508, allocations: 7.938 kB / 1.353 GB, free: 0.9492 MB / 1.026 GB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.751, allocations: 11.86 kB / 1.353 GB, free: 0.9375 MB / 1.026 GB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.7512, allocations: 19.86 kB / 1.353 GB, free: 0.918 MB / 1.026 GB Notification: Performance of NFTyping.typeClassSections: time 7.004e-05/0.7512, allocations: 19.98 kB / 1.353 GB, free: 0.8984 MB / 1.026 GB Notification: Performance of NFFlatten.flatten: time 0.0002177/0.7515, allocations: 179.6 kB / 1.353 GB, free: 0.7227 MB / 1.026 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002891/0.7517, allocations: 145.2 kB / 1.354 GB, free: 0.582 MB / 1.026 GB Notification: Performance of NFEvalConstants.evaluate: time 8.655e-05/0.7518, allocations: 111.6 kB / 1.354 GB, free: 484 kB / 1.026 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.752, allocations: 119.5 kB / 1.354 GB, free: 364 kB / 1.026 GB Notification: Performance of NFPackage.collectConstants: time 3.54e-05/0.752, allocations: 24 kB / 1.354 GB, free: 340 kB / 1.026 GB Notification: Performance of NFFlatten.collectFunctions: time 2.75e-05/0.752, allocations: 28 kB / 1.354 GB, free: 312 kB / 1.026 GB Notification: Performance of NFScalarize.scalarize: time 6.148e-05/0.7521, allocations: 71.78 kB / 1.354 GB, free: 240 kB / 1.026 GB Notification: Performance of NFVerifyModel.verify: time 6.794e-05/0.7521, allocations: 99.39 kB / 1.354 GB, free: 140 kB / 1.026 GB Notification: Performance of NFConvertDAE.convert: time 0.0002736/0.7524, allocations: 376.9 kB / 1.354 GB, free: 15.77 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.7524, allocations: 0 / 1.354 GB, free: 15.77 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7524, allocations: 0 / 1.354 GB, free: 15.77 MB / 1.042 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.7524, allocations: 0 / 1.354 GB, free: 15.77 MB / 1.042 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.0004683/0.7529, allocations: 489.5 kB / 1.355 GB, free: 15.25 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.7529, allocations: 8.922 kB / 1.355 GB, free: 15.25 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.116e-05/0.753, allocations: 66.72 kB / 1.355 GB, free: 15.17 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.464e-05/0.753, allocations: 36.7 kB / 1.355 GB, free: 15.14 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003043/0.7533, allocations: 255.6 kB / 1.355 GB, free: 14.86 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.479e-05/0.7534, allocations: 33.02 kB / 1.355 GB, free: 14.83 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.7534, allocations: 24.38 kB / 1.355 GB, free: 14.8 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.7538, allocations: 344.2 kB / 1.356 GB, free: 14.45 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.7538, allocations: 7.875 kB / 1.356 GB, free: 14.45 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.7538, allocations: 8 kB / 1.356 GB, free: 14.44 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.7538, allocations: 8 kB / 1.356 GB, free: 14.43 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002765/0.7541, allocations: 259.8 kB / 1.356 GB, free: 14.18 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008714/0.755, allocations: 0.8358 MB / 1.357 GB, free: 13.29 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 6.682e-05/0.755, allocations: 61.2 kB / 1.357 GB, free: 13.21 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.212e-05/0.7551, allocations: 29.7 kB / 1.357 GB, free: 13.18 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.968e-05/0.7551, allocations: 3.984 kB / 1.357 GB, free: 13.18 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.7551, allocations: 42.5 kB / 1.357 GB, free: 13.12 MB / 1.042 GB Notification: Performance of pre-optimization done (n=2): time 1.714e-06/0.7551, allocations: 0 / 1.357 GB, free: 13.12 MB / 1.042 GB Notification: Performance of matching and sorting (n=2): time 0.0002086/0.7553, allocations: 129.4 kB / 1.357 GB, free: 12.99 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.7554, allocations: 77.11 kB / 1.357 GB, free: 12.9 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003421/0.7557, allocations: 481.4 kB / 1.357 GB, free: 12.42 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 9.758e-06/0.7557, allocations: 25.7 kB / 1.357 GB, free: 12.39 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.7558, allocations: 192 kB / 1.358 GB, free: 12.2 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 7.574e-06/0.7558, allocations: 4 kB / 1.358 GB, free: 12.19 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.8e-05/0.7559, allocations: 45.66 kB / 1.358 GB, free: 12.14 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 8.918e-05/0.756, allocations: 346.8 kB / 1.358 GB, free: 11.79 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.822e-05/0.7561, allocations: 59.95 kB / 1.358 GB, free: 11.73 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.954e-05/0.7561, allocations: 73.67 kB / 1.358 GB, free: 11.66 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.136e-05/0.7562, allocations: 97.61 kB / 1.358 GB, free: 11.55 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.7562, allocations: 0 / 1.358 GB, free: 11.55 MB / 1.042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000173/0.7564, allocations: 189.3 kB / 1.358 GB, free: 11.36 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.7564, allocations: 8 kB / 1.358 GB, free: 11.36 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.7564, allocations: 0 / 1.358 GB, free: 11.36 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.7564, allocations: 4 kB / 1.358 GB, free: 11.35 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.7565, allocations: 27.92 kB / 1.358 GB, free: 11.32 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.7565, allocations: 0 / 1.358 GB, free: 11.32 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.924e-05/0.7566, allocations: 31.73 kB / 1.358 GB, free: 11.29 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.7566, allocations: 8 kB / 1.358 GB, free: 11.29 MB / 1.042 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.0001286/0.7567, allocations: 193.7 kB / 1.359 GB, free: 11.09 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.7568, allocations: 31.75 kB / 1.359 GB, free: 11.05 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.7569, allocations: 160.6 kB / 1.359 GB, free: 10.88 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.685e-05/0.7569, allocations: 180.3 kB / 1.359 GB, free: 10.7 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-05/0.757, allocations: 180.2 kB / 1.359 GB, free: 10.52 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.124e-05/0.757, allocations: 188.2 kB / 1.359 GB, free: 10.32 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.7572, allocations: 488.1 kB / 1.36 GB, free: 9.797 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-05/0.7573, allocations: 105 kB / 1.36 GB, free: 9.688 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.301e-05/0.7573, allocations: 101 kB / 1.36 GB, free: 9.582 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-05/0.7573, allocations: 180.2 kB / 1.36 GB, free: 9.398 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/0.7574, allocations: 180.3 kB / 1.36 GB, free: 9.215 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.092e-05/0.7574, allocations: 192.2 kB / 1.361 GB, free: 9.02 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.769e-05/0.7574, allocations: 180.2 kB / 1.361 GB, free: 8.836 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.7575, allocations: 335.5 kB / 1.361 GB, free: 8.484 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.7576, allocations: 144.8 kB / 1.361 GB, free: 8.336 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.891e-05/0.7577, allocations: 184.5 kB / 1.361 GB, free: 8.148 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.974e-05/0.7577, allocations: 109 kB / 1.361 GB, free: 8.035 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.414e-05/0.7578, allocations: 180.3 kB / 1.362 GB, free: 7.852 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.343e-05/0.7578, allocations: 104.9 kB / 1.362 GB, free: 7.742 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.0002578/0.7581, allocations: 367.1 kB / 1.362 GB, free: 7.391 MB / 1.042 GB Notification: Performance of sort global known variables: time 7e-08/0.7581, allocations: 0 / 1.362 GB, free: 7.391 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0001751/0.7582, allocations: 27.95 kB / 1.362 GB, free: 7.363 MB / 1.042 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.0002986/0.7585, allocations: 0.8397 MB / 1.363 GB, free: 6.496 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0001298/0.7587, allocations: 84.03 kB / 1.363 GB, free: 6.414 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.7587, allocations: 0 / 1.363 GB, free: 6.414 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 9.82e-07/0.7587, allocations: 0 / 1.363 GB, free: 6.414 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.759, allocations: 485.1 kB / 1.363 GB, free: 5.934 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.7611, allocations: 2.808 MB / 1.366 GB, free: 3.035 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.7612, allocations: 169.7 kB / 1.366 GB, free: 2.852 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 7.693e-05/0.7613, allocations: 54.25 kB / 1.366 GB, free: 2.797 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.66e-05/0.7614, allocations: 79.41 kB / 1.367 GB, free: 2.719 MB / 1.042 GB Notification: Performance of SimCode: time 6.91e-07/0.7614, allocations: 0 / 1.367 GB, free: 2.719 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08387/0.8452, allocations: 5.575 MB / 1.372 GB, free: 13.3 MB / 1.057 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.991/7.836, allocations: 8.875 kB / 1.372 GB, free: 13.3 MB / 1.057 GB " [Timeout remaining time 292] (rm -f Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_Buildings_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ../Buildings_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu) > Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 52.5] (rm -f Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.pipe ; mkfifo Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.pipe ; head -c 1048576 < Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ../Buildings_13_Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.fmu) > Buildings_13_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.848092449828982]