Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001429/0.001429, allocations: 80.92 kB / 19.18 MB, free: 2.52 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.001474/0.001474, allocations: 165.4 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.495/1.495, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.983/2.983, allocations: 389 MB / 0.633 GB, free: 1.012 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.176e-06/3.176e-06, allocations: 0 / 1 GB, free: 7.352 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.793e-05/5.111e-05, allocations: 6.219 kB / 1 GB, free: 7.344 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.003292/0.003343, allocations: 0.7121 MB / 1.001 GB, free: 6.637 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0003817/0.003725, allocations: 55.7 kB / 1.001 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.003852, allocations: 4 kB / 1.001 GB, free: 6.578 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.004012, allocations: 19.86 kB / 1.001 GB, free: 6.559 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.004179, allocations: 7.938 kB / 1.001 GB, free: 6.551 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 9.587e-05/0.004275, allocations: 23.97 kB / 1.001 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0004281/0.004703, allocations: 183.5 kB / 1.001 GB, free: 6.348 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004563/0.005159, allocations: 137.4 kB / 1.001 GB, free: 6.215 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003103/0.00547, allocations: 147.7 kB / 1.001 GB, free: 6.07 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002665/0.005736, allocations: 103.7 kB / 1.001 GB, free: 5.969 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.005836, allocations: 28 kB / 1.001 GB, free: 5.941 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 6.963e-05/0.005906, allocations: 24 kB / 1.002 GB, free: 5.918 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001319/0.006038, allocations: 71.77 kB / 1.002 GB, free: 5.848 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.006203, allocations: 79.77 kB / 1.002 GB, free: 5.77 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0007131/0.006916, allocations: 378.7 kB / 1.002 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.006919, allocations: 0 / 1.002 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.92e-07/0.00692, allocations: 0 / 1.002 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.118e-05/0.006941, allocations: 0 / 1.002 GB, free: 5.398 MB / 0.9512 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.001121/0.008062, allocations: 489.5 kB / 1.002 GB, free: 4.883 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.008121, allocations: 12.03 kB / 1.002 GB, free: 4.871 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.008246, allocations: 28.75 kB / 1.003 GB, free: 4.844 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006946/0.008941, allocations: 262.8 kB / 1.003 GB, free: 4.559 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.307e-05/0.009014, allocations: 29.02 kB / 1.003 GB, free: 4.531 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.575e-05/0.009079, allocations: 28.38 kB / 1.003 GB, free: 4.504 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009528/0.01003, allocations: 344.2 kB / 1.003 GB, free: 4.156 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.01006, allocations: 192 / 1.003 GB, free: 4.156 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.52e-05/0.0101, allocations: 8.375 kB / 1.003 GB, free: 4.148 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.012e-05/0.01013, allocations: 8.375 kB / 1.003 GB, free: 4.141 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007638/0.01089, allocations: 264.2 kB / 1.003 GB, free: 3.883 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.01295, allocations: 0.7273 MB / 1.004 GB, free: 3.121 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.01309, allocations: 53.2 kB / 1.004 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.6e-05/0.01318, allocations: 37.75 kB / 1.004 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.01321, allocations: 0 / 1.004 GB, free: 3.008 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.193e-05/0.01328, allocations: 42.5 kB / 1.004 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.502e-06/0.01328, allocations: 0 / 1.004 GB, free: 2.957 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0004828/0.01377, allocations: 117.4 kB / 1.004 GB, free: 2.836 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.819e-05/0.01385, allocations: 81.11 kB / 1.004 GB, free: 2.738 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000616/0.01447, allocations: 325.6 kB / 1.005 GB, free: 2.414 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.01449, allocations: 25.7 kB / 1.005 GB, free: 2.383 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.01472, allocations: 192.2 kB / 1.005 GB, free: 2.191 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.01474, allocations: 7.984 kB / 1.005 GB, free: 2.184 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.0149, allocations: 65.64 kB / 1.005 GB, free: 2.113 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0002415/0.01514, allocations: 327.1 kB / 1.005 GB, free: 1.785 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.0153, allocations: 59.95 kB / 1.005 GB, free: 1.727 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.01547, allocations: 77.66 kB / 1.005 GB, free: 1.645 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.01572, allocations: 101.6 kB / 1.006 GB, free: 1.539 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.01572, allocations: 0 / 1.006 GB, free: 1.539 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005276/0.01625, allocations: 169.5 kB / 1.006 GB, free: 1.367 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.01628, allocations: 4 kB / 1.006 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.01628, allocations: 0 / 1.006 GB, free: 1.363 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.01631, allocations: 3.938 kB / 1.006 GB, free: 1.359 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.01652, allocations: 31.92 kB / 1.006 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.01653, allocations: 0 / 1.006 GB, free: 1.328 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.01664, allocations: 23.89 kB / 1.006 GB, free: 1.305 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.58e-05/0.01667, allocations: 4 kB / 1.006 GB, free: 1.301 MB / 0.9512 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.000327/0.01699, allocations: 205.7 kB / 1.006 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.0171, allocations: 19.8 kB / 1.006 GB, free: 1.07 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002648/0.01736, allocations: 155.4 kB / 1.006 GB, free: 0.9023 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001093/0.01747, allocations: 184.2 kB / 1.006 GB, free: 0.7148 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001241/0.0176, allocations: 180.2 kB / 1.007 GB, free: 0.5312 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000112/0.01771, allocations: 180.3 kB / 1.007 GB, free: 356 kB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005369/0.01825, allocations: 444.9 kB / 1.007 GB, free: 15.87 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-05/0.01832, allocations: 108.9 kB / 1.007 GB, free: 15.76 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.826e-05/0.01839, allocations: 101.1 kB / 1.007 GB, free: 15.65 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.01851, allocations: 188.2 kB / 1.007 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/0.01862, allocations: 180.3 kB / 1.008 GB, free: 15.28 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001198/0.01874, allocations: 180.2 kB / 1.008 GB, free: 15.09 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001155/0.01886, allocations: 184.1 kB / 1.008 GB, free: 14.91 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000264/0.01912, allocations: 315.7 kB / 1.008 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.01925, allocations: 128.8 kB / 1.008 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001451/0.0194, allocations: 184.1 kB / 1.009 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.01957, allocations: 108.9 kB / 1.009 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001305/0.0197, allocations: 192.2 kB / 1.009 GB, free: 13.95 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.339e-05/0.01978, allocations: 108.9 kB / 1.009 GB, free: 13.83 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004215/0.0202, allocations: 229.2 kB / 1.009 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9.01e-07/0.0202, allocations: 0 / 1.009 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0005353/0.02073, allocations: 43.84 kB / 1.009 GB, free: 13.57 MB / 0.9669 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.0002445/0.02098, allocations: 170.5 kB / 1.009 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002885/0.02127, allocations: 79.78 kB / 1.01 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.02127, allocations: 0 / 1.01 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.915e-06/0.02127, allocations: 0 / 1.01 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007585/0.02203, allocations: 476.2 kB / 1.01 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/0.02314, allocations: 480.3 kB / 1.01 GB, free: 12.35 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.02343, allocations: 161.3 kB / 1.011 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001453/0.02358, allocations: 41.45 kB / 1.011 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.425e-05/0.02364, allocations: 16.5 kB / 1.011 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of SimCode: time 6.51e-07/0.02364, allocations: 0 / 1.011 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of Templates: time 0.006911/0.03055, allocations: 1.07 MB / 1.012 GB, free: 11.06 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_LastTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.394359320402145]