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.001158/0.001158, allocations: 92.7 kB / 20.21 MB, free: 4.227 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.00114/0.00114, allocations: 161.3 kB / 23.51 MB, free: 0.9219 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.9366/0.9366, allocations: 177.2 MB / 203.9 MB, free: 5.594 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.006/2.006, allocations: 428.5 MB / 0.6727 GB, free: 4.914 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 3.116e-06/3.116e-06, allocations: 0 / 0.877 GB, free: 7.93 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 4.153e-05/4.464e-05, allocations: 2.312 kB / 0.877 GB, free: 7.926 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.001941/0.001986, allocations: 0.8479 MB / 0.8779 GB, free: 7.102 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002765/0.002262, allocations: 95.62 kB / 0.8779 GB, free: 7.008 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.861e-05/0.002361, allocations: 3.938 kB / 0.8779 GB, free: 7.004 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001212/0.002482, allocations: 26.02 kB / 0.878 GB, free: 6.98 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.002622, allocations: 9.672 kB / 0.878 GB, free: 6.973 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 7.657e-05/0.002698, allocations: 43.95 kB / 0.878 GB, free: 6.93 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.002929, allocations: 261.7 kB / 0.8783 GB, free: 6.676 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002534/0.003182, allocations: 174.8 kB / 0.8784 GB, free: 6.5 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.003352, allocations: 191.6 kB / 0.8786 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.003488, allocations: 124.3 kB / 0.8787 GB, free: 6.191 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.00353, allocations: 36 kB / 0.8788 GB, free: 6.156 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 2.876e-05/0.003559, allocations: 32.62 kB / 0.8788 GB, free: 6.125 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 6.711e-05/0.003626, allocations: 87.44 kB / 0.8789 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 7.226e-05/0.003698, allocations: 91.7 kB / 0.879 GB, free: 5.953 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003955/0.004094, allocations: 474.4 kB / 0.8794 GB, free: 5.488 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.004097, allocations: 0 / 0.8794 GB, free: 5.488 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.623e-06/0.004099, allocations: 0 / 0.8794 GB, free: 5.488 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.946e-06/0.004108, allocations: 0 / 0.8794 GB, free: 5.488 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.0007371/0.004845, allocations: 0.5247 MB / 0.8799 GB, free: 4.93 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.004889, allocations: 8.031 kB / 0.8799 GB, free: 4.922 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.042e-05/0.00498, allocations: 68.66 kB / 0.88 GB, free: 4.855 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/0.005349, allocations: 283.4 kB / 0.8803 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.999e-05/0.005399, allocations: 37.02 kB / 0.8803 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.005433, allocations: 32.38 kB / 0.8804 GB, free: 4.488 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.00587, allocations: 392.2 kB / 0.8807 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.005881, allocations: 1.156 kB / 0.8807 GB, free: 4.094 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.005903, allocations: 16.38 kB / 0.8807 GB, free: 4.078 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.005912, allocations: 16.3 kB / 0.8808 GB, free: 4.062 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003262/0.006238, allocations: 300.8 kB / 0.881 GB, free: 3.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.00733, allocations: 0.8413 MB / 0.8819 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.007452, allocations: 90.28 kB / 0.882 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.789e-05/0.0075, allocations: 49.78 kB / 0.882 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.007523, allocations: 5.594 kB / 0.882 GB, free: 2.727 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.007546, allocations: 34.56 kB / 0.882 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 2.003e-06/0.007548, allocations: 0 / 0.882 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0002749/0.007823, allocations: 161.4 kB / 0.8822 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.007858, allocations: 77.11 kB / 0.8823 GB, free: 2.426 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/0.008112, allocations: 348.1 kB / 0.8826 GB, free: 2.086 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.008124, allocations: 25.7 kB / 0.8826 GB, free: 2.055 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.008237, allocations: 216.4 kB / 0.8828 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.052e-05/0.008248, allocations: 7.953 kB / 0.8828 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.177e-05/0.00833, allocations: 77.62 kB / 0.8829 GB, free: 1.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.047e-05/0.00842, allocations: 334.8 kB / 0.8832 GB, free: 1.414 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.01e-05/0.0085, allocations: 69.89 kB / 0.8833 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.568e-05/0.008586, allocations: 85.66 kB / 0.8834 GB, free: 1.258 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.008704, allocations: 113.7 kB / 0.8835 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.008706, allocations: 3.938 kB / 0.8835 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002183/0.008925, allocations: 205.4 kB / 0.8837 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.008942, allocations: 10.75 kB / 0.8837 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.00895, allocations: 0 / 0.8837 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.008968, allocations: 2.031 kB / 0.8837 GB, free: 0.9219 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.009089, allocations: 35.92 kB / 0.8837 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.009095, allocations: 0 / 0.8837 GB, free: 0.8867 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.586e-05/0.009141, allocations: 19.89 kB / 0.8838 GB, free: 0.8672 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.009157, allocations: 4 kB / 0.8838 GB, free: 0.8633 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: 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.0001564/0.009314, allocations: 216.7 kB / 0.884 GB, free: 0.6445 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.384e-05/0.009348, allocations: 19.86 kB / 0.884 GB, free: 0.625 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.009509, allocations: 108.7 kB / 0.8841 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.009512, allocations: 0 / 0.8841 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.009518, allocations: 4 kB / 0.8841 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.009521, allocations: 0 / 0.8841 GB, free: 0.5039 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003708/0.009892, allocations: 0.5586 MB / 0.8846 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.009895, allocations: 4.188 kB / 0.8846 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.711e-05/0.009912, allocations: 4 kB / 0.8846 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.009915, allocations: 7.984 kB / 0.8846 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-06/0.009921, allocations: 0 / 0.8846 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.009926, allocations: 7.938 kB / 0.8847 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.009928, allocations: 0 / 0.8847 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.853e-05/0.01002, allocations: 111.6 kB / 0.8848 GB, free: 15.73 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.878e-05/0.01005, allocations: 19.86 kB / 0.8848 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.01006, allocations: 4 kB / 0.8848 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.047e-05/0.01009, allocations: 7.938 kB / 0.8848 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.894e-05/0.01012, allocations: 7.984 kB / 0.8848 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.01012, allocations: 8 kB / 0.8848 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000171/0.01029, allocations: 237.2 kB / 0.885 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.01029, allocations: 0 / 0.885 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004745/0.01077, allocations: 55.73 kB / 0.8851 GB, free: 15.39 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 0.0001054/0.01087, allocations: 99.19 kB / 0.8852 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.00023/0.0111, allocations: 103.9 kB / 0.8853 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01111, allocations: 0 / 0.8853 GB, free: 15.18 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 1.815e-05/0.01112, allocations: 16.12 kB / 0.8853 GB, free: 15.17 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001977/0.01132, allocations: 42.02 kB / 0.8853 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005419/0.01186, allocations: 495.6 kB / 0.8858 GB, free: 14.61 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.012, allocations: 191 kB / 0.886 GB, free: 14.4 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.216e-05/0.01206, allocations: 41.61 kB / 0.886 GB, free: 14.36 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.01209, allocations: 16.5 kB / 0.886 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of SimCode: time 7.32e-07/0.01209, allocations: 0 / 0.886 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of Templates: time 0.003502/0.0156, allocations: 1.213 MB / 0.8872 GB, free: 13.16 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=800 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 5.185732988640666]