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.00189/0.00189, allocations: 88.39 kB / 20.23 MB, free: 4.176 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.002293/0.002293, allocations: 161.3 kB / 23.54 MB, free: 0.8711 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.535/1.535, 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 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.862/2.862, allocations: 377.8 MB / 0.6232 GB, free: 8.527 MB / 0.5886 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 1.994e-06/1.994e-06, allocations: 0 / 0.8108 GB, free: 2.148 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.77e-05/2.97e-05, allocations: 3.406 kB / 0.8108 GB, free: 2.145 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002097/0.002127, allocations: 0.7207 MB / 0.8115 GB, free: 1.441 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002445/0.002372, allocations: 51.72 kB / 0.8115 GB, free: 1.391 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.265e-05/0.002444, allocations: 4.625 kB / 0.8116 GB, free: 1.387 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.002561, allocations: 12.92 kB / 0.8116 GB, free: 1.375 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 0.0001138/0.002674, allocations: 15.92 kB / 0.8116 GB, free: 1.359 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 6.988e-05/0.002744, allocations: 15.98 kB / 0.8116 GB, free: 1.344 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 0.0002583/0.003003, allocations: 189 kB / 0.8118 GB, free: 1.16 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002735/0.003276, allocations: 141.3 kB / 0.8119 GB, free: 1.02 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.003457, allocations: 143.8 kB / 0.812 GB, free: 0.8789 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.003625, allocations: 103.7 kB / 0.8121 GB, free: 0.7773 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 5.498e-05/0.00368, allocations: 24.66 kB / 0.8122 GB, free: 0.7539 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 4.143e-05/0.003721, allocations: 24 kB / 0.8122 GB, free: 0.7305 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 9.029e-05/0.003812, allocations: 76.34 kB / 0.8123 GB, free: 0.6562 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.003917, allocations: 72.8 kB / 0.8123 GB, free: 0.5859 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 0.000434/0.004351, allocations: 382.7 kB / 0.8127 GB, free: 216 kB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.004354, allocations: 0 / 0.8127 GB, free: 216 kB / 0.7605 GB Notification: Performance of FrontEnd: time 8.62e-07/0.004354, allocations: 0.7188 kB / 0.8127 GB, free: 216 kB / 0.7605 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.004363, allocations: 4 kB / 0.8127 GB, free: 212 kB / 0.7605 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.0007558/0.005118, allocations: 483.9 kB / 0.8132 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.005158, allocations: 12.03 kB / 0.8132 GB, free: 15.69 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.005266, allocations: 52.7 kB / 0.8132 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.005717, allocations: 270.8 kB / 0.8135 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.529e-05/0.005773, allocations: 29.03 kB / 0.8135 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.005812, allocations: 25.34 kB / 0.8135 GB, free: 15.29 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005757/0.006388, allocations: 344.2 kB / 0.8139 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.006398, allocations: 192 / 0.8139 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.006427, allocations: 13.7 kB / 0.8139 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.006437, allocations: 8.375 kB / 0.8139 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004456/0.006882, allocations: 264.5 kB / 0.8141 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001214/0.008096, allocations: 0.7289 MB / 0.8148 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001032/0.0082, allocations: 57.19 kB / 0.8149 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.472e-05/0.008254, allocations: 37.7 kB / 0.8149 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.008272, allocations: 0 / 0.8149 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.008309, allocations: 36.25 kB / 0.815 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=2): time 8.11e-07/0.00831, allocations: 0 / 0.815 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of matching and sorting (n=2): time 0.0003032/0.008613, allocations: 117.4 kB / 0.8151 GB, free: 13.63 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.008683, allocations: 86.02 kB / 0.8152 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.009081, allocations: 325.6 kB / 0.8155 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.009103, allocations: 26.23 kB / 0.8155 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.009267, allocations: 192.2 kB / 0.8157 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.177e-05/0.009279, allocations: 8.547 kB / 0.8157 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.009381, allocations: 66.17 kB / 0.8158 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000189/0.00957, allocations: 326.8 kB / 0.8161 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.009675, allocations: 57.17 kB / 0.8161 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.009792, allocations: 77.66 kB / 0.8162 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.009946, allocations: 93.62 kB / 0.8163 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.009948, allocations: 0.5312 kB / 0.8163 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002946/0.01024, allocations: 182.8 kB / 0.8165 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.01026, allocations: 8 kB / 0.8165 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.01026, allocations: 0 / 0.8165 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.01028, allocations: 3.938 kB / 0.8165 GB, free: 12.15 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.01041, allocations: 25.14 kB / 0.8165 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.01041, allocations: 4 kB / 0.8165 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.82e-05/0.01048, allocations: 11.89 kB / 0.8165 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.0105, allocations: 5.031 kB / 0.8165 GB, free: 12.11 MB / 0.7761 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.0002089/0.01071, allocations: 202.4 kB / 0.8167 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.977e-05/0.01077, allocations: 20.75 kB / 0.8167 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001862/0.01095, allocations: 155.4 kB / 0.8169 GB, free: 11.72 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000101/0.01105, allocations: 192.1 kB / 0.8171 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.084e-05/0.01114, allocations: 177.1 kB / 0.8172 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-05/0.01124, allocations: 180.3 kB / 0.8174 GB, free: 11.16 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006147/0.01185, allocations: 446.1 kB / 0.8178 GB, free: 10.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-05/0.01191, allocations: 113 kB / 0.8179 GB, free: 10.57 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.807e-05/0.01197, allocations: 104.9 kB / 0.818 GB, free: 10.46 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.382e-05/0.01207, allocations: 181.1 kB / 0.8182 GB, free: 10.28 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.696e-05/0.01216, allocations: 180.3 kB / 0.8184 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.869e-05/0.01226, allocations: 185.4 kB / 0.8186 GB, free: 9.906 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.316e-05/0.01236, allocations: 180.2 kB / 0.8187 GB, free: 9.723 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002317/0.01259, allocations: 319.7 kB / 0.819 GB, free: 9.387 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.3e-05/0.01268, allocations: 120.9 kB / 0.8191 GB, free: 9.262 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.01279, allocations: 181.6 kB / 0.8193 GB, free: 9.078 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.01291, allocations: 105 kB / 0.8194 GB, free: 8.969 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.01302, allocations: 188.1 kB / 0.8196 GB, free: 8.777 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.779e-05/0.01307, allocations: 110.5 kB / 0.8197 GB, free: 8.664 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003074/0.01338, allocations: 229.2 kB / 0.8199 GB, free: 8.438 MB / 0.7761 GB Notification: Performance of sort global known variables: time 9.1e-08/0.01338, allocations: 0 / 0.8199 GB, free: 8.438 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002967/0.01368, allocations: 51.73 kB / 0.82 GB, free: 8.387 MB / 0.7761 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.000153/0.01383, allocations: 177.4 kB / 0.8201 GB, free: 8.207 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000169/0.014, allocations: 67.89 kB / 0.8202 GB, free: 8.141 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.014, allocations: 0 / 0.8202 GB, free: 8.141 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.178e-06/0.01401, allocations: 4 kB / 0.8202 GB, free: 8.137 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005217/0.01453, allocations: 482.5 kB / 0.8207 GB, free: 7.664 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000708/0.01523, allocations: 497.9 kB / 0.8211 GB, free: 7.145 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.01544, allocations: 160.4 kB / 0.8213 GB, free: 6.973 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.971e-05/0.01552, allocations: 38.11 kB / 0.8213 GB, free: 6.938 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.318e-05/0.01557, allocations: 16.5 kB / 0.8214 GB, free: 6.922 MB / 0.7761 GB Notification: Performance of SimCode: time 5.21e-07/0.01557, allocations: 2.75 kB / 0.8214 GB, free: 6.922 MB / 0.7761 GB Notification: Performance of Templates: time 0.004186/0.01975, allocations: 1.085 MB / 0.8224 GB, free: 5.883 MB / 0.7761 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: 7.79556776303798]