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.001942/0.001942, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.002053/0.002053, allocations: 157.6 kB / 22.75 MB, free: 1.684 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.589/1.589, allocations: 177.1 MB / 203.1 MB, free: 5.594 MB / 186.7 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 3.268/3.268, allocations: 429.6 MB / 0.673 GB, free: 3.859 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/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.496e-06/3.496e-06, allocations: 0 / 0.8776 GB, free: 6.488 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.465e-05/4.815e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.484 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002944/0.002992, allocations: 0.7095 MB / 0.8783 GB, free: 5.797 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003177/0.00331, allocations: 47.84 kB / 0.8783 GB, free: 5.75 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.976e-05/0.00341, allocations: 4.938 kB / 0.8783 GB, free: 5.746 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.003576, allocations: 12.73 kB / 0.8783 GB, free: 5.734 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.003747, allocations: 17.77 kB / 0.8784 GB, free: 5.719 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 7.589e-05/0.003823, allocations: 15.98 kB / 0.8784 GB, free: 5.703 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.004114, allocations: 184.4 kB / 0.8785 GB, free: 5.523 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003171/0.004431, allocations: 145.4 kB / 0.8787 GB, free: 5.379 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/0.004676, allocations: 144.8 kB / 0.8788 GB, free: 5.238 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.004872, allocations: 103.7 kB / 0.8789 GB, free: 5.137 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 6.594e-05/0.004938, allocations: 24 kB / 0.8789 GB, free: 5.113 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.901e-05/0.004987, allocations: 29.06 kB / 0.879 GB, free: 5.086 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.216e-05/0.005079, allocations: 67.75 kB / 0.879 GB, free: 5.02 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.005208, allocations: 79.77 kB / 0.8791 GB, free: 4.941 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005492/0.005757, allocations: 379.8 kB / 0.8795 GB, free: 4.57 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.005762, allocations: 4 kB / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.41e-07/0.005763, allocations: 0 / 0.8795 GB, free: 4.566 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.385e-05/0.005777, allocations: 0.6562 kB / 0.8795 GB, free: 4.566 MB / 0.8386 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.0009073/0.006684, allocations: 490.5 kB / 0.8799 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.006733, allocations: 8.031 kB / 0.88 GB, free: 4.047 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.006859, allocations: 52.75 kB / 0.88 GB, free: 3.996 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004973/0.007356, allocations: 271.5 kB / 0.8803 GB, free: 3.703 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.025e-05/0.007426, allocations: 29.53 kB / 0.8803 GB, free: 3.672 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.007475, allocations: 31.8 kB / 0.8803 GB, free: 3.645 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006292/0.008104, allocations: 340.3 kB / 0.8806 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.008116, allocations: 192 / 0.8806 GB, free: 3.305 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.008149, allocations: 12.38 kB / 0.8807 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.008161, allocations: 8.375 kB / 0.8807 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004728/0.008634, allocations: 263.7 kB / 0.8809 GB, free: 3.027 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.01009, allocations: 0.7315 MB / 0.8816 GB, free: 2.262 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.0102, allocations: 61.88 kB / 0.8817 GB, free: 2.184 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.667e-05/0.01026, allocations: 29.77 kB / 0.8817 GB, free: 2.148 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.01028, allocations: 4.625 kB / 0.8817 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.01032, allocations: 31.16 kB / 0.8818 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.01032, allocations: 0 / 0.8818 GB, free: 2.105 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0003341/0.01066, allocations: 122.3 kB / 0.8819 GB, free: 1.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.01072, allocations: 77.89 kB / 0.8819 GB, free: 1.887 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004048/0.01113, allocations: 325.6 kB / 0.8823 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.01115, allocations: 31.23 kB / 0.8823 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.01134, allocations: 200.1 kB / 0.8825 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.428e-06/0.01135, allocations: 0 / 0.8825 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.01146, allocations: 69.64 kB / 0.8825 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001922/0.01165, allocations: 335.1 kB / 0.8829 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.01176, allocations: 59.89 kB / 0.8829 GB, free: 0.8633 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.01188, allocations: 77.66 kB / 0.883 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001559/0.01204, allocations: 89.69 kB / 0.8831 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.01204, allocations: 0 / 0.8831 GB, free: 0.6875 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003142/0.01236, allocations: 177.5 kB / 0.8832 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.01237, allocations: 4 kB / 0.8833 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.01238, allocations: 4 kB / 0.8833 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.0124, allocations: 3.938 kB / 0.8833 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001391/0.01254, allocations: 23.98 kB / 0.8833 GB, free: 484 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.772e-06/0.01255, allocations: 0 / 0.8833 GB, free: 484 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.312e-05/0.01261, allocations: 23.89 kB / 0.8833 GB, free: 460 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.01264, allocations: 4 kB / 0.8833 GB, free: 456 kB / 0.8386 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.0002196/0.01286, allocations: 193.7 kB / 0.8835 GB, free: 252 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.897e-05/0.01291, allocations: 19.86 kB / 0.8835 GB, free: 232 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002037/0.01312, allocations: 155.4 kB / 0.8837 GB, free: 64 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001481/0.01327, allocations: 192.1 kB / 0.8838 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.465e-05/0.01336, allocations: 176.3 kB / 0.884 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000102/0.01346, allocations: 184.2 kB / 0.8842 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000404/0.01387, allocations: 448.9 kB / 0.8846 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.538e-05/0.01393, allocations: 105 kB / 0.8847 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.098e-05/0.01399, allocations: 104.9 kB / 0.8848 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.988e-05/0.01409, allocations: 184.2 kB / 0.885 GB, free: 14.62 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.01423, allocations: 180.2 kB / 0.8852 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001055/0.01433, allocations: 180.3 kB / 0.8853 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001168/0.01445, allocations: 184.3 kB / 0.8855 GB, free: 14.06 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.0147, allocations: 323.7 kB / 0.8858 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.0148, allocations: 120.8 kB / 0.8859 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.01493, allocations: 180.3 kB / 0.8861 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.01506, allocations: 116.9 kB / 0.8862 GB, free: 13.29 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.01518, allocations: 184.2 kB / 0.8864 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.358e-05/0.01525, allocations: 105 kB / 0.8865 GB, free: 13 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002896/0.01554, allocations: 229.2 kB / 0.8867 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01554, allocations: 0 / 0.8867 GB, free: 12.77 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003152/0.01585, allocations: 43.78 kB / 0.8868 GB, free: 12.73 MB / 0.8542 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.0001784/0.01603, allocations: 178.5 kB / 0.8869 GB, free: 12.55 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002027/0.01623, allocations: 75.94 kB / 0.887 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.01623, allocations: 0 / 0.887 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 4.689e-06/0.01624, allocations: 4 kB / 0.887 GB, free: 12.47 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.01682, allocations: 484.1 kB / 0.8875 GB, free: 11.99 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008476/0.01767, allocations: 486 kB / 0.8879 GB, free: 11.48 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.01788, allocations: 165.3 kB / 0.8881 GB, free: 11.3 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.299e-05/0.01798, allocations: 41.45 kB / 0.8881 GB, free: 11.26 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.9e-05/0.01803, allocations: 16.5 kB / 0.8881 GB, free: 11.25 MB / 0.8542 GB Notification: Performance of SimCode: time 8.82e-07/0.01803, allocations: 0 / 0.8881 GB, free: 11.25 MB / 0.8542 GB Notification: Performance of Templates: time 0.004685/0.02271, allocations: 1.083 MB / 0.8892 GB, free: 10.19 MB / 0.8542 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.308350328006782]