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.001451/0.001451, allocations: 88.39 kB / 20.23 MB, free: 4.172 MB / 18.57 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.001865/0.001865, allocations: 161.3 kB / 23.55 MB, free: 0.8633 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 1.485/1.485, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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 2.753/2.753, allocations: 359 MB / 0.6048 GB, free: 10.95 MB / 0.573 GB " [Timeout remaining time 177] 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: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxLasTru.y|idxLasTruAllFal.y",fileNamePrefix="Buildings_11_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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.755e-06/2.755e-06, allocations: 0 / 0.7864 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.531e-05/4.806e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002881/0.002929, allocations: 0.7188 MB / 0.7871 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0002903/0.00322, allocations: 52.7 kB / 0.7871 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.632e-05/0.003316, allocations: 4 kB / 0.7871 GB, free: 12.08 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001576/0.003473, allocations: 16.98 kB / 0.7871 GB, free: 12.06 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001402/0.003614, allocations: 7.938 kB / 0.7871 GB, free: 12.05 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 6.736e-05/0.003681, allocations: 19.97 kB / 0.7872 GB, free: 12.04 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002845/0.003965, allocations: 188.3 kB / 0.7873 GB, free: 11.85 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002837/0.004249, allocations: 137.4 kB / 0.7875 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.004431, allocations: 148.4 kB / 0.7876 GB, free: 11.57 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.004584, allocations: 107.7 kB / 0.7877 GB, free: 11.47 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.004638, allocations: 24.75 kB / 0.7877 GB, free: 11.45 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 4.154e-05/0.00468, allocations: 24 kB / 0.7878 GB, free: 11.42 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 9.378e-05/0.004774, allocations: 72.33 kB / 0.7878 GB, free: 11.35 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.004879, allocations: 71.77 kB / 0.7879 GB, free: 11.28 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004652/0.005344, allocations: 380 kB / 0.7883 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.005347, allocations: 4 kB / 0.7883 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.032e-06/0.005348, allocations: 0 / 0.7883 GB, free: 10.91 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.005354, allocations: 1.438 kB / 0.7883 GB, free: 10.91 MB / 0.7448 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.0007634/0.006117, allocations: 481.5 kB / 0.7887 GB, free: 10.4 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.006153, allocations: 12.03 kB / 0.7887 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.006267, allocations: 56.7 kB / 0.7888 GB, free: 10.34 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.006739, allocations: 275.9 kB / 0.7891 GB, free: 10.04 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.567e-05/0.006795, allocations: 29.02 kB / 0.7891 GB, free: 10.01 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.218e-05/0.006837, allocations: 25 kB / 0.7891 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.007438, allocations: 345.7 kB / 0.7894 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.007448, allocations: 192 / 0.7894 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.893e-05/0.007477, allocations: 8.375 kB / 0.7894 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.007487, allocations: 8.375 kB / 0.7894 GB, free: 9.625 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/0.007932, allocations: 268.7 kB / 0.7897 GB, free: 9.363 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001258/0.00919, allocations: 0.7312 MB / 0.7904 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.009305, allocations: 58.08 kB / 0.7905 GB, free: 8.523 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.642e-05/0.009362, allocations: 33.77 kB / 0.7905 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.009383, allocations: 0 / 0.7905 GB, free: 8.484 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/0.009426, allocations: 39.64 kB / 0.7905 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.009427, allocations: 0 / 0.7905 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0003147/0.009742, allocations: 123.1 kB / 0.7907 GB, free: 8.312 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/0.009811, allocations: 81.11 kB / 0.7907 GB, free: 8.215 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.01023, allocations: 325.6 kB / 0.791 GB, free: 7.895 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.01025, allocations: 27.3 kB / 0.7911 GB, free: 7.863 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.01042, allocations: 188.8 kB / 0.7913 GB, free: 7.676 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 9.507e-06/0.01043, allocations: 3.953 kB / 0.7913 GB, free: 7.672 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-05/0.01053, allocations: 61.69 kB / 0.7913 GB, free: 7.605 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002017/0.01073, allocations: 330.8 kB / 0.7916 GB, free: 7.273 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.01084, allocations: 57.23 kB / 0.7917 GB, free: 7.219 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003754/0.01121, allocations: 75.55 kB / 0.7918 GB, free: 7.141 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000174/0.01139, allocations: 105.6 kB / 0.7919 GB, free: 7.031 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.01139, allocations: 6.969 kB / 0.7919 GB, free: 7.027 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003109/0.0117, allocations: 177.4 kB / 0.792 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.01172, allocations: 8 kB / 0.792 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.01172, allocations: 0 / 0.792 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.01175, allocations: 3.938 kB / 0.792 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.0119, allocations: 23.98 kB / 0.7921 GB, free: 6.812 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.01191, allocations: 4 kB / 0.7921 GB, free: 6.809 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.378e-05/0.01196, allocations: 15.89 kB / 0.7921 GB, free: 6.793 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.01198, allocations: 4.719 kB / 0.7921 GB, free: 6.789 MB / 0.7448 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.0002383/0.01222, allocations: 195.4 kB / 0.7923 GB, free: 6.59 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.936e-05/0.01228, allocations: 19.89 kB / 0.7923 GB, free: 6.57 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002149/0.0125, allocations: 151.5 kB / 0.7924 GB, free: 6.41 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001165/0.01261, allocations: 193.2 kB / 0.7926 GB, free: 6.215 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000112/0.01272, allocations: 180.2 kB / 0.7928 GB, free: 6.031 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001128/0.01284, allocations: 180.3 kB / 0.793 GB, free: 5.848 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004063/0.01324, allocations: 446 kB / 0.7934 GB, free: 5.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.25e-05/0.01332, allocations: 109 kB / 0.7935 GB, free: 5.262 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.755e-05/0.01338, allocations: 104.9 kB / 0.7936 GB, free: 5.152 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001118/0.0135, allocations: 182 kB / 0.7938 GB, free: 4.969 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.0136, allocations: 180.3 kB / 0.7939 GB, free: 4.785 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00011/0.01371, allocations: 180.2 kB / 0.7941 GB, free: 4.602 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001239/0.01384, allocations: 184.2 kB / 0.7943 GB, free: 4.414 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.01407, allocations: 319.7 kB / 0.7946 GB, free: 4.078 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.01418, allocations: 130 kB / 0.7947 GB, free: 3.945 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.01431, allocations: 180.2 kB / 0.7949 GB, free: 3.762 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.01443, allocations: 105 kB / 0.795 GB, free: 3.652 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.01455, allocations: 188.7 kB / 0.7952 GB, free: 3.461 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.027e-05/0.01462, allocations: 109.5 kB / 0.7953 GB, free: 3.348 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0003038/0.01493, allocations: 229.2 kB / 0.7955 GB, free: 3.121 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01493, allocations: 1.562 kB / 0.7955 GB, free: 3.121 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003084/0.01524, allocations: 51.73 kB / 0.7955 GB, free: 3.07 MB / 0.7448 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.0001999/0.01544, allocations: 172.2 kB / 0.7957 GB, free: 2.895 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001886/0.01562, allocations: 75.88 kB / 0.7958 GB, free: 2.82 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.01563, allocations: 4 kB / 0.7958 GB, free: 2.816 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.313e-06/0.01563, allocations: 0 / 0.7958 GB, free: 2.816 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005704/0.0162, allocations: 477.1 kB / 0.7962 GB, free: 2.348 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007781/0.01698, allocations: 497.9 kB / 0.7967 GB, free: 1.828 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.01717, allocations: 164.4 kB / 0.7969 GB, free: 1.652 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 8.592e-05/0.01726, allocations: 37.45 kB / 0.7969 GB, free: 1.613 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.856e-05/0.0173, allocations: 13.31 kB / 0.7969 GB, free: 1.602 MB / 0.7448 GB Notification: Performance of SimCode: time 4.21e-07/0.01731, allocations: 0 / 0.7969 GB, free: 1.602 MB / 0.7448 GB Notification: Performance of Templates: time 0.004629/0.02193, allocations: 1.072 MB / 0.798 GB, free: 0.582 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.743202168960124]