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.0006824/0.0006824, allocations: 76.5 kB / 19.93 MB, free: 4.629 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.001188/0.001188, allocations: 173.9 kB / 23.21 MB, free: 1.352 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 0.8811/0.8811, allocations: 177.2 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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 1.766/1.766, allocations: 389 MB / 0.6338 GB, free: 12.67 MB / 0.6042 GB " [Timeout remaining time 178] 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 1.604e-06/1.604e-06, allocations: 0 / 1.001 GB, free: 12.99 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.621e-05/1.782e-05, allocations: 2.281 kB / 1.001 GB, free: 12.98 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.00112/0.001138, allocations: 0.6984 MB / 1.002 GB, free: 12.29 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0001672/0.001305, allocations: 55.7 kB / 1.002 GB, free: 12.23 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.887e-05/0.001364, allocations: 4 kB / 1.002 GB, free: 12.23 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 9.009e-05/0.001454, allocations: 23.8 kB / 1.002 GB, free: 12.21 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 9.91e-05/0.001554, allocations: 3.938 kB / 1.002 GB, free: 12.2 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 4.546e-05/0.001599, allocations: 23.97 kB / 1.002 GB, free: 12.18 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.001753, allocations: 183.5 kB / 1.002 GB, free: 12 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.001936, allocations: 145.4 kB / 1.002 GB, free: 11.86 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 9.674e-05/0.002033, allocations: 139.7 kB / 1.002 GB, free: 11.72 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.968e-05/0.002123, allocations: 107.8 kB / 1.002 GB, free: 11.62 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 3.368e-05/0.002156, allocations: 24 kB / 1.002 GB, free: 11.59 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.156e-05/0.002198, allocations: 24 kB / 1.002 GB, free: 11.57 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 5.052e-05/0.002248, allocations: 67.77 kB / 1.002 GB, free: 11.5 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.163e-05/0.0023, allocations: 83.77 kB / 1.002 GB, free: 11.42 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0004145/0.002715, allocations: 378.7 kB / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.744e-06/0.002716, allocations: 0 / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of FrontEnd: time 6.41e-07/0.002717, allocations: 0 / 1.003 GB, free: 11.05 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.646e-06/0.002721, allocations: 0 / 1.003 GB, free: 11.05 MB / 0.9636 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.0003832/0.003104, allocations: 491.8 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 2.996e-05/0.003134, allocations: 9.344 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.279e-05/0.003176, allocations: 32.75 kB / 1.003 GB, free: 10.5 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.003417, allocations: 258.8 kB / 1.004 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.62e-05/0.003513, allocations: 37.02 kB / 1.004 GB, free: 10.18 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.041e-05/0.003533, allocations: 24.38 kB / 1.004 GB, free: 10.16 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003082/0.003842, allocations: 336.3 kB / 1.004 GB, free: 9.816 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.00385, allocations: 4.125 kB / 1.004 GB, free: 9.812 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.003867, allocations: 12.38 kB / 1.004 GB, free: 9.801 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.003875, allocations: 8.375 kB / 1.004 GB, free: 9.793 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000233/0.004108, allocations: 263.7 kB / 1.004 GB, free: 9.535 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006617/0.004769, allocations: 0.7312 MB / 1.005 GB, free: 8.77 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 5.891e-05/0.004828, allocations: 53.98 kB / 1.005 GB, free: 8.699 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.158e-05/0.00486, allocations: 41.69 kB / 1.005 GB, free: 8.652 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.004876, allocations: 4 kB / 1.005 GB, free: 8.648 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.004894, allocations: 34.56 kB / 1.005 GB, free: 8.605 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.004895, allocations: 0 / 1.005 GB, free: 8.605 MB / 0.9636 GB Notification: Performance of matching and sorting (n=2): time 0.0001785/0.005074, allocations: 121.4 kB / 1.005 GB, free: 8.48 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.005106, allocations: 77.11 kB / 1.005 GB, free: 8.387 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.005341, allocations: 325.6 kB / 1.006 GB, free: 8.062 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.005352, allocations: 33.7 kB / 1.006 GB, free: 8.023 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 7.977e-05/0.005432, allocations: 188.2 kB / 1.006 GB, free: 7.836 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 8.165e-06/0.00544, allocations: 11.97 kB / 1.006 GB, free: 7.824 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.554e-05/0.005496, allocations: 61.89 kB / 1.006 GB, free: 7.758 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.03e-05/0.005576, allocations: 334.8 kB / 1.006 GB, free: 7.422 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.907e-05/0.005635, allocations: 55.95 kB / 1.006 GB, free: 7.367 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.287e-05/0.005698, allocations: 77.61 kB / 1.006 GB, free: 7.285 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.717e-05/0.005785, allocations: 101.6 kB / 1.006 GB, free: 7.18 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.005787, allocations: 0 / 1.006 GB, free: 7.18 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001436/0.005931, allocations: 165.5 kB / 1.007 GB, free: 7.012 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.005941, allocations: 11.94 kB / 1.007 GB, free: 7 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.005945, allocations: 0 / 1.007 GB, free: 7 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.005956, allocations: 3.938 kB / 1.007 GB, free: 6.996 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.929e-05/0.006035, allocations: 23.98 kB / 1.007 GB, free: 6.973 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.00604, allocations: 4 kB / 1.007 GB, free: 6.969 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.982e-05/0.00607, allocations: 19.89 kB / 1.007 GB, free: 6.949 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.006082, allocations: 4 kB / 1.007 GB, free: 6.945 MB / 0.9636 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.0001133/0.006195, allocations: 193.7 kB / 1.007 GB, free: 6.746 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/0.006221, allocations: 23.8 kB / 1.007 GB, free: 6.723 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.006326, allocations: 147.5 kB / 1.007 GB, free: 6.559 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.753e-05/0.006363, allocations: 188.2 kB / 1.007 GB, free: 6.367 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.682e-05/0.0064, allocations: 180.2 kB / 1.007 GB, free: 6.184 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.442e-05/0.006434, allocations: 180.3 kB / 1.007 GB, free: 6 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001651/0.006599, allocations: 452.8 kB / 1.008 GB, free: 5.52 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.025e-05/0.00662, allocations: 105 kB / 1.008 GB, free: 5.41 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.231e-05/0.006642, allocations: 109 kB / 1.008 GB, free: 5.297 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.514e-05/0.006677, allocations: 180.2 kB / 1.008 GB, free: 5.113 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.006713, allocations: 176.3 kB / 1.008 GB, free: 4.934 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.51e-05/0.006749, allocations: 188.2 kB / 1.009 GB, free: 4.742 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.206e-05/0.006811, allocations: 184.1 kB / 1.009 GB, free: 4.555 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.849e-05/0.006899, allocations: 319.7 kB / 1.009 GB, free: 4.219 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 3.931e-05/0.006938, allocations: 124.8 kB / 1.009 GB, free: 4.09 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.608e-05/0.006985, allocations: 184.1 kB / 1.009 GB, free: 3.902 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.675e-05/0.007041, allocations: 109 kB / 1.009 GB, free: 3.789 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.352e-05/0.007085, allocations: 188.1 kB / 1.01 GB, free: 3.598 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.007109, allocations: 113 kB / 1.01 GB, free: 3.48 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.000141/0.00725, allocations: 225.2 kB / 1.01 GB, free: 3.262 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.00725, allocations: 4 kB / 1.01 GB, free: 3.258 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001612/0.007411, allocations: 35.84 kB / 1.01 GB, free: 3.223 MB / 0.9636 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 7.076e-05/0.007482, allocations: 170.5 kB / 1.01 GB, free: 3.047 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.000106/0.007588, allocations: 79.88 kB / 1.01 GB, free: 2.969 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.007589, allocations: 0 / 1.01 GB, free: 2.969 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.21e-07/0.00759, allocations: 4 kB / 1.01 GB, free: 2.965 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.007857, allocations: 481.5 kB / 1.011 GB, free: 2.488 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003981/0.008255, allocations: 0.498 MB / 1.011 GB, free: 1.961 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.526e-05/0.00835, allocations: 165.4 kB / 1.011 GB, free: 1.777 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.42e-05/0.008385, allocations: 16.5 kB / 1.011 GB, free: 1.762 MB / 0.9636 GB Notification: Performance of SimCode: time 3.81e-07/0.008385, allocations: 0 / 1.011 GB, free: 1.762 MB / 0.9636 GB Notification: Performance of Templates: time 0.002632/0.01102, allocations: 2.787 MB / 1.014 GB, free: 14.98 MB / 0.9792 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: 6.726204405538738]