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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001789/0.001789, allocations: 105.8 kB / 18.84 MB, free: 3.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002331/0.002331, allocations: 192.3 kB / 22.11 MB, free: 4.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.524/1.524, allocations: 225.6 MB / 250.8 MB, free: 2.902 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.041/3.041, allocations: 495.8 MB / 0.7831 GB, free: 12.27 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002079/0.002079, allocations: 64.14 kB / 1.137 GB, free: 12.23 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208/1.21, allocations: 173.6 MB / 1.307 GB, free: 33.75 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002827/1.213, allocations: 0.7268 MB / 1.307 GB, free: 33.3 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003824/1.214, allocations: 48.73 kB / 1.307 GB, free: 33.26 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/1.214, allocations: 6.719 kB / 1.307 GB, free: 33.25 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000209/1.214, allocations: 18.19 kB / 1.308 GB, free: 33.24 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002283/1.214, allocations: 22.06 kB / 1.308 GB, free: 33.23 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 7.792e-05/1.214, allocations: 14.16 kB / 1.308 GB, free: 33.22 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003813/1.215, allocations: 185 kB / 1.308 GB, free: 33.14 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004276/1.215, allocations: 143.3 kB / 1.308 GB, free: 33.07 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/1.215, allocations: 105.2 kB / 1.308 GB, free: 33.02 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001924/1.215, allocations: 113.2 kB / 1.308 GB, free: 32.96 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 7.737e-05/1.215, allocations: 22.47 kB / 1.308 GB, free: 32.96 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.269e-05/1.215, allocations: 24.97 kB / 1.308 GB, free: 32.96 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.00011/1.216, allocations: 72.88 kB / 1.308 GB, free: 32.91 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001665/1.216, allocations: 123.3 kB / 1.308 GB, free: 32.82 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005022/1.216, allocations: 388.6 kB / 1.309 GB, free: 32.68 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 9.989e-06/1.216, allocations: 0 / 1.309 GB, free: 32.68 MB / 1.061 GB Notification: Performance of FrontEnd: time 4.638e-06/1.216, allocations: 0 / 1.309 GB, free: 32.68 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.119e-05/1.216, allocations: 0 / 1.309 GB, free: 32.68 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.0007621/1.217, allocations: 485.5 kB / 1.309 GB, free: 32.28 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/1.217, allocations: 8.688 kB / 1.309 GB, free: 32.28 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.393e-05/1.217, allocations: 38.55 kB / 1.309 GB, free: 32.26 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003971/1.218, allocations: 260.5 kB / 1.309 GB, free: 32.06 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.07e-05/1.218, allocations: 30.95 kB / 1.309 GB, free: 32.05 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/1.218, allocations: 24.97 kB / 1.309 GB, free: 32.04 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/1.218, allocations: 336.8 kB / 1.31 GB, free: 31.9 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/1.218, allocations: 192 / 1.31 GB, free: 31.9 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/1.218, allocations: 14.78 kB / 1.31 GB, free: 31.89 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/1.218, allocations: 5.844 kB / 1.31 GB, free: 31.89 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000356/1.219, allocations: 266.6 kB / 1.31 GB, free: 31.81 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/1.22, allocations: 0.8766 MB / 1.311 GB, free: 31.25 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 9.636e-05/1.22, allocations: 59.25 kB / 1.311 GB, free: 31.2 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.19e-05/1.22, allocations: 33.34 kB / 1.311 GB, free: 31.17 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/1.22, allocations: 6.719 kB / 1.311 GB, free: 31.17 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/1.22, allocations: 34.56 kB / 1.311 GB, free: 31.12 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.283e-06/1.22, allocations: 0 / 1.311 GB, free: 31.12 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0003337/1.22, allocations: 136.4 kB / 1.311 GB, free: 31.05 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/1.22, allocations: 80.08 kB / 1.311 GB, free: 30.95 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004728/1.221, allocations: 479.6 kB / 1.312 GB, free: 30.74 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/1.221, allocations: 25.7 kB / 1.312 GB, free: 30.71 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/1.221, allocations: 182.7 kB / 1.312 GB, free: 30.55 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.045e-05/1.221, allocations: 7.422 kB / 1.312 GB, free: 30.55 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.614e-05/1.221, allocations: 43.78 kB / 1.312 GB, free: 30.52 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 9.172e-05/1.221, allocations: 341.8 kB / 1.312 GB, free: 30.19 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.872e-05/1.221, allocations: 61.69 kB / 1.312 GB, free: 30.17 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.87e-05/1.221, allocations: 70.22 kB / 1.312 GB, free: 30.14 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001285/1.222, allocations: 100.3 kB / 1.313 GB, free: 30.08 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/1.222, allocations: 6.844 kB / 1.313 GB, free: 30.08 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002531/1.222, allocations: 190.3 kB / 1.313 GB, free: 29.98 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/1.222, allocations: 9 kB / 1.313 GB, free: 29.98 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/1.222, allocations: 0 / 1.313 GB, free: 29.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.686e-05/1.222, allocations: 2.531 kB / 1.313 GB, free: 29.98 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/1.222, allocations: 23.81 kB / 1.313 GB, free: 29.98 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/1.222, allocations: 0 / 1.313 GB, free: 29.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.247e-05/1.222, allocations: 27.73 kB / 1.313 GB, free: 29.96 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/1.222, allocations: 5.094 kB / 1.313 GB, free: 29.96 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.0001901/1.222, allocations: 203 kB / 1.313 GB, free: 29.81 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.147e-05/1.222, allocations: 36.56 kB / 1.313 GB, free: 29.79 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001584/1.223, allocations: 156.9 kB / 1.313 GB, free: 29.65 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.242e-05/1.223, allocations: 180.2 kB / 1.313 GB, free: 29.47 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.63e-05/1.223, allocations: 176.3 kB / 1.313 GB, free: 29.29 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.255e-05/1.223, allocations: 183.3 kB / 1.314 GB, free: 29.11 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002588/1.223, allocations: 0.4911 MB / 1.314 GB, free: 28.66 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.1e-05/1.223, allocations: 108.3 kB / 1.314 GB, free: 28.55 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.996e-05/1.223, allocations: 104.9 kB / 1.314 GB, free: 28.44 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.861e-05/1.223, allocations: 179.1 kB / 1.315 GB, free: 28.26 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.969e-05/1.223, allocations: 177.2 kB / 1.315 GB, free: 28.08 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.909e-05/1.223, allocations: 196.2 kB / 1.315 GB, free: 27.88 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.893e-05/1.223, allocations: 183.1 kB / 1.315 GB, free: 27.7 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/1.223, allocations: 326.3 kB / 1.315 GB, free: 27.37 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.709e-05/1.223, allocations: 147.1 kB / 1.316 GB, free: 27.24 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.672e-05/1.223, allocations: 195.1 kB / 1.316 GB, free: 27.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.577e-05/1.223, allocations: 104.7 kB / 1.316 GB, free: 26.94 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.019e-05/1.224, allocations: 183.1 kB / 1.316 GB, free: 26.75 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/1.224, allocations: 105 kB / 1.316 GB, free: 26.64 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003607/1.224, allocations: 362 kB / 1.316 GB, free: 26.49 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/1.224, allocations: 0 / 1.316 GB, free: 26.49 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002874/1.224, allocations: 33.92 kB / 1.316 GB, free: 26.48 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.0001289/1.224, allocations: 179.2 kB / 1.317 GB, free: 26.31 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001799/1.224, allocations: 79.19 kB / 1.317 GB, free: 26.29 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.224, allocations: 3.938 kB / 1.317 GB, free: 26.28 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 1.462e-06/1.224, allocations: 0 / 1.317 GB, free: 26.28 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003693/1.225, allocations: 487.6 kB / 1.317 GB, free: 25.82 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005627/1.225, allocations: 0.4913 MB / 1.318 GB, free: 25.47 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/1.226, allocations: 0.7654 MB / 1.318 GB, free: 24.77 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001066/1.226, allocations: 63.81 kB / 1.318 GB, free: 24.76 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.647e-05/1.226, allocations: 18.94 kB / 1.318 GB, free: 24.75 MB / 1.061 GB Notification: Performance of SimCode: time 6.71e-07/1.226, allocations: 0 / 1.318 GB, free: 24.75 MB / 1.061 GB Notification: Performance of Templates: time 0.004816/1.231, allocations: 1.761 MB / 1.32 GB, free: 24.6 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/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: 9.992200344800949]