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.001723/0.001723, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002118/0.002118, allocations: 215.4 kB / 22.25 MB, free: 5.113 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.466/1.466, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.742/2.742, allocations: 476.7 MB / 0.7707 GB, free: 4.262 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-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: "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="me",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.002103/0.002103, allocations: 64.78 kB / 1.117 GB, free: 40.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3029, allocations: 170 MB / 1.283 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002292/0.3052, allocations: 0.8728 MB / 1.284 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002797/0.3055, allocations: 93.42 kB / 1.284 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.504e-05/0.3056, allocations: 4 kB / 1.284 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.3057, allocations: 19.8 kB / 1.284 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.3059, allocations: 15.86 kB / 1.284 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 8.687e-05/0.3059, allocations: 43.95 kB / 1.284 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003231/0.3063, allocations: 255.4 kB / 1.285 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003021/0.3066, allocations: 174.7 kB / 1.285 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.3067, allocations: 127.6 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.3069, allocations: 147.3 kB / 1.285 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.3069, allocations: 36 kB / 1.285 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.958e-05/0.307, allocations: 32 kB / 1.285 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.646e-05/0.3071, allocations: 91.7 kB / 1.285 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.3072, allocations: 151.1 kB / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.3077, allocations: 466.2 kB / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3077, allocations: 0 / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3077, allocations: 0 / 1.286 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.3077, allocations: 0 / 1.286 GB, free: 9.227 MB / 0.9825 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.0007314/0.3084, allocations: 0.5246 MB / 1.286 GB, free: 8.668 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3085, allocations: 12.03 kB / 1.286 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.852e-05/0.3086, allocations: 74.72 kB / 1.286 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.068e-05/0.3086, allocations: 48.59 kB / 1.286 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004663/0.3091, allocations: 270.5 kB / 1.287 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.518e-05/0.3092, allocations: 37.03 kB / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.3092, allocations: 28.38 kB / 1.287 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.3098, allocations: 400.2 kB / 1.287 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.3098, allocations: 7.938 kB / 1.287 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.782e-05/0.3099, allocations: 16 kB / 1.287 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.3099, allocations: 8 kB / 1.287 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004692/0.3103, allocations: 303.6 kB / 1.287 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001458/0.3118, allocations: 1.02 MB / 1.288 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.312, allocations: 85.22 kB / 1.289 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.904e-05/0.312, allocations: 45.78 kB / 1.289 GB, free: 6.227 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.312, allocations: 4 kB / 1.289 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.3121, allocations: 42.48 kB / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.3121, allocations: 0 / 1.289 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0003468/0.3124, allocations: 169.3 kB / 1.289 GB, free: 6 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.3125, allocations: 77.11 kB / 1.289 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006229/0.3131, allocations: 0.5131 MB / 1.289 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.3131, allocations: 29.7 kB / 1.289 GB, free: 5.348 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.3133, allocations: 211.7 kB / 1.29 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.3133, allocations: 15.84 kB / 1.29 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.73e-05/0.3134, allocations: 53.7 kB / 1.29 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.3136, allocations: 342.8 kB / 1.29 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001113/0.3137, allocations: 67.95 kB / 1.29 GB, free: 4.652 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.3138, allocations: 97.56 kB / 1.29 GB, free: 4.551 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.314, allocations: 117.5 kB / 1.29 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.314, allocations: 0 / 1.29 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003165/0.3143, allocations: 209.3 kB / 1.29 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3143, allocations: 6.188 kB / 1.29 GB, free: 4.215 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.3143, allocations: 4 kB / 1.29 GB, free: 4.211 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.3143, allocations: 7.875 kB / 1.29 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.3145, allocations: 27.98 kB / 1.291 GB, free: 4.176 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.3145, allocations: 0 / 1.291 GB, free: 4.176 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.516e-05/0.3146, allocations: 27.73 kB / 1.291 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.81e-05/0.3146, allocations: 16 kB / 1.291 GB, free: 4.133 MB / 0.9825 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.0002235/0.3148, allocations: 203.7 kB / 1.291 GB, free: 3.926 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-05/0.3149, allocations: 31.77 kB / 1.291 GB, free: 3.895 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002178/0.3151, allocations: 114.1 kB / 1.291 GB, free: 3.773 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3151, allocations: 7.938 kB / 1.291 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3151, allocations: 4.062 kB / 1.291 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3151, allocations: 0 / 1.291 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000642/0.3158, allocations: 0.6282 MB / 1.292 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3158, allocations: 0 / 1.292 GB, free: 3.07 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.517e-05/0.3158, allocations: 7.938 kB / 1.292 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.3158, allocations: 8.125 kB / 1.292 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.483e-06/0.3158, allocations: 0 / 1.292 GB, free: 3.055 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3158, allocations: 3.984 kB / 1.292 GB, free: 3.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.3158, allocations: 4 kB / 1.292 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.316, allocations: 127.4 kB / 1.292 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.657e-05/0.316, allocations: 47.8 kB / 1.292 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.15e-05/0.3161, allocations: 4.375 kB / 1.292 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.212e-05/0.3161, allocations: 4 kB / 1.292 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.463e-05/0.3162, allocations: 12.11 kB / 1.292 GB, free: 2.828 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.845e-06/0.3162, allocations: 7.938 kB / 1.292 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004708/0.3166, allocations: 395 kB / 1.292 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3166, allocations: 0 / 1.292 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002442/0.3169, allocations: 35.94 kB / 1.292 GB, free: 2.402 MB / 0.9825 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.0005247/0.3174, allocations: 0.6772 MB / 1.293 GB, free: 1.684 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002224/0.3176, allocations: 103.9 kB / 1.293 GB, free: 1.582 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.3176, allocations: 4 kB / 1.293 GB, free: 1.578 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.933e-05/0.3176, allocations: 15.94 kB / 1.293 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.3179, allocations: 33.64 kB / 1.293 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003394/0.3213, allocations: 2.904 MB / 1.296 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.3217, allocations: 0.787 MB / 1.297 GB, free: 13.71 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001155/0.3218, allocations: 62.92 kB / 1.297 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000144/0.322, allocations: 87.41 kB / 1.297 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of SimCode: time 2.81e-07/0.322, allocations: 0 / 1.297 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08318/0.4052, allocations: 5.864 MB / 1.302 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.07, allocations: 11.06 kB / 1.302 GB, free: 7.844 MB / 0.9981 GB " [Timeout remaining time 287] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 420.0] 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/jenkins1/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: 18.71372790611349]