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.001935/0.001935, allocations: 79.28 kB / 19.18 MB, free: 2.516 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.001844/0.001844, allocations: 161.8 kB / 22.46 MB, free: 5.375 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.598/1.598, allocations: 177.1 MB / 202.8 MB, free: 9.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.902/2.902, allocations: 377.8 MB / 0.6221 GB, free: 12.6 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 2.264e-06/2.264e-06, allocations: 0 / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.744e-05/2.971e-05, allocations: 6.219 kB / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001899/0.001929, allocations: 0.7187 MB / 0.9821 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002138/0.002143, allocations: 47.78 kB / 0.9822 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.281e-05/0.002216, allocations: 4 kB / 0.9822 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.002331, allocations: 15.86 kB / 0.9822 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.002473, allocations: 15.86 kB / 0.9822 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.925e-05/0.002532, allocations: 23.97 kB / 0.9822 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.002788, allocations: 183.5 kB / 0.9824 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002689/0.003057, allocations: 133.4 kB / 0.9825 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.003216, allocations: 143.8 kB / 0.9827 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.003369, allocations: 103.7 kB / 0.9828 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.828e-05/0.003427, allocations: 28 kB / 0.9828 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 4.436e-05/0.003472, allocations: 31.94 kB / 0.9828 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.947e-05/0.003561, allocations: 71.77 kB / 0.9829 GB, free: 10.47 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.003685, allocations: 75.77 kB / 0.9829 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004223/0.004108, allocations: 378.7 kB / 0.9833 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.004111, allocations: 0 / 0.9833 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of FrontEnd: time 6.31e-07/0.004111, allocations: 0 / 0.9833 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.478e-06/0.004121, allocations: 0 / 0.9833 GB, free: 10.03 MB / 0.9356 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.0007077/0.004829, allocations: 489.5 kB / 0.9838 GB, free: 9.516 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.004868, allocations: 8.031 kB / 0.9838 GB, free: 9.508 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.983e-05/0.004948, allocations: 40.7 kB / 0.9838 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004699/0.005418, allocations: 254.9 kB / 0.9841 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.059e-05/0.005469, allocations: 25.03 kB / 0.9841 GB, free: 9.168 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.005512, allocations: 28.31 kB / 0.9841 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005809/0.006093, allocations: 352.2 kB / 0.9845 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.006105, allocations: 192 / 0.9845 GB, free: 8.785 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.006134, allocations: 8.375 kB / 0.9845 GB, free: 8.777 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.006145, allocations: 8.375 kB / 0.9845 GB, free: 8.77 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004394/0.006584, allocations: 255.8 kB / 0.9847 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.007797, allocations: 0.7352 MB / 0.9854 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 9.647e-05/0.007894, allocations: 57.19 kB / 0.9855 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.799e-05/0.007972, allocations: 37.77 kB / 0.9855 GB, free: 7.629 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.008003, allocations: 3.938 kB / 0.9855 GB, free: 7.625 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.008035, allocations: 34.56 kB / 0.9856 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.008036, allocations: 0 / 0.9856 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of matching and sorting (n=2): time 0.0002968/0.008333, allocations: 117.4 kB / 0.9857 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.255e-05/0.008405, allocations: 81.11 kB / 0.9857 GB, free: 7.363 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004/0.008805, allocations: 321.7 kB / 0.9861 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.008826, allocations: 25.7 kB / 0.9861 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.008991, allocations: 192.4 kB / 0.9863 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.174e-05/0.009003, allocations: 11.95 kB / 0.9863 GB, free: 6.805 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.838e-05/0.009101, allocations: 61.69 kB / 0.9863 GB, free: 6.738 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002729/0.009374, allocations: 326.8 kB / 0.9866 GB, free: 6.41 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.009474, allocations: 59.95 kB / 0.9867 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.009587, allocations: 81.64 kB / 0.9868 GB, free: 6.266 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.009746, allocations: 97.61 kB / 0.9869 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.009748, allocations: 0 / 0.9869 GB, free: 6.164 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002756/0.01002, allocations: 169.5 kB / 0.987 GB, free: 5.992 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.01004, allocations: 4 kB / 0.987 GB, free: 5.988 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/0.01005, allocations: 3.984 kB / 0.987 GB, free: 5.984 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.01007, allocations: 7.938 kB / 0.987 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/0.01023, allocations: 31.94 kB / 0.9871 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.01023, allocations: 7.875 kB / 0.9871 GB, free: 5.938 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.795e-05/0.01029, allocations: 15.89 kB / 0.9871 GB, free: 5.922 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.01031, allocations: 7.984 kB / 0.9871 GB, free: 5.914 MB / 0.9356 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.0002195/0.01053, allocations: 198 kB / 0.9873 GB, free: 5.711 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.377e-05/0.01058, allocations: 11.91 kB / 0.9873 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.01078, allocations: 167.3 kB / 0.9875 GB, free: 5.523 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-05/0.01086, allocations: 184.2 kB / 0.9876 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.579e-05/0.01095, allocations: 180.2 kB / 0.9878 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001534/0.0111, allocations: 188.2 kB / 0.988 GB, free: 4.961 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003825/0.01148, allocations: 440.7 kB / 0.9884 GB, free: 4.492 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.039e-05/0.01153, allocations: 105 kB / 0.9885 GB, free: 4.383 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.957e-05/0.0116, allocations: 105.1 kB / 0.9886 GB, free: 4.273 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/0.01171, allocations: 188.2 kB / 0.9888 GB, free: 4.082 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-05/0.0118, allocations: 180.3 kB / 0.989 GB, free: 3.898 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.133e-05/0.01189, allocations: 180.2 kB / 0.9891 GB, free: 3.715 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.659e-05/0.01198, allocations: 180.2 kB / 0.9893 GB, free: 3.531 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002127/0.0122, allocations: 323.7 kB / 0.9896 GB, free: 3.191 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.0123, allocations: 120.9 kB / 0.9897 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.01246, allocations: 180.2 kB / 0.9899 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.01257, allocations: 109 kB / 0.99 GB, free: 2.77 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.01276, allocations: 188.2 kB / 0.9902 GB, free: 2.578 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.172e-05/0.01281, allocations: 108.9 kB / 0.9903 GB, free: 2.465 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003485/0.01316, allocations: 229.2 kB / 0.9905 GB, free: 2.242 MB / 0.9356 GB Notification: Performance of sort global known variables: time 9.1e-08/0.01316, allocations: 0 / 0.9905 GB, free: 2.242 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003127/0.01347, allocations: 51.73 kB / 0.9906 GB, free: 2.191 MB / 0.9356 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.0001656/0.01364, allocations: 170.5 kB / 0.9907 GB, free: 2.016 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001767/0.01382, allocations: 79.88 kB / 0.9908 GB, free: 1.938 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.01382, allocations: 4 kB / 0.9908 GB, free: 1.934 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.01382, allocations: 0 / 0.9908 GB, free: 1.934 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005563/0.01438, allocations: 478.8 kB / 0.9913 GB, free: 1.465 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007809/0.01516, allocations: 468.2 kB / 0.9917 GB, free: 0.9805 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.01533, allocations: 165.3 kB / 0.9919 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001217/0.01545, allocations: 37.45 kB / 0.9919 GB, free: 0.7656 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/0.0155, allocations: 16.5 kB / 0.9919 GB, free: 0.75 MB / 0.9356 GB Notification: Performance of SimCode: time 6.92e-07/0.0155, allocations: 0 / 0.9919 GB, free: 0.75 MB / 0.9356 GB Notification: Performance of Templates: time 0.004809/0.02031, allocations: 1.084 MB / 0.993 GB, free: 15.68 MB / 0.9512 GB " [Timeout remaining time 300] 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/jenkins/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: 8.323165472596884]