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.001109/0.001109, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001472/0.002582, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.00095/0.00095, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001166/0.002116, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9073/0.9073, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08017/0.9875, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.803/1.803, allocations: 378.4 MB / 0.6079 GB, free: 7.691 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.479/2.282, allocations: 123.3 MB / 0.7283 GB, free: 5.738 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.473e-06/1.473e-06, allocations: 0 / 0.7296 GB, free: 4.449 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.179e-05/2.326e-05, allocations: 5.344 kB / 0.7296 GB, free: 4.445 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.001766/0.001789, allocations: 0.7868 MB / 0.7304 GB, free: 3.688 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0001082/0.001897, allocations: 52.47 kB / 0.7305 GB, free: 3.637 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.429e-05/0.001951, allocations: 4 kB / 0.7305 GB, free: 3.633 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 7.039e-05/0.002022, allocations: 18.08 kB / 0.7305 GB, free: 3.617 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 7.601e-05/0.002098, allocations: 12.91 kB / 0.7305 GB, free: 3.605 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 4.214e-05/0.00214, allocations: 19.98 kB / 0.7305 GB, free: 3.586 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.002343, allocations: 182.9 kB / 0.7307 GB, free: 3.434 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003237/0.00558, allocations: 150.2 kB / 0.7308 GB, free: 3.281 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.005796, allocations: 185.4 kB / 0.731 GB, free: 3.102 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.005901, allocations: 87.78 kB / 0.7311 GB, free: 3.016 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 4.272e-05/0.005944, allocations: 20 kB / 0.7311 GB, free: 2.996 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 2.972e-05/0.005973, allocations: 20 kB / 0.7311 GB, free: 2.977 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 5.819e-05/0.006032, allocations: 55.75 kB / 0.7312 GB, free: 2.922 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.788e-05/0.006089, allocations: 51.81 kB / 0.7312 GB, free: 2.871 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.006305, allocations: 191.7 kB / 0.7314 GB, free: 2.684 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.178e-05/0.006316, allocations: 0 / 0.7314 GB, free: 2.684 MB / 0.698 GB Notification: Performance of FrontEnd: time 7.42e-07/0.006317, allocations: 0.5312 kB / 0.7314 GB, free: 2.684 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.275e-05/0.00633, allocations: 1.5 kB / 0.7314 GB, free: 2.684 MB / 0.698 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.0005503/0.00688, allocations: 495.8 kB / 0.7319 GB, free: 2.172 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.006912, allocations: 12.03 kB / 0.7319 GB, free: 2.16 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.548e-05/0.006978, allocations: 40.91 kB / 0.7319 GB, free: 2.121 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.007239, allocations: 235.1 kB / 0.7322 GB, free: 1.863 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.854e-05/0.007278, allocations: 25.53 kB / 0.7322 GB, free: 1.84 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.00731, allocations: 28.38 kB / 0.7322 GB, free: 1.812 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.007599, allocations: 224.5 kB / 0.7324 GB, free: 1.578 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.007609, allocations: 1.5 kB / 0.7324 GB, free: 1.578 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.834e-05/0.007627, allocations: 8.375 kB / 0.7324 GB, free: 1.57 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.007636, allocations: 8.375 kB / 0.7324 GB, free: 1.562 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.007756, allocations: 89.48 kB / 0.7325 GB, free: 1.473 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003686/0.01144, allocations: 0.5309 MB / 0.733 GB, free: 0.918 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.354e-05/0.0115, allocations: 41.08 kB / 0.7331 GB, free: 0.8594 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.641e-05/0.01151, allocations: 9.844 kB / 0.7331 GB, free: 0.8438 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.01153, allocations: 4 kB / 0.7331 GB, free: 0.8398 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.049e-05/0.01155, allocations: 31.91 kB / 0.7331 GB, free: 0.8008 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.01155, allocations: 0 / 0.7331 GB, free: 0.8008 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.0001373/0.01169, allocations: 50.28 kB / 0.7332 GB, free: 0.7461 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.01172, allocations: 82.23 kB / 0.7333 GB, free: 0.6484 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003/0.01202, allocations: 268.6 kB / 0.7335 GB, free: 388 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.488e-06/0.01203, allocations: 25.7 kB / 0.7335 GB, free: 356 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.999e-05/0.01212, allocations: 181 kB / 0.7337 GB, free: 172 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.083e-06/0.01213, allocations: 4 kB / 0.7337 GB, free: 168 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/0.0122, allocations: 61.59 kB / 0.7338 GB, free: 100 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.671e-05/0.01229, allocations: 331.6 kB / 0.7341 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.82e-05/0.01232, allocations: 11.98 kB / 0.7341 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.64e-05/0.01236, allocations: 26.33 kB / 0.7341 GB, free: 15.72 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.566e-05/0.01242, allocations: 61.58 kB / 0.7342 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01242, allocations: 0.9062 kB / 0.7342 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001138/0.01254, allocations: 85.58 kB / 0.7343 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.01255, allocations: 4.781 kB / 0.7343 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.01255, allocations: 0 / 0.7343 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.01256, allocations: 1.406 kB / 0.7343 GB, free: 15.56 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.01268, allocations: 31.98 kB / 0.7343 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.01268, allocations: 3.938 kB / 0.7343 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.974e-05/0.01272, allocations: 15.89 kB / 0.7343 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.01273, allocations: 8.562 kB / 0.7343 GB, free: 15.5 MB / 0.7136 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 (idxLasTruAllFal.booToInt[6].y,idxLasTruAllFal.booToInt[5].y,idxLasTruAllFal.booToInt[4].y,idxLasTruAllFal.booToInt[3].y,idxLasTruAllFal.booToInt[2].y,idxLasTruAllFal.booToInt[1].y,idxLasTruAllFal.y,idxLasTru.booToInt[6].y,idxLasTru.booToInt[5].y,idxLasTru.booToInt[4].y,idxLasTru.booToInt[3].y,idxLasTru.booToInt[2].y,idxLasTru.booToInt[1].y,idxLasTru.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 9.578e-05/0.01283, allocations: 126.1 kB / 0.7344 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.921e-05/0.01287, allocations: 13.56 kB / 0.7345 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001254/0.01299, allocations: 143.5 kB / 0.7346 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.772e-05/0.01304, allocations: 184.2 kB / 0.7348 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.376e-05/0.01309, allocations: 184.2 kB / 0.7349 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.793e-05/0.01313, allocations: 180.2 kB / 0.7351 GB, free: 14.65 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.01334, allocations: 382.6 kB / 0.7355 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.463e-05/0.01337, allocations: 101 kB / 0.7356 GB, free: 14.15 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.503e-05/0.01339, allocations: 104.9 kB / 0.7357 GB, free: 14.04 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.502e-05/0.01344, allocations: 118.1 kB / 0.7358 GB, free: 13.92 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.094e-05/0.01348, allocations: 176.3 kB / 0.736 GB, free: 13.74 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/0.01352, allocations: 184.2 kB / 0.7361 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.197e-05/0.01357, allocations: 181.5 kB / 0.7363 GB, free: 13.37 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.552e-05/0.01361, allocations: 184.2 kB / 0.7365 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/0.01372, allocations: 319.9 kB / 0.7368 GB, free: 12.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.014, allocations: 184.2 kB / 0.737 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.875e-05/0.01408, allocations: 105.9 kB / 0.7371 GB, free: 12.55 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.01412, allocations: 184.2 kB / 0.7372 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.01415, allocations: 101.5 kB / 0.7373 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.003087/0.01724, allocations: 78.78 kB / 0.7374 GB, free: 12.17 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.01724, allocations: 1.094 kB / 0.7374 GB, free: 12.17 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002158/0.01745, allocations: 47.78 kB / 0.7375 GB, free: 12.12 MB / 0.7136 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.0001168/0.01757, allocations: 156.5 kB / 0.7376 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 8.866e-05/0.01766, allocations: 41.94 kB / 0.7376 GB, free: 11.92 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.01766, allocations: 7.984 kB / 0.7377 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.305e-06/0.01767, allocations: 0 / 0.7377 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003512/0.01802, allocations: 0.6024 MB / 0.7382 GB, free: 11.29 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004371/0.01846, allocations: 442 kB / 0.7387 GB, free: 10.82 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.774e-05/0.0185, allocations: 80.56 kB / 0.7387 GB, free: 10.72 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.381e-05/0.01855, allocations: 17.48 kB / 0.7388 GB, free: 10.7 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.587e-05/0.01861, allocations: 65.28 kB / 0.7388 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of SimCode: time 5.01e-07/0.01861, allocations: 0 / 0.7388 GB, free: 10.64 MB / 0.7136 GB Notification: Performance of Templates: time 0.006582/0.0252, allocations: 1.24 MB / 0.74 GB, free: 9.473 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.706924771890044]