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.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.002261/0.002261, allocations: 81.48 kB / 19.44 MB, free: 348 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.002518/0.002518, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.582/1.582, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.394/3.394, allocations: 429.5 MB / 0.6729 GB, free: 4.031 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 0 / 0.8774 GB, free: 6.688 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.51e-05/3.729e-05, allocations: 7.156 kB / 0.8774 GB, free: 6.68 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002035/0.002073, allocations: 0.7169 MB / 0.8781 GB, free: 5.988 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0005259/0.002599, allocations: 51.78 kB / 0.8782 GB, free: 5.938 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.292e-05/0.002671, allocations: 7.938 kB / 0.8782 GB, free: 5.93 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.002808, allocations: 13.39 kB / 0.8782 GB, free: 5.918 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.002945, allocations: 9.078 kB / 0.8782 GB, free: 5.91 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 7.279e-05/0.003018, allocations: 25.19 kB / 0.8782 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002792/0.003297, allocations: 185.7 kB / 0.8784 GB, free: 5.707 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003015/0.003598, allocations: 137.4 kB / 0.8785 GB, free: 5.57 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.003794, allocations: 152.7 kB / 0.8787 GB, free: 5.422 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.003958, allocations: 103.8 kB / 0.8788 GB, free: 5.32 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 5.83e-05/0.004017, allocations: 24 kB / 0.8788 GB, free: 5.297 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.267e-05/0.004069, allocations: 24.66 kB / 0.8788 GB, free: 5.273 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.181e-05/0.004161, allocations: 67.77 kB / 0.8789 GB, free: 5.207 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.004272, allocations: 77.36 kB / 0.879 GB, free: 5.133 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0004671/0.00474, allocations: 378.7 kB / 0.8793 GB, free: 4.762 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.496e-05/0.004754, allocations: 4 kB / 0.8793 GB, free: 4.758 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.503e-06/0.004756, allocations: 0 / 0.8793 GB, free: 4.758 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.004764, allocations: 2.719 kB / 0.8793 GB, free: 4.758 MB / 0.8386 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.0007962/0.00556, allocations: 0.6011 MB / 0.8799 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.005599, allocations: 8.031 kB / 0.8799 GB, free: 4.109 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.005727, allocations: 52.75 kB / 0.88 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004947/0.006222, allocations: 265.5 kB / 0.8802 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.801e-05/0.00628, allocations: 29.03 kB / 0.8803 GB, free: 3.738 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.00632, allocations: 26.19 kB / 0.8803 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005403/0.00686, allocations: 305.9 kB / 0.8806 GB, free: 3.402 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.006873, allocations: 192 / 0.8806 GB, free: 3.402 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.562e-05/0.006898, allocations: 8.375 kB / 0.8806 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.006911, allocations: 8.375 kB / 0.8806 GB, free: 3.387 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003353/0.007246, allocations: 180.5 kB / 0.8808 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001415/0.008661, allocations: 0.8945 MB / 0.8816 GB, free: 2.277 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.008777, allocations: 75.77 kB / 0.8817 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.341e-05/0.00883, allocations: 35.42 kB / 0.8817 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.008859, allocations: 7.984 kB / 0.8818 GB, free: 2.129 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.008889, allocations: 33.39 kB / 0.8818 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.00889, allocations: 0.6562 kB / 0.8818 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0002891/0.009179, allocations: 126.2 kB / 0.8819 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.009242, allocations: 81.3 kB / 0.882 GB, free: 1.859 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/0.009766, allocations: 452.1 kB / 0.8824 GB, free: 1.402 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.009784, allocations: 25.7 kB / 0.8824 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.009991, allocations: 254.9 kB / 0.8827 GB, free: 1.117 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.134e-05/0.01, allocations: 7.938 kB / 0.8827 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.01015, allocations: 99.34 kB / 0.8828 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002863/0.01043, allocations: 0.5118 MB / 0.8833 GB, free: 492 kB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.453e-05/0.01053, allocations: 47.95 kB / 0.8833 GB, free: 444 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.01065, allocations: 86.56 kB / 0.8834 GB, free: 352 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.01081, allocations: 95.33 kB / 0.8835 GB, free: 248 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.01081, allocations: 4 kB / 0.8835 GB, free: 244 kB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002627/0.01107, allocations: 165.5 kB / 0.8837 GB, free: 72 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.01109, allocations: 4 kB / 0.8837 GB, free: 68 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.01109, allocations: 0 / 0.8837 GB, free: 68 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.01111, allocations: 3.938 kB / 0.8837 GB, free: 64 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.01124, allocations: 31.92 kB / 0.8837 GB, free: 32 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.01124, allocations: 4 kB / 0.8837 GB, free: 28 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.253e-05/0.0113, allocations: 15.84 kB / 0.8837 GB, free: 12 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.579e-05/0.01131, allocations: 4 kB / 0.8837 GB, free: 8 kB / 0.8386 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.0002326/0.01154, allocations: 224.5 kB / 0.8839 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.667e-05/0.0116, allocations: 19.89 kB / 0.884 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002095/0.01181, allocations: 197 kB / 0.8841 GB, free: 15.55 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001807/0.01199, allocations: 268 kB / 0.8844 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001623/0.01215, allocations: 276 kB / 0.8847 GB, free: 15.01 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001463/0.0123, allocations: 268.1 kB / 0.8849 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007685/0.01307, allocations: 0.6287 MB / 0.8855 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.375e-05/0.01314, allocations: 148.8 kB / 0.8857 GB, free: 13.91 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.567e-05/0.01322, allocations: 144.9 kB / 0.8858 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001393/0.01336, allocations: 280 kB / 0.8861 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.0135, allocations: 268.1 kB / 0.8863 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001291/0.01363, allocations: 272.1 kB / 0.8866 GB, free: 12.94 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001377/0.01377, allocations: 272 kB / 0.8869 GB, free: 12.67 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002763/0.01405, allocations: 463.8 kB / 0.8873 GB, free: 12.19 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.01417, allocations: 160.8 kB / 0.8875 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001634/0.01433, allocations: 272 kB / 0.8877 GB, free: 11.75 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.01448, allocations: 156.8 kB / 0.8879 GB, free: 11.59 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.01461, allocations: 272 kB / 0.8881 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.492e-05/0.01469, allocations: 148.8 kB / 0.8883 GB, free: 11.16 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003102/0.015, allocations: 281.1 kB / 0.8885 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.015, allocations: 0 / 0.8885 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002659/0.01526, allocations: 43.84 kB / 0.8886 GB, free: 10.85 MB / 0.8542 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.000223/0.01549, allocations: 218.4 kB / 0.8888 GB, free: 10.62 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002129/0.0157, allocations: 87.89 kB / 0.8889 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.0157, allocations: 0 / 0.8889 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.533e-06/0.0157, allocations: 0 / 0.8889 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000682/0.01639, allocations: 0.7277 MB / 0.8896 GB, free: 9.805 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007405/0.01713, allocations: 0.5112 MB / 0.8901 GB, free: 9.258 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001698/0.0173, allocations: 149.4 kB / 0.8902 GB, free: 9.094 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.703e-05/0.01738, allocations: 37.44 kB / 0.8903 GB, free: 9.059 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.47e-05/0.01744, allocations: 16.5 kB / 0.8903 GB, free: 9.039 MB / 0.8542 GB Notification: Performance of SimCode: time 6.12e-07/0.01744, allocations: 0 / 0.8903 GB, free: 9.039 MB / 0.8542 GB Notification: Performance of Templates: time 0.004455/0.02189, allocations: 1.08 MB / 0.8913 GB, free: 7.988 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 8.539414645987563]