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.001085/0.001085, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001728/0.001728, allocations: 173 kB / 23.49 MB, free: 1.059 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.9983/0.9983, allocations: 177.1 MB / 203.8 MB, free: 5.652 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 2.064/2.064, allocations: 429.5 MB / 0.6736 GB, free: 4.07 MB / 0.6355 GB " [Timeout remaining time 177] 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.286e-06/3.286e-06, allocations: 0 / 0.8782 GB, free: 6.691 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.251e-05/3.58e-05, allocations: 3.188 kB / 0.8782 GB, free: 6.688 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002179/0.002215, allocations: 0.7347 MB / 0.8789 GB, free: 5.973 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002623/0.002477, allocations: 47.84 kB / 0.8789 GB, free: 5.926 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.726e-05/0.002564, allocations: 4.875 kB / 0.8789 GB, free: 5.922 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.002706, allocations: 13.34 kB / 0.8789 GB, free: 5.91 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.002845, allocations: 9.016 kB / 0.879 GB, free: 5.902 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 6.882e-05/0.002914, allocations: 25.03 kB / 0.879 GB, free: 5.879 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002469/0.003161, allocations: 185.4 kB / 0.8792 GB, free: 5.699 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.003427, allocations: 146.5 kB / 0.8793 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.003575, allocations: 147.7 kB / 0.8794 GB, free: 5.41 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.003702, allocations: 99.77 kB / 0.8795 GB, free: 5.312 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.682e-05/0.003749, allocations: 25.5 kB / 0.8796 GB, free: 5.289 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.171e-05/0.003791, allocations: 28 kB / 0.8796 GB, free: 5.262 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.354e-05/0.003875, allocations: 63.77 kB / 0.8796 GB, free: 5.199 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 9.231e-05/0.003967, allocations: 75.78 kB / 0.8797 GB, free: 5.125 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.00426, allocations: 236.2 kB / 0.8799 GB, free: 4.895 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.004265, allocations: 0 / 0.8799 GB, free: 4.895 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.92e-07/0.004266, allocations: 0 / 0.8799 GB, free: 4.895 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.004272, allocations: 0 / 0.8799 GB, free: 4.895 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.000679/0.004951, allocations: 0.5891 MB / 0.8805 GB, free: 4.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.004994, allocations: 12.03 kB / 0.8805 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.706e-05/0.005091, allocations: 52.75 kB / 0.8806 GB, free: 4.207 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.005456, allocations: 261.5 kB / 0.8808 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.936e-05/0.005506, allocations: 29.02 kB / 0.8809 GB, free: 3.891 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.626e-05/0.005542, allocations: 24.38 kB / 0.8809 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003944/0.005936, allocations: 238.7 kB / 0.8811 GB, free: 3.617 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.005949, allocations: 0.7812 kB / 0.8811 GB, free: 3.617 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.589e-05/0.005975, allocations: 8.375 kB / 0.8811 GB, free: 3.609 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.005988, allocations: 13.84 kB / 0.8811 GB, free: 3.598 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002122/0.0062, allocations: 95.86 kB / 0.8812 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001041/0.007241, allocations: 0.7919 MB / 0.882 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.067e-05/0.007312, allocations: 63.67 kB / 0.8821 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.798e-05/0.00734, allocations: 19.31 kB / 0.8821 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.00736, allocations: 0 / 0.8821 GB, free: 2.559 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.007386, allocations: 37.39 kB / 0.8821 GB, free: 2.512 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.007387, allocations: 4 kB / 0.8821 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0002193/0.007607, allocations: 69.42 kB / 0.8822 GB, free: 2.434 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.147e-05/0.007658, allocations: 81.11 kB / 0.8823 GB, free: 2.336 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003301/0.007988, allocations: 360.2 kB / 0.8826 GB, free: 1.973 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.008001, allocations: 25.7 kB / 0.8826 GB, free: 1.941 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.008145, allocations: 254.8 kB / 0.8829 GB, free: 1.688 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.256e-05/0.008157, allocations: 11.94 kB / 0.8829 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.008259, allocations: 75.34 kB / 0.8829 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.00842, allocations: 0.5118 MB / 0.8834 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.835e-05/0.008468, allocations: 16.23 kB / 0.8835 GB, free: 1.055 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.454e-05/0.008533, allocations: 47.36 kB / 0.8835 GB, free: 1 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.445e-05/0.008627, allocations: 55.34 kB / 0.8836 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.008629, allocations: 0 / 0.8836 GB, free: 0.9375 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001856/0.008815, allocations: 105.5 kB / 0.8837 GB, free: 0.8281 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.008833, allocations: 4 kB / 0.8837 GB, free: 0.8242 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.008846, allocations: 4 kB / 0.8837 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.008864, allocations: 3.938 kB / 0.8837 GB, free: 0.8164 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.008989, allocations: 31.98 kB / 0.8837 GB, free: 0.7852 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.008996, allocations: 3.938 kB / 0.8837 GB, free: 0.7812 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.1e-05/0.009047, allocations: 15.84 kB / 0.8837 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.009064, allocations: 12 kB / 0.8837 GB, free: 0.7539 MB / 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.0001192/0.009184, allocations: 168.6 kB / 0.8839 GB, free: 0.5781 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.319e-05/0.009237, allocations: 15.91 kB / 0.8839 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001774/0.009414, allocations: 200.9 kB / 0.8841 GB, free: 360 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.372e-05/0.009488, allocations: 268 kB / 0.8844 GB, free: 84 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.035e-05/0.009578, allocations: 268.1 kB / 0.8846 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.562e-05/0.009654, allocations: 272 kB / 0.8849 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.01002, allocations: 0.6053 MB / 0.8855 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-05/0.01006, allocations: 156.8 kB / 0.8856 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.154e-05/0.0101, allocations: 148.9 kB / 0.8858 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-05/0.01018, allocations: 264.1 kB / 0.886 GB, free: 14.31 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.077e-05/0.01026, allocations: 276 kB / 0.8863 GB, free: 14.04 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.106e-05/0.01034, allocations: 268.1 kB / 0.8865 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.487e-05/0.01041, allocations: 272 kB / 0.8868 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.01059, allocations: 455.9 kB / 0.8872 GB, free: 13.02 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 7.313e-05/0.01066, allocations: 172.7 kB / 0.8874 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.046e-05/0.01075, allocations: 264.1 kB / 0.8876 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.01085, allocations: 152.8 kB / 0.8878 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.697e-05/0.01093, allocations: 268 kB / 0.888 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.24e-05/0.01097, allocations: 156.9 kB / 0.8882 GB, free: 11.99 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000184/0.01115, allocations: 221.1 kB / 0.8884 GB, free: 11.78 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1e-07/0.01115, allocations: 3.938 kB / 0.8884 GB, free: 11.77 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000313/0.01147, allocations: 43.78 kB / 0.8884 GB, free: 11.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.0001374/0.0116, allocations: 210.4 kB / 0.8886 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001423/0.01175, allocations: 48 kB / 0.8887 GB, free: 11.46 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.01175, allocations: 0 / 0.8887 GB, free: 11.46 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.805e-06/0.01175, allocations: 3.938 kB / 0.8887 GB, free: 11.46 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005252/0.01228, allocations: 0.7323 MB / 0.8894 GB, free: 10.73 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006189/0.0129, allocations: 482.1 kB / 0.8899 GB, free: 10.22 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.982e-05/0.01296, allocations: 79.81 kB / 0.8899 GB, free: 10.12 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 7.978e-05/0.01304, allocations: 37.44 kB / 0.89 GB, free: 10.09 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.951e-05/0.01307, allocations: 12.5 kB / 0.89 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of SimCode: time 8.91e-07/0.01308, allocations: 0 / 0.89 GB, free: 10.07 MB / 0.8542 GB Notification: Performance of Templates: time 0.004256/0.01733, allocations: 1.076 MB / 0.891 GB, free: 9.027 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.35042141797021]