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.00165/0.00165, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002068/0.002068, allocations: 162.3 kB / 23.01 MB, free: 4.598 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.471/1.471, allocations: 177.2 MB / 203.4 MB, free: 8.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.697/2.697, allocations: 359.1 MB / 0.6044 GB, free: 14.9 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: 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.002491/0.002491, allocations: 63.89 kB / 0.9515 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3395, allocations: 169.9 MB / 1.117 GB, free: 2.609 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002157/0.3417, allocations: 0.7037 MB / 1.118 GB, free: 1.906 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002293/0.3419, allocations: 51.83 kB / 1.118 GB, free: 1.855 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.347e-05/0.342, allocations: 3.938 kB / 1.118 GB, free: 1.852 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.3421, allocations: 15.86 kB / 1.118 GB, free: 1.836 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.3422, allocations: 11.88 kB / 1.118 GB, free: 1.824 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 5.304e-05/0.3423, allocations: 15.98 kB / 1.118 GB, free: 1.809 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000238/0.3425, allocations: 183.6 kB / 1.118 GB, free: 1.629 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002739/0.3428, allocations: 149.4 kB / 1.119 GB, free: 1.48 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.3429, allocations: 99.66 kB / 1.119 GB, free: 1.383 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.3431, allocations: 127.4 kB / 1.119 GB, free: 1.258 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.777e-05/0.3431, allocations: 24 kB / 1.119 GB, free: 1.234 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 4.123e-05/0.3432, allocations: 28 kB / 1.119 GB, free: 1.207 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.278e-05/0.3433, allocations: 71.78 kB / 1.119 GB, free: 1.137 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.3434, allocations: 95.41 kB / 1.119 GB, free: 1.043 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.3438, allocations: 374.5 kB / 1.119 GB, free: 0.6758 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3438, allocations: 0 / 1.119 GB, free: 0.6758 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3438, allocations: 0 / 1.119 GB, free: 0.6758 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.144e-05/0.3438, allocations: 0 / 1.119 GB, free: 0.6758 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.0007608/0.3445, allocations: 489.5 kB / 1.12 GB, free: 168 kB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.3446, allocations: 12.03 kB / 1.12 GB, free: 156 kB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.117e-05/0.3447, allocations: 32.75 kB / 1.12 GB, free: 124 kB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004576/0.3451, allocations: 259.5 kB / 1.12 GB, free: 15.84 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.84e-05/0.3452, allocations: 33.02 kB / 1.12 GB, free: 15.81 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.794e-05/0.3452, allocations: 24.38 kB / 1.12 GB, free: 15.79 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005331/0.3457, allocations: 344.2 kB / 1.12 GB, free: 15.43 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.3457, allocations: 4.125 kB / 1.12 GB, free: 15.43 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.3458, allocations: 19.88 kB / 1.12 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3458, allocations: 4 kB / 1.12 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.3462, allocations: 259.8 kB / 1.121 GB, free: 15.15 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.3473, allocations: 0.7198 MB / 1.121 GB, free: 14.4 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 9.292e-05/0.3474, allocations: 61.14 kB / 1.121 GB, free: 14.32 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.682e-05/0.3475, allocations: 33.75 kB / 1.122 GB, free: 14.28 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.3475, allocations: 7.984 kB / 1.122 GB, free: 14.27 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.3475, allocations: 38.5 kB / 1.122 GB, free: 14.23 MB / 1.076 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3475, allocations: 0 / 1.122 GB, free: 14.23 MB / 1.076 GB Notification: Performance of matching and sorting (n=2): time 0.00027/0.3478, allocations: 117.5 kB / 1.122 GB, free: 14.11 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.3478, allocations: 77.11 kB / 1.122 GB, free: 14.01 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003572/0.3482, allocations: 325.6 kB / 1.122 GB, free: 13.68 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.3482, allocations: 29.64 kB / 1.122 GB, free: 13.65 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.3484, allocations: 200.4 kB / 1.122 GB, free: 13.45 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 9.778e-06/0.3484, allocations: 8 kB / 1.122 GB, free: 13.44 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.399e-05/0.3485, allocations: 65.64 kB / 1.122 GB, free: 13.37 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001861/0.3486, allocations: 326.8 kB / 1.123 GB, free: 13.04 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.776e-05/0.3487, allocations: 55.95 kB / 1.123 GB, free: 12.99 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.3488, allocations: 77.66 kB / 1.123 GB, free: 12.91 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.349, allocations: 97.67 kB / 1.123 GB, free: 12.8 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.349, allocations: 0 / 1.123 GB, free: 12.8 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002599/0.3492, allocations: 173.5 kB / 1.123 GB, free: 12.63 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.3493, allocations: 7.938 kB / 1.123 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3493, allocations: 4 kB / 1.123 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.3493, allocations: 0 / 1.123 GB, free: 12.62 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.3494, allocations: 27.98 kB / 1.123 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.3494, allocations: 3.938 kB / 1.123 GB, free: 12.59 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.47e-05/0.3495, allocations: 15.89 kB / 1.123 GB, free: 12.57 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.3495, allocations: 8 kB / 1.123 GB, free: 12.56 MB / 1.076 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.0002012/0.3497, allocations: 193.5 kB / 1.123 GB, free: 12.36 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.581e-05/0.3497, allocations: 23.8 kB / 1.123 GB, free: 12.34 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001687/0.3499, allocations: 147.4 kB / 1.123 GB, free: 12.19 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.499e-05/0.35, allocations: 184.3 kB / 1.124 GB, free: 12 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.958e-05/0.3501, allocations: 188.9 kB / 1.124 GB, free: 11.81 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.104e-05/0.3502, allocations: 180.2 kB / 1.124 GB, free: 11.62 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003264/0.3505, allocations: 444.8 kB / 1.124 GB, free: 11.15 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.74e-05/0.3505, allocations: 104.9 kB / 1.125 GB, free: 11.04 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.309e-05/0.3506, allocations: 101 kB / 1.125 GB, free: 10.94 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.09e-05/0.3507, allocations: 184.4 kB / 1.125 GB, free: 10.75 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.905e-05/0.3507, allocations: 188.2 kB / 1.125 GB, free: 10.56 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.441e-05/0.3508, allocations: 184.2 kB / 1.125 GB, free: 10.37 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.906e-05/0.3509, allocations: 184.2 kB / 1.125 GB, free: 10.18 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001876/0.3511, allocations: 331.5 kB / 1.126 GB, free: 9.836 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.98e-05/0.3512, allocations: 116.9 kB / 1.126 GB, free: 9.715 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.3513, allocations: 184.2 kB / 1.126 GB, free: 9.527 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.3514, allocations: 108.9 kB / 1.126 GB, free: 9.414 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.3515, allocations: 180.2 kB / 1.126 GB, free: 9.23 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.598e-05/0.3515, allocations: 112.9 kB / 1.126 GB, free: 9.113 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0002527/0.3518, allocations: 225.2 kB / 1.127 GB, free: 8.898 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.3518, allocations: 0 / 1.127 GB, free: 8.898 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002832/0.3521, allocations: 47.78 kB / 1.127 GB, free: 8.852 MB / 1.076 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.0001459/0.3522, allocations: 178.5 kB / 1.127 GB, free: 8.668 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001909/0.3524, allocations: 79.95 kB / 1.127 GB, free: 8.59 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3524, allocations: 0 / 1.127 GB, free: 8.59 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 4.709e-06/0.3524, allocations: 3.938 kB / 1.127 GB, free: 8.586 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004798/0.3529, allocations: 470.2 kB / 1.127 GB, free: 8.125 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007095/0.3536, allocations: 480 kB / 1.128 GB, free: 7.621 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.3538, allocations: 165.3 kB / 1.128 GB, free: 7.445 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 8.803e-05/0.3539, allocations: 37.45 kB / 1.128 GB, free: 7.402 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.731e-05/0.3539, allocations: 12.5 kB / 1.128 GB, free: 7.391 MB / 1.076 GB Notification: Performance of SimCode: time 3.81e-07/0.3539, allocations: 0 / 1.128 GB, free: 7.391 MB / 1.076 GB Notification: Performance of Templates: time 0.004505/0.3584, allocations: 1.067 MB / 1.129 GB, free: 6.344 MB / 1.076 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 -s ida -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/jenkins1/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: 8.64839682704769]