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.001897/0.001897, allocations: 80.73 kB / 19.44 MB, free: 352 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.002776/0.002776, allocations: 157.7 kB / 22.75 MB, free: 1.676 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.5/1.5, allocations: 177.1 MB / 203.1 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] 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 3.209/3.209, allocations: 429.6 MB / 0.673 GB, free: 3.875 MB / 0.6355 GB " [Timeout remaining time 176] 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 2.124e-06/2.124e-06, allocations: 0.7656 kB / 0.8776 GB, free: 6.492 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.766e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.488 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002241/0.002269, allocations: 0.8465 MB / 0.8784 GB, free: 5.664 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003605/0.002629, allocations: 100.4 kB / 0.8785 GB, free: 5.566 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.736e-05/0.002717, allocations: 4 kB / 0.8785 GB, free: 5.562 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.002859, allocations: 20.45 kB / 0.8785 GB, free: 5.543 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.002996, allocations: 17.83 kB / 0.8785 GB, free: 5.527 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 9.877e-05/0.003094, allocations: 40.91 kB / 0.8786 GB, free: 5.488 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.000579/0.003673, allocations: 255.7 kB / 0.8788 GB, free: 5.238 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003363/0.00401, allocations: 166.9 kB / 0.879 GB, free: 5.07 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.004246, allocations: 192.7 kB / 0.8792 GB, free: 4.883 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.00445, allocations: 123.6 kB / 0.8793 GB, free: 4.762 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 6.099e-05/0.004511, allocations: 32 kB / 0.8793 GB, free: 4.73 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 5.496e-05/0.004566, allocations: 33.12 kB / 0.8793 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.004679, allocations: 95.67 kB / 0.8794 GB, free: 4.605 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.004798, allocations: 87.75 kB / 0.8795 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0005665/0.005364, allocations: 475.4 kB / 0.88 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.844e-06/0.005366, allocations: 0 / 0.88 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.12e-07/0.005367, allocations: 0 / 0.88 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.005372, allocations: 1.312 kB / 0.88 GB, free: 4.055 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.0007729/0.006145, allocations: 0.5208 MB / 0.8805 GB, free: 3.5 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.006181, allocations: 12.03 kB / 0.8805 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.006319, allocations: 66.09 kB / 0.8806 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004765/0.006795, allocations: 289.7 kB / 0.8808 GB, free: 3.117 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.042e-05/0.006856, allocations: 36.14 kB / 0.8809 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.347e-05/0.006909, allocations: 36.38 kB / 0.8809 GB, free: 3.051 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007095/0.007619, allocations: 392.2 kB / 0.8813 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.007631, allocations: 192 / 0.8813 GB, free: 2.656 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.728e-05/0.007668, allocations: 16.38 kB / 0.8813 GB, free: 2.641 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.007681, allocations: 8.375 kB / 0.8813 GB, free: 2.633 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005601/0.008241, allocations: 307.5 kB / 0.8816 GB, free: 2.332 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001449/0.009691, allocations: 0.8415 MB / 0.8824 GB, free: 1.457 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.00986, allocations: 89.75 kB / 0.8825 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.816e-05/0.009938, allocations: 47.45 kB / 0.8825 GB, free: 1.301 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.009962, allocations: 11.92 kB / 0.8826 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.009996, allocations: 30.56 kB / 0.8826 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.009997, allocations: 0 / 0.8826 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0003848/0.01038, allocations: 157.9 kB / 0.8827 GB, free: 1.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.01044, allocations: 81.11 kB / 0.8828 GB, free: 0.9922 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000428/0.01087, allocations: 342.9 kB / 0.8831 GB, free: 0.6562 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.01089, allocations: 29.7 kB / 0.8832 GB, free: 0.6211 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.01109, allocations: 212.4 kB / 0.8834 GB, free: 420 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.227e-05/0.0111, allocations: 9.547 kB / 0.8834 GB, free: 412 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.01123, allocations: 77.64 kB / 0.8835 GB, free: 328 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002177/0.01144, allocations: 338.8 kB / 0.8838 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.01157, allocations: 63.95 kB / 0.8838 GB, free: 15.92 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.01172, allocations: 89.66 kB / 0.8839 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002021/0.01192, allocations: 117.5 kB / 0.884 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.01192, allocations: 4 kB / 0.884 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003702/0.01229, allocations: 205.4 kB / 0.8842 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.01231, allocations: 6.5 kB / 0.8842 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.01231, allocations: 0 / 0.8842 GB, free: 15.49 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.01233, allocations: 7.938 kB / 0.8843 GB, free: 15.48 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.01248, allocations: 27.98 kB / 0.8843 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.01248, allocations: 0 / 0.8843 GB, free: 15.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.486e-05/0.01255, allocations: 15.89 kB / 0.8843 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.01257, allocations: 8 kB / 0.8843 GB, free: 15.43 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 (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.0002449/0.01281, allocations: 216 kB / 0.8845 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.277e-05/0.01288, allocations: 19.86 kB / 0.8845 GB, free: 15.19 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002401/0.01312, allocations: 108.7 kB / 0.8846 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.01312, allocations: 0 / 0.8846 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.01312, allocations: 0 / 0.8846 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.01312, allocations: 0 / 0.8846 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006251/0.01375, allocations: 0.5664 MB / 0.8852 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.01375, allocations: 0 / 0.8852 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.52e-05/0.01378, allocations: 11.94 kB / 0.8852 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.01378, allocations: 4 kB / 0.8852 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.01379, allocations: 0 / 0.8852 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.295e-06/0.0138, allocations: 7.922 kB / 0.8852 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.0138, allocations: 4 kB / 0.8852 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.01396, allocations: 111.6 kB / 0.8853 GB, free: 14.29 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.13e-05/0.01401, allocations: 23.86 kB / 0.8853 GB, free: 14.27 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.602e-05/0.01404, allocations: 8.125 kB / 0.8853 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.609e-05/0.01409, allocations: 7.938 kB / 0.8854 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.188e-05/0.01411, allocations: 3.984 kB / 0.8854 GB, free: 14.25 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.01412, allocations: 8 kB / 0.8854 GB, free: 14.24 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0002963/0.01441, allocations: 229.2 kB / 0.8856 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7e-08/0.01441, allocations: 0 / 0.8856 GB, free: 14.01 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004783/0.01489, allocations: 59.73 kB / 0.8856 GB, free: 13.95 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.0001407/0.01503, allocations: 99.23 kB / 0.8857 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002255/0.01526, allocations: 95.89 kB / 0.8858 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.01526, allocations: 8 kB / 0.8858 GB, free: 13.74 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.415e-05/0.0153, allocations: 19.92 kB / 0.8859 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.0002377/0.01553, allocations: 20.5 kB / 0.8859 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008444/0.01638, allocations: 0.4955 MB / 0.8864 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.01661, allocations: 191.4 kB / 0.8865 GB, free: 12.96 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 9.697e-05/0.0167, allocations: 37.61 kB / 0.8866 GB, free: 12.92 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.01676, allocations: 20.44 kB / 0.8866 GB, free: 12.9 MB / 0.8542 GB Notification: Performance of SimCode: time 4.4e-07/0.01676, allocations: 0 / 0.8866 GB, free: 12.9 MB / 0.8542 GB Notification: Performance of Templates: time 0.004647/0.0214, allocations: 1.204 MB / 0.8878 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=800 -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: 8.157401306903921]