Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.00151/0.00151, allocations: 112.3 kB / 17.13 MB, free: 6.008 MB / 14.72 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.001679/0.001679, allocations: 212.7 kB / 20.1 MB, free: 3.055 MB / 14.72 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.458/1.458, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.929/2.929, allocations: 0.49 GB / 0.7923 GB, free: 1.297 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 71.88 kB / 1.15 GB, free: 14.9 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8924/0.8944, allocations: 176.1 MB / 1.322 GB, free: 25.1 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001724/0.8962, allocations: 0.7133 MB / 1.323 GB, free: 24.65 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0001879/0.8963, allocations: 47.3 kB / 1.323 GB, free: 24.62 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.372e-05/0.8964, allocations: 2.562 kB / 1.323 GB, free: 24.62 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.8965, allocations: 14.72 kB / 1.323 GB, free: 24.61 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.8966, allocations: 6.531 kB / 1.323 GB, free: 24.61 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 4.69e-05/0.8967, allocations: 25.77 kB / 1.323 GB, free: 24.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.8969, allocations: 186.6 kB / 1.323 GB, free: 24.5 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.8971, allocations: 196.5 kB / 1.323 GB, free: 24.43 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.672e-05/0.8972, allocations: 106.2 kB / 1.323 GB, free: 24.38 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 9.874e-05/0.8973, allocations: 108.8 kB / 1.323 GB, free: 24.32 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.951e-05/0.8973, allocations: 29.06 kB / 1.323 GB, free: 24.32 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.114e-05/0.8974, allocations: 25.56 kB / 1.323 GB, free: 24.32 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 5.996e-05/0.8974, allocations: 72.8 kB / 1.323 GB, free: 24.27 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 8.236e-05/0.8975, allocations: 127.7 kB / 1.324 GB, free: 24.18 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.8978, allocations: 376.8 kB / 1.324 GB, free: 24.04 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.8978, allocations: 0 / 1.324 GB, free: 24.04 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.302e-06/0.8978, allocations: 0 / 1.324 GB, free: 24.04 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.174e-06/0.8978, allocations: 0 / 1.324 GB, free: 24.04 MB / 1.061 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.0005172/0.8983, allocations: 0.5653 MB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.8983, allocations: 12.55 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/0.8984, allocations: 37.22 kB / 1.325 GB, free: 23.52 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.8987, allocations: 321.3 kB / 1.325 GB, free: 23.25 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.622e-05/0.8988, allocations: 29 kB / 1.325 GB, free: 23.23 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.8988, allocations: 25.53 kB / 1.325 GB, free: 23.22 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004059/0.8992, allocations: 341 kB / 1.325 GB, free: 23.08 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.8992, allocations: 3.25 kB / 1.325 GB, free: 23.08 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/0.8992, allocations: 11.94 kB / 1.325 GB, free: 23.07 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.8992, allocations: 10.16 kB / 1.325 GB, free: 23.07 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003005/0.8995, allocations: 263.5 kB / 1.325 GB, free: 22.99 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.9005, allocations: 0.9001 MB / 1.326 GB, free: 22.41 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 7.322e-05/0.9006, allocations: 55.42 kB / 1.326 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.241e-05/0.9007, allocations: 42.41 kB / 1.326 GB, free: 22.33 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.9007, allocations: 5.062 kB / 1.326 GB, free: 22.32 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.9007, allocations: 31.94 kB / 1.326 GB, free: 22.29 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.9007, allocations: 0 / 1.326 GB, free: 22.29 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.000258/0.901, allocations: 129 kB / 1.327 GB, free: 22.21 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.901, allocations: 78.48 kB / 1.327 GB, free: 22.12 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005147/0.9015, allocations: 485.8 kB / 1.327 GB, free: 21.9 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.116e-06/0.9015, allocations: 25.7 kB / 1.327 GB, free: 21.87 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.9016, allocations: 185.2 kB / 1.327 GB, free: 21.71 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.061e-05/0.9016, allocations: 13.12 kB / 1.327 GB, free: 21.71 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.924e-05/0.9017, allocations: 47.25 kB / 1.327 GB, free: 21.68 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.127e-05/0.9018, allocations: 341.4 kB / 1.328 GB, free: 21.35 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.67e-05/0.9018, allocations: 57.59 kB / 1.328 GB, free: 21.33 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.851e-05/0.9019, allocations: 81.97 kB / 1.328 GB, free: 21.29 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001348/0.9021, allocations: 104.2 kB / 1.328 GB, free: 21.23 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.9021, allocations: 0 / 1.328 GB, free: 21.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002806/0.9024, allocations: 187.1 kB / 1.328 GB, free: 21.14 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.9024, allocations: 9.812 kB / 1.328 GB, free: 21.14 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.9024, allocations: 0 / 1.328 GB, free: 21.14 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.9024, allocations: 1.938 kB / 1.328 GB, free: 21.14 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.9025, allocations: 23.3 kB / 1.328 GB, free: 21.14 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.9026, allocations: 1.75 kB / 1.328 GB, free: 21.14 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.87e-05/0.9026, allocations: 32.89 kB / 1.328 GB, free: 21.11 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.9026, allocations: 11.52 kB / 1.328 GB, free: 21.11 MB / 1.061 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.0001659/0.9028, allocations: 186.4 kB / 1.328 GB, free: 20.97 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.9029, allocations: 31.61 kB / 1.328 GB, free: 20.95 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001476/0.903, allocations: 165.5 kB / 1.329 GB, free: 20.81 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.547e-05/0.903, allocations: 181.1 kB / 1.329 GB, free: 20.62 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.372e-05/0.9031, allocations: 185 kB / 1.329 GB, free: 20.44 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.353e-05/0.9031, allocations: 179.6 kB / 1.329 GB, free: 20.26 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002724/0.9034, allocations: 0.5145 MB / 1.33 GB, free: 19.78 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.89e-05/0.9034, allocations: 112.9 kB / 1.33 GB, free: 19.66 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.677e-05/0.9034, allocations: 105.9 kB / 1.33 GB, free: 19.55 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.881e-05/0.9034, allocations: 181.6 kB / 1.33 GB, free: 19.37 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.9035, allocations: 177.2 kB / 1.33 GB, free: 19.19 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-05/0.9035, allocations: 188 kB / 1.33 GB, free: 19 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.262e-05/0.9035, allocations: 177.6 kB / 1.33 GB, free: 18.82 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.9036, allocations: 338.3 kB / 1.331 GB, free: 18.48 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.017e-05/0.9037, allocations: 219.2 kB / 1.331 GB, free: 18.26 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.478e-05/0.9038, allocations: 185.3 kB / 1.331 GB, free: 18.08 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.684e-05/0.9038, allocations: 104.4 kB / 1.331 GB, free: 17.97 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.186e-05/0.9039, allocations: 181.1 kB / 1.331 GB, free: 17.79 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.9039, allocations: 109.5 kB / 1.332 GB, free: 17.68 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004443/0.9043, allocations: 363.7 kB / 1.332 GB, free: 17.52 MB / 1.061 GB Notification: Performance of sort global known variables: time 6.1e-08/0.9043, allocations: 0 / 1.332 GB, free: 17.52 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002758/0.9046, allocations: 35.02 kB / 1.332 GB, free: 17.51 MB / 1.061 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.0001184/0.9047, allocations: 179.4 kB / 1.332 GB, free: 17.34 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001836/0.9049, allocations: 71.45 kB / 1.332 GB, free: 17.32 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.9049, allocations: 0 / 1.332 GB, free: 17.32 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.043e-06/0.9049, allocations: 1.219 kB / 1.332 GB, free: 17.32 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003582/0.9053, allocations: 487.2 kB / 1.333 GB, free: 16.85 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006635/0.9059, allocations: 0.5183 MB / 1.333 GB, free: 16.48 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.9062, allocations: 0.7725 MB / 1.334 GB, free: 15.77 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.624e-05/0.9063, allocations: 21.14 kB / 1.334 GB, free: 15.77 MB / 1.061 GB Notification: Performance of SimCode: time 2.91e-07/0.9063, allocations: 0 / 1.334 GB, free: 15.77 MB / 1.061 GB Notification: Performance of Templates: time 0.007659/0.9139, allocations: 3.298 MB / 1.337 GB, free: 15.45 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.581839612990734]