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.0009759/0.0009759, allocations: 92.22 kB / 19.65 MB, free: 280 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.001055/0.001055, allocations: 169 kB / 23.02 MB, free: 1.551 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.024/1.024, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.107/2.107, allocations: 429.5 MB / 0.6732 GB, free: 4.035 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.477e-06/3.477e-06, allocations: 0 / 0.8781 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.113e-05/4.461e-05, allocations: 5.266 kB / 0.8781 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.LastTrueIndex): time 0.002553/0.002597, allocations: 0.7408 MB / 0.8789 GB, free: 5.586 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003236/0.002921, allocations: 48.55 kB / 0.8789 GB, free: 5.539 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.645e-05/0.003018, allocations: 7.938 kB / 0.8789 GB, free: 5.531 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.003164, allocations: 13.64 kB / 0.8789 GB, free: 5.52 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.003323, allocations: 9.688 kB / 0.8789 GB, free: 5.512 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 7.24e-05/0.003395, allocations: 20.73 kB / 0.879 GB, free: 5.492 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002659/0.003661, allocations: 185.4 kB / 0.8791 GB, free: 5.312 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003052/0.003966, allocations: 142.1 kB / 0.8793 GB, free: 5.172 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.004152, allocations: 147.7 kB / 0.8794 GB, free: 5.027 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.004313, allocations: 104.3 kB / 0.8795 GB, free: 4.926 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 6.003e-05/0.004373, allocations: 24 kB / 0.8795 GB, free: 4.902 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 4.178e-05/0.004415, allocations: 25.09 kB / 0.8796 GB, free: 4.879 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 8.893e-05/0.004504, allocations: 71.75 kB / 0.8796 GB, free: 4.809 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.004604, allocations: 75.77 kB / 0.8797 GB, free: 4.734 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003365/0.00494, allocations: 235.7 kB / 0.8799 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.004945, allocations: 0.7188 kB / 0.8799 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.082e-06/0.004946, allocations: 0 / 0.8799 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.004955, allocations: 3.938 kB / 0.8799 GB, free: 4.504 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.0005066/0.005462, allocations: 0.5897 MB / 0.8805 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.005503, allocations: 8.031 kB / 0.8805 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.579e-05/0.005579, allocations: 52.75 kB / 0.8806 GB, free: 3.816 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.005892, allocations: 257.5 kB / 0.8808 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.675e-05/0.005938, allocations: 33.02 kB / 0.8808 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.005967, allocations: 24.38 kB / 0.8809 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.006284, allocations: 234.7 kB / 0.8811 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.006298, allocations: 192 / 0.8811 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.00632, allocations: 13.81 kB / 0.8811 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.006332, allocations: 8.375 kB / 0.8811 GB, free: 3.211 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.006476, allocations: 95.8 kB / 0.8812 GB, free: 3.117 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007888/0.007265, allocations: 0.7919 MB / 0.882 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 5.823e-05/0.007323, allocations: 55.03 kB / 0.882 GB, free: 2.207 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.527e-05/0.007349, allocations: 23.5 kB / 0.8821 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.007373, allocations: 1.094 kB / 0.8821 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.007396, allocations: 33.39 kB / 0.8821 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.007397, allocations: 0 / 0.8821 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001776/0.007575, allocations: 78.48 kB / 0.8822 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.007611, allocations: 78.2 kB / 0.8822 GB, free: 1.957 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002452/0.007857, allocations: 360.2 kB / 0.8826 GB, free: 1.594 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.00787, allocations: 33.69 kB / 0.8826 GB, free: 1.555 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.007983, allocations: 247.8 kB / 0.8828 GB, free: 1.309 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.213e-06/0.00799, allocations: 7.891 kB / 0.8829 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-05/0.00807, allocations: 79.34 kB / 0.8829 GB, free: 1.215 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.008201, allocations: 0.5124 MB / 0.8834 GB, free: 0.6914 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.526e-05/0.008236, allocations: 17.59 kB / 0.8835 GB, free: 0.6758 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.477e-05/0.008281, allocations: 39.36 kB / 0.8835 GB, free: 0.6289 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.6e-05/0.008347, allocations: 55.36 kB / 0.8835 GB, free: 0.5664 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.008349, allocations: 4 kB / 0.8835 GB, free: 0.5625 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001271/0.008476, allocations: 106 kB / 0.8836 GB, free: 464 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.008492, allocations: 8 kB / 0.8837 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.008496, allocations: 1.688 kB / 0.8837 GB, free: 456 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.008514, allocations: 7.922 kB / 0.8837 GB, free: 448 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.651e-05/0.00861, allocations: 24 kB / 0.8837 GB, free: 424 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.008618, allocations: 3.938 kB / 0.8837 GB, free: 420 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.209e-05/0.00865, allocations: 25.03 kB / 0.8837 GB, free: 396 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.008662, allocations: 4 kB / 0.8837 GB, free: 392 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 9.802e-05/0.00876, allocations: 169.4 kB / 0.8839 GB, free: 212 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.308e-05/0.008793, allocations: 16.62 kB / 0.8839 GB, free: 196 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001582/0.008951, allocations: 200.9 kB / 0.8841 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-05/0.009011, allocations: 269.6 kB / 0.8843 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.275e-05/0.009073, allocations: 268.1 kB / 0.8846 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-05/0.009136, allocations: 272 kB / 0.8849 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.009409, allocations: 0.6053 MB / 0.8854 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-05/0.009445, allocations: 151.7 kB / 0.8856 GB, free: 14.37 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.561e-05/0.00948, allocations: 148.9 kB / 0.8857 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.626e-05/0.009547, allocations: 268.1 kB / 0.886 GB, free: 13.95 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.109e-05/0.009618, allocations: 272 kB / 0.8863 GB, free: 13.67 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.121e-05/0.009679, allocations: 268.1 kB / 0.8865 GB, free: 13.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.187e-05/0.009751, allocations: 276 kB / 0.8868 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.009891, allocations: 459.9 kB / 0.8872 GB, free: 12.65 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.703e-05/0.009949, allocations: 166.4 kB / 0.8874 GB, free: 12.48 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.282e-05/0.01002, allocations: 268.1 kB / 0.8876 GB, free: 12.21 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.806e-05/0.01009, allocations: 148.8 kB / 0.8878 GB, free: 12.06 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.834e-05/0.01016, allocations: 276 kB / 0.888 GB, free: 11.78 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-05/0.01019, allocations: 144.9 kB / 0.8882 GB, free: 11.63 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001258/0.01032, allocations: 217.3 kB / 0.8884 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of sort global known variables: time 8e-08/0.01032, allocations: 4 kB / 0.8884 GB, free: 11.42 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001879/0.0105, allocations: 47.78 kB / 0.8884 GB, free: 11.37 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.0001214/0.01063, allocations: 218.4 kB / 0.8886 GB, free: 11.15 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001194/0.01075, allocations: 46.98 kB / 0.8887 GB, free: 11.1 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01075, allocations: 3.938 kB / 0.8887 GB, free: 11.1 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 2.375e-06/0.01075, allocations: 3.938 kB / 0.8887 GB, free: 11.09 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.01111, allocations: 0.7248 MB / 0.8894 GB, free: 10.37 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004595/0.01157, allocations: 491.7 kB / 0.8899 GB, free: 9.852 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.878e-05/0.01162, allocations: 83.81 kB / 0.8899 GB, free: 9.75 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 5.742e-05/0.01168, allocations: 29.45 kB / 0.89 GB, free: 9.719 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.318e-05/0.01171, allocations: 16.5 kB / 0.89 GB, free: 9.703 MB / 0.8542 GB Notification: Performance of SimCode: time 8.21e-07/0.01171, allocations: 0 / 0.89 GB, free: 9.703 MB / 0.8542 GB Notification: Performance of Templates: time 0.003392/0.01511, allocations: 1.071 MB / 0.891 GB, free: 8.66 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.556398566812277]