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.001296/0.001296, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 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.001526/0.001526, allocations: 217.4 kB / 23.04 MB, free: 5.074 MB / 14.72 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.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 7.973 MB / 206.1 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.269/3.269, allocations: 0.5003 GB / 0.8062 GB, free: 26.75 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 69.73 kB / 1.171 GB, free: 19.82 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3363, allocations: 179 MB / 1.345 GB, free: 476 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002558/0.3389, allocations: 0.871 MB / 1.346 GB, free: 15.59 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003372/0.3392, allocations: 83.7 kB / 1.346 GB, free: 15.51 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.3393, allocations: 4 kB / 1.346 GB, free: 15.5 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.3395, allocations: 27.73 kB / 1.346 GB, free: 15.48 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.3396, allocations: 15.86 kB / 1.346 GB, free: 15.46 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 9.473e-05/0.3397, allocations: 47.97 kB / 1.346 GB, free: 15.41 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000308/0.34, allocations: 255.4 kB / 1.347 GB, free: 15.16 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003322/0.3404, allocations: 175.1 kB / 1.347 GB, free: 14.99 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.3405, allocations: 135.5 kB / 1.347 GB, free: 14.86 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002113/0.3407, allocations: 143.3 kB / 1.347 GB, free: 14.71 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 6.294e-05/0.3408, allocations: 32 kB / 1.347 GB, free: 14.68 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.93e-05/0.3409, allocations: 32 kB / 1.347 GB, free: 14.65 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.969e-05/0.341, allocations: 87.7 kB / 1.347 GB, free: 14.57 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.3411, allocations: 159 kB / 1.347 GB, free: 14.41 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000526/0.3416, allocations: 466.1 kB / 1.348 GB, free: 13.95 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3416, allocations: 3.938 kB / 1.348 GB, free: 13.95 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.522e-06/0.3416, allocations: 0 / 1.348 GB, free: 13.95 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.606e-05/0.3417, allocations: 0 / 1.348 GB, free: 13.95 MB / 1.045 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.0009183/0.3426, allocations: 0.5246 MB / 1.348 GB, free: 13.39 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.3426, allocations: 12.03 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.751e-05/0.3427, allocations: 8.844 kB / 1.348 GB, free: 13.37 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.678e-05/0.3427, allocations: 70.72 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.858e-05/0.3428, allocations: 44.66 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004601/0.3433, allocations: 275.2 kB / 1.349 GB, free: 12.96 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.794e-05/0.3433, allocations: 37.03 kB / 1.349 GB, free: 12.92 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.993e-05/0.3434, allocations: 28.38 kB / 1.349 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006274/0.344, allocations: 403.8 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.344, allocations: 0 / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.344, allocations: 16 kB / 1.349 GB, free: 12.47 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.032e-05/0.3441, allocations: 8 kB / 1.349 GB, free: 12.46 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004681/0.3445, allocations: 303.7 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.346, allocations: 1.02 MB / 1.35 GB, free: 11.1 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.3462, allocations: 85.16 kB / 1.351 GB, free: 11 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.8e-05/0.3463, allocations: 45.8 kB / 1.351 GB, free: 10.95 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.3463, allocations: 8 kB / 1.351 GB, free: 10.94 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.3463, allocations: 34.55 kB / 1.351 GB, free: 10.89 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 4.278e-06/0.3463, allocations: 3.984 kB / 1.351 GB, free: 10.89 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0003534/0.3467, allocations: 173.3 kB / 1.351 GB, free: 10.71 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.239e-05/0.3467, allocations: 81.05 kB / 1.351 GB, free: 10.62 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000604/0.3473, allocations: 0.5053 MB / 1.351 GB, free: 10.11 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.3474, allocations: 29.7 kB / 1.351 GB, free: 10.07 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001623/0.3475, allocations: 207.7 kB / 1.352 GB, free: 9.863 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.3475, allocations: 19.84 kB / 1.352 GB, free: 9.844 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.056e-05/0.3476, allocations: 57.66 kB / 1.352 GB, free: 9.781 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3478, allocations: 342.8 kB / 1.352 GB, free: 9.438 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.3479, allocations: 67.95 kB / 1.352 GB, free: 9.371 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.348, allocations: 97.5 kB / 1.352 GB, free: 9.27 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/0.3482, allocations: 117.6 kB / 1.352 GB, free: 9.148 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3482, allocations: 0 / 1.352 GB, free: 9.148 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003395/0.3486, allocations: 209.3 kB / 1.352 GB, free: 8.938 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.3486, allocations: 4 kB / 1.352 GB, free: 8.934 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3486, allocations: 0 / 1.352 GB, free: 8.934 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.3486, allocations: 7.938 kB / 1.352 GB, free: 8.926 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.3487, allocations: 27.92 kB / 1.352 GB, free: 8.898 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.3488, allocations: 4 kB / 1.352 GB, free: 8.895 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.759e-05/0.3488, allocations: 27.73 kB / 1.352 GB, free: 8.867 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.3489, allocations: 12 kB / 1.353 GB, free: 8.855 MB / 1.045 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.0002211/0.3491, allocations: 200.6 kB / 1.353 GB, free: 8.648 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.277e-05/0.3492, allocations: 35.77 kB / 1.353 GB, free: 8.613 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000237/0.3494, allocations: 122 kB / 1.353 GB, free: 8.48 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3494, allocations: 0 / 1.353 GB, free: 8.48 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3494, allocations: 4 kB / 1.353 GB, free: 8.477 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.185e-06/0.3494, allocations: 0 / 1.353 GB, free: 8.477 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006429/0.35, allocations: 0.636 MB / 1.353 GB, free: 7.777 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.35, allocations: 0 / 1.353 GB, free: 7.777 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.542e-05/0.3501, allocations: 4 kB / 1.353 GB, free: 7.773 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.3501, allocations: 4 kB / 1.353 GB, free: 7.77 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.3501, allocations: 0 / 1.353 GB, free: 7.77 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3501, allocations: 128 / 1.353 GB, free: 7.77 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3501, allocations: 8 kB / 1.353 GB, free: 7.762 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001579/0.3502, allocations: 135.3 kB / 1.354 GB, free: 7.602 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 8.654e-05/0.3503, allocations: 43.75 kB / 1.354 GB, free: 7.559 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.173e-05/0.3504, allocations: 4 kB / 1.354 GB, free: 7.555 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.901e-05/0.3504, allocations: 12 kB / 1.354 GB, free: 7.543 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.521e-05/0.3505, allocations: 7.922 kB / 1.354 GB, free: 7.535 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.3505, allocations: 4 kB / 1.354 GB, free: 7.531 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004604/0.3509, allocations: 391 kB / 1.354 GB, free: 7.152 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3509, allocations: 0 / 1.354 GB, free: 7.152 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002595/0.3512, allocations: 39.89 kB / 1.354 GB, free: 7.113 MB / 1.045 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.0004779/0.3517, allocations: 0.666 MB / 1.355 GB, free: 6.406 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002182/0.3519, allocations: 103.9 kB / 1.355 GB, free: 6.305 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3519, allocations: 0 / 1.355 GB, free: 6.305 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 2.987e-05/0.3519, allocations: 24 kB / 1.355 GB, free: 6.281 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.3522, allocations: 27.58 kB / 1.355 GB, free: 6.254 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.3557, allocations: 2.917 MB / 1.358 GB, free: 3.234 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/0.3561, allocations: 0.787 MB / 1.359 GB, free: 2.418 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001232/0.3562, allocations: 62.92 kB / 1.359 GB, free: 2.352 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.3563, allocations: 91.41 kB / 1.359 GB, free: 2.262 MB / 1.045 GB Notification: Performance of SimCode: time 6.51e-07/0.3563, allocations: 0 / 1.359 GB, free: 2.262 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03004/0.3864, allocations: 5.898 MB / 1.364 GB, free: 12.53 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.88, allocations: 10.38 kB / 1.364 GB, free: 12.52 MB / 1.061 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_latest_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 840.0] 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/jenkins1/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: 18.70299027103465]