Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001503/0.001503, allocations: 80.41 kB / 20.23 MB, free: 4.203 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.001565/0.001565, allocations: 161.7 kB / 23.54 MB, free: 0.8945 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.476/1.476, allocations: 177.2 MB / 203.9 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.736/2.736, allocations: 359 MB / 0.6048 GB, free: 10.97 MB / 0.573 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/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_11_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_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 0.7864 GB, free: 12.85 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.92e-05/3.112e-05, allocations: 2.312 kB / 0.7864 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002448/0.002479, allocations: 0.8568 MB / 0.7872 GB, free: 12 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0003739/0.002853, allocations: 91.64 kB / 0.7873 GB, free: 11.91 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.00298, allocations: 8.812 kB / 0.7873 GB, free: 11.91 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001585/0.003138, allocations: 19.8 kB / 0.7873 GB, free: 11.89 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.003315, allocations: 16.73 kB / 0.7873 GB, free: 11.87 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000113/0.003428, allocations: 43.95 kB / 0.7874 GB, free: 11.83 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0003727/0.003801, allocations: 255.4 kB / 0.7876 GB, free: 11.58 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00035/0.004151, allocations: 167.6 kB / 0.7878 GB, free: 11.41 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002539/0.004405, allocations: 188.6 kB / 0.788 GB, free: 11.23 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.004601, allocations: 131.6 kB / 0.7881 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 5.899e-05/0.00466, allocations: 32 kB / 0.7881 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.512e-05/0.004715, allocations: 36.66 kB / 0.7881 GB, free: 11.03 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.004823, allocations: 83.69 kB / 0.7882 GB, free: 10.95 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.004948, allocations: 93.12 kB / 0.7883 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.000574/0.005522, allocations: 474.4 kB / 0.7888 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.005525, allocations: 0 / 0.7888 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.032e-06/0.005526, allocations: 0 / 0.7888 GB, free: 10.39 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.005533, allocations: 1.312 kB / 0.7888 GB, free: 10.39 MB / 0.7448 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.0008241/0.006357, allocations: 0.5169 MB / 0.7893 GB, free: 9.844 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.0064, allocations: 12.03 kB / 0.7893 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.006537, allocations: 65.92 kB / 0.7893 GB, free: 9.77 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004857/0.007022, allocations: 285.7 kB / 0.7896 GB, free: 9.465 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.958e-05/0.007082, allocations: 30.78 kB / 0.7896 GB, free: 9.438 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.516e-05/0.007137, allocations: 36.38 kB / 0.7897 GB, free: 9.402 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.00818, allocations: 400.2 kB / 0.7901 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.008191, allocations: 192 / 0.7901 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.008226, allocations: 12.38 kB / 0.7901 GB, free: 8.992 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.008238, allocations: 9.219 kB / 0.7901 GB, free: 8.984 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005253/0.008764, allocations: 311.3 kB / 0.7904 GB, free: 8.68 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.0102, allocations: 0.8505 MB / 0.7912 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.01037, allocations: 86.53 kB / 0.7913 GB, free: 7.691 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.014e-05/0.01045, allocations: 49.78 kB / 0.7913 GB, free: 7.637 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.01048, allocations: 8 kB / 0.7914 GB, free: 7.629 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.01052, allocations: 30.56 kB / 0.7914 GB, free: 7.59 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.01052, allocations: 5.531 kB / 0.7914 GB, free: 7.586 MB / 0.7448 GB Notification: Performance of matching and sorting (n=6): time 0.000372/0.01089, allocations: 153.5 kB / 0.7915 GB, free: 7.43 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.936e-05/0.01096, allocations: 85.05 kB / 0.7916 GB, free: 7.328 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004423/0.0114, allocations: 345.5 kB / 0.7919 GB, free: 6.984 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.156e-05/0.01142, allocations: 27.3 kB / 0.792 GB, free: 6.953 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.01161, allocations: 212.4 kB / 0.7922 GB, free: 6.742 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.01163, allocations: 11.91 kB / 0.7922 GB, free: 6.73 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.01175, allocations: 73.67 kB / 0.7923 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001897/0.01194, allocations: 337.4 kB / 0.7926 GB, free: 6.316 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.01208, allocations: 71.94 kB / 0.7926 GB, free: 6.246 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.01221, allocations: 83.23 kB / 0.7927 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.0124, allocations: 117.6 kB / 0.7928 GB, free: 6.039 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.0124, allocations: 0 / 0.7928 GB, free: 6.039 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003392/0.01274, allocations: 205.4 kB / 0.793 GB, free: 5.832 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.01276, allocations: 4 kB / 0.793 GB, free: 5.828 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.01277, allocations: 4.719 kB / 0.793 GB, free: 5.824 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.01279, allocations: 3.984 kB / 0.793 GB, free: 5.82 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.01294, allocations: 29.59 kB / 0.7931 GB, free: 5.793 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.01295, allocations: 0 / 0.7931 GB, free: 5.793 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.976e-05/0.01301, allocations: 15.89 kB / 0.7931 GB, free: 5.777 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.01303, allocations: 11.98 kB / 0.7931 GB, free: 5.766 MB / 0.7448 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 (idxFirTru.booToInt[1].y,idxFirTru.booToInt[2].y,idxFirTru.booToInt[3].y,idxFirTru.booToInt[4].y,idxFirTru.booToInt[5].y,idxFirTru.booToInt[6].y,idxFirTru.intEqu.y,idxFirTru.mulMin.y,idxFirTru.y,idxFirTruAllFal.booToInt[1].y,idxFirTruAllFal.booToInt[2].y,idxFirTruAllFal.booToInt[3].y,idxFirTruAllFal.booToInt[4].y,idxFirTruAllFal.booToInt[5].y,idxFirTruAllFal.booToInt[6].y,idxFirTruAllFal.intEqu.y,idxFirTruAllFal.mulMin.y,idxFirTruAllFal.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.0002399/0.01327, allocations: 205.4 kB / 0.7933 GB, free: 5.559 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.327e-05/0.01334, allocations: 23.86 kB / 0.7933 GB, free: 5.535 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002234/0.01356, allocations: 101.8 kB / 0.7934 GB, free: 5.426 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.01356, allocations: 0 / 0.7934 GB, free: 5.426 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.01357, allocations: 1.844 kB / 0.7934 GB, free: 5.426 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.01357, allocations: 7.938 kB / 0.7934 GB, free: 5.418 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006119/0.01418, allocations: 0.5508 MB / 0.794 GB, free: 4.816 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01418, allocations: 2 kB / 0.794 GB, free: 4.816 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.685e-05/0.01421, allocations: 12.36 kB / 0.794 GB, free: 4.805 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.01422, allocations: 4 kB / 0.794 GB, free: 4.801 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.01422, allocations: 0 / 0.794 GB, free: 4.801 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.603e-06/0.01423, allocations: 7.875 kB / 0.794 GB, free: 4.793 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.01423, allocations: 4.594 kB / 0.794 GB, free: 4.789 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001607/0.01439, allocations: 116.1 kB / 0.7941 GB, free: 4.648 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.782e-05/0.01443, allocations: 19.84 kB / 0.7941 GB, free: 4.629 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.01446, allocations: 4.719 kB / 0.7941 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.13e-05/0.01451, allocations: 16.45 kB / 0.7941 GB, free: 4.609 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.697e-05/0.01453, allocations: 3.938 kB / 0.7941 GB, free: 4.605 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.01454, allocations: 5.469 kB / 0.7941 GB, free: 4.602 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0002806/0.01482, allocations: 237.2 kB / 0.7944 GB, free: 4.371 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.01482, allocations: 0 / 0.7944 GB, free: 4.371 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002729/0.01509, allocations: 55.73 kB / 0.7944 GB, free: 4.316 MB / 0.7448 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 0.0001363/0.01523, allocations: 101.2 kB / 0.7945 GB, free: 4.211 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000221/0.01545, allocations: 99.88 kB / 0.7946 GB, free: 4.113 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.01545, allocations: 0 / 0.7946 GB, free: 4.113 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.135e-05/0.01548, allocations: 17.09 kB / 0.7946 GB, free: 4.098 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/0.01573, allocations: 29.86 kB / 0.7947 GB, free: 4.066 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008158/0.01655, allocations: 0.4994 MB / 0.7952 GB, free: 3.527 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.01675, allocations: 178.3 kB / 0.7953 GB, free: 3.336 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 9.138e-05/0.01684, allocations: 42.2 kB / 0.7954 GB, free: 3.289 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.05e-05/0.01689, allocations: 21.03 kB / 0.7954 GB, free: 3.27 MB / 0.7448 GB Notification: Performance of SimCode: time 3.9e-07/0.01689, allocations: 0 / 0.7954 GB, free: 3.27 MB / 0.7448 GB Notification: Performance of Templates: time 0.004998/0.02189, allocations: 1.209 MB / 0.7966 GB, free: 2.109 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & ./Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.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: 7.5924299960024655]