Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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.001029/0.001029, allocations: 73.88 kB / 20.66 MB, free: 3.844 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.001046/0.001046, allocations: 173 kB / 24.06 MB, free: 452 kB / 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.017/1.017, allocations: 177.1 MB / 204.5 MB, free: 5.492 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.122/2.122, allocations: 429.5 MB / 0.6743 GB, free: 3.926 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.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|idxFirTru.y|idxFirTruAllFal.y",fileNamePrefix="Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 0.8794 GB, free: 6.027 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.036e-05/2.229e-05, allocations: 3.188 kB / 0.8794 GB, free: 6.023 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001914/0.001936, allocations: 0.875 MB / 0.8802 GB, free: 5.172 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002451/0.002181, allocations: 92.84 kB / 0.8803 GB, free: 5.082 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.18e-05/0.002273, allocations: 4 kB / 0.8803 GB, free: 5.078 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.00241, allocations: 28.59 kB / 0.8804 GB, free: 5.051 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.002546, allocations: 13.56 kB / 0.8804 GB, free: 5.039 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 7.263e-05/0.002618, allocations: 44.73 kB / 0.8804 GB, free: 4.996 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.002845, allocations: 256.6 kB / 0.8807 GB, free: 4.746 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.003076, allocations: 167.5 kB / 0.8808 GB, free: 4.578 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.00328, allocations: 224.6 kB / 0.881 GB, free: 4.359 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.567e-05/0.003376, allocations: 107.6 kB / 0.8811 GB, free: 4.254 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 3.87e-05/0.003415, allocations: 28 kB / 0.8812 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 2.77e-05/0.003442, allocations: 28.66 kB / 0.8812 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.934e-05/0.003512, allocations: 83.73 kB / 0.8813 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.402e-05/0.003576, allocations: 85.39 kB / 0.8813 GB, free: 4.035 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002257/0.003801, allocations: 255 kB / 0.8816 GB, free: 3.785 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.003803, allocations: 0 / 0.8816 GB, free: 3.785 MB / 0.8386 GB Notification: Performance of FrontEnd: time 4.71e-07/0.003804, allocations: 3.938 kB / 0.8816 GB, free: 3.781 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.003809, allocations: 3.656 kB / 0.8816 GB, free: 3.781 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.0004577/0.004266, allocations: 0.6284 MB / 0.8822 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.004302, allocations: 8.031 kB / 0.8822 GB, free: 3.105 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.005e-05/0.004372, allocations: 68.66 kB / 0.8823 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002614/0.004633, allocations: 259.9 kB / 0.8825 GB, free: 2.758 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.004673, allocations: 29.03 kB / 0.8826 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.058e-05/0.004704, allocations: 36.38 kB / 0.8826 GB, free: 2.695 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002624/0.004966, allocations: 254.6 kB / 0.8828 GB, free: 2.43 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.004979, allocations: 4.125 kB / 0.8828 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.005, allocations: 17.31 kB / 0.8829 GB, free: 2.41 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.005008, allocations: 8.375 kB / 0.8829 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.005117, allocations: 88.7 kB / 0.883 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007688/0.005886, allocations: 0.8204 MB / 0.8838 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.922e-05/0.005975, allocations: 71.23 kB / 0.8838 GB, free: 1.367 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.22e-05/0.005997, allocations: 23.38 kB / 0.8838 GB, free: 1.336 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.006015, allocations: 5.125 kB / 0.8838 GB, free: 1.332 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.006039, allocations: 41.47 kB / 0.8839 GB, free: 1.281 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 9.62e-07/0.00604, allocations: 0 / 0.8839 GB, free: 1.281 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001683/0.006209, allocations: 85.12 kB / 0.884 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.618e-05/0.006245, allocations: 81.11 kB / 0.884 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.006478, allocations: 391.9 kB / 0.8844 GB, free: 0.7031 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.176e-05/0.00649, allocations: 25.7 kB / 0.8844 GB, free: 0.6719 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.006636, allocations: 275 kB / 0.8847 GB, free: 408 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.007e-05/0.006647, allocations: 7.953 kB / 0.8847 GB, free: 400 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.568e-05/0.006732, allocations: 103.2 kB / 0.8848 GB, free: 288 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001847/0.006917, allocations: 0.5156 MB / 0.8853 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.021e-05/0.006947, allocations: 15.98 kB / 0.8853 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.547e-05/0.006993, allocations: 44 kB / 0.8854 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.19e-05/0.007064, allocations: 59.23 kB / 0.8854 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.007068, allocations: 0.5938 kB / 0.8854 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001391/0.007207, allocations: 121.5 kB / 0.8855 GB, free: 15.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.007223, allocations: 4.594 kB / 0.8855 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.007228, allocations: 1.062 kB / 0.8856 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.007239, allocations: 0 / 0.8856 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.249e-05/0.007331, allocations: 31.92 kB / 0.8856 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.007337, allocations: 1.531 kB / 0.8856 GB, free: 15.46 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.213e-05/0.007369, allocations: 19.89 kB / 0.8856 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.007381, allocations: 4 kB / 0.8856 GB, free: 15.44 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.y,idxFirTru.booToInt[6].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[1].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0001481/0.007529, allocations: 176.2 kB / 0.8858 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.002e-05/0.007569, allocations: 23.86 kB / 0.8858 GB, free: 15.23 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.007729, allocations: 102.2 kB / 0.8859 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.007733, allocations: 4 kB / 0.8859 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.007737, allocations: 0 / 0.8859 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.007741, allocations: 0 / 0.8859 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008527/0.008594, allocations: 0.6473 MB / 0.8865 GB, free: 14.42 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.008596, allocations: 3.938 kB / 0.8865 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.826e-05/0.008614, allocations: 4 kB / 0.8865 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.008619, allocations: 4 kB / 0.8865 GB, free: 14.41 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.008625, allocations: 4.188 kB / 0.8865 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.008626, allocations: 4 kB / 0.8865 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.008628, allocations: 0 / 0.8865 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.743e-05/0.008715, allocations: 131.3 kB / 0.8867 GB, free: 14.23 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.897e-05/0.008734, allocations: 19.84 kB / 0.8867 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.008749, allocations: 8 kB / 0.8867 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.009e-05/0.008769, allocations: 4 kB / 0.8867 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.859e-05/0.008788, allocations: 3.938 kB / 0.8867 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.008791, allocations: 4 kB / 0.8867 GB, free: 14.2 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001027/0.008894, allocations: 209.1 kB / 0.8869 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.008894, allocations: 0 / 0.8869 GB, free: 13.99 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001568/0.009051, allocations: 63.73 kB / 0.887 GB, free: 13.93 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (idxFirTru.y,idxFirTru.intEqu.y,idxFirTruAllFal.y,idxFirTruAllFal.intEqu.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.828e-05/0.009129, allocations: 103.6 kB / 0.8871 GB, free: 13.81 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 9.698e-05/0.009226, allocations: 59.58 kB / 0.8871 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.009227, allocations: 0 / 0.8871 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.605e-05/0.009244, allocations: 23.62 kB / 0.8872 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001673/0.009411, allocations: 28.98 kB / 0.8872 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004581/0.009869, allocations: 450 kB / 0.8876 GB, free: 13.21 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.72e-05/0.009916, allocations: 91.95 kB / 0.8877 GB, free: 13.1 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.697e-05/0.009953, allocations: 17.64 kB / 0.8877 GB, free: 13.08 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.527e-05/0.01002, allocations: 90.19 kB / 0.8878 GB, free: 12.99 MB / 0.8542 GB Notification: Performance of SimCode: time 7.42e-07/0.01002, allocations: 0 / 0.8878 GB, free: 12.99 MB / 0.8542 GB Notification: Performance of Templates: time 0.003617/0.01364, allocations: 1.301 MB / 0.8891 GB, free: 11.73 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.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.711833567358553]