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.001791/0.001791, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002266/0.002266, allocations: 217.7 kB / 22.25 MB, free: 5.121 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.542/1.542, allocations: 230.6 MB / 256 MB, free: 8 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.433/3.433, allocations: 0.505 GB / 0.8101 GB, free: 22.04 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_latest_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.002039/0.002039, allocations: 62.72 kB / 1.177 GB, free: 17.31 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3459, allocations: 180.2 MB / 1.353 GB, free: 8.598 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002287/0.3482, allocations: 0.8672 MB / 1.354 GB, free: 7.73 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.000308/0.3485, allocations: 99.62 kB / 1.354 GB, free: 7.633 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.3486, allocations: 7.938 kB / 1.354 GB, free: 7.625 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.3487, allocations: 15.8 kB / 1.354 GB, free: 7.609 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.3489, allocations: 23.86 kB / 1.354 GB, free: 7.586 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 9.103e-05/0.349, allocations: 39.95 kB / 1.354 GB, free: 7.547 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003525/0.3493, allocations: 255.4 kB / 1.354 GB, free: 7.297 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003438/0.3497, allocations: 179.1 kB / 1.354 GB, free: 7.117 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.3498, allocations: 131.6 kB / 1.354 GB, free: 6.988 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.35, allocations: 147.3 kB / 1.355 GB, free: 6.844 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.212e-05/0.35, allocations: 32 kB / 1.355 GB, free: 6.812 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 5.263e-05/0.3501, allocations: 32 kB / 1.355 GB, free: 6.781 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.3502, allocations: 95.69 kB / 1.355 GB, free: 6.688 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.3504, allocations: 151.1 kB / 1.355 GB, free: 6.539 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004825/0.3508, allocations: 458.1 kB / 1.355 GB, free: 6.09 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3508, allocations: 0 / 1.355 GB, free: 6.09 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.174e-06/0.3508, allocations: 0 / 1.355 GB, free: 6.09 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.325e-06/0.3509, allocations: 0 / 1.355 GB, free: 6.09 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.0007768/0.3516, allocations: 0.5363 MB / 1.356 GB, free: 5.52 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3517, allocations: 8.031 kB / 1.356 GB, free: 5.512 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.027e-05/0.3517, allocations: 70.72 kB / 1.356 GB, free: 5.434 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.526e-05/0.3518, allocations: 44.66 kB / 1.356 GB, free: 5.391 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004684/0.3523, allocations: 270.5 kB / 1.356 GB, free: 5.102 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.937e-05/0.3523, allocations: 33.03 kB / 1.356 GB, free: 5.07 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.324e-05/0.3524, allocations: 32.38 kB / 1.356 GB, free: 5.039 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006566/0.353, allocations: 411.9 kB / 1.357 GB, free: 4.625 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.3531, allocations: 7.938 kB / 1.357 GB, free: 4.617 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.657e-05/0.3531, allocations: 8 kB / 1.357 GB, free: 4.609 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.3531, allocations: 8 kB / 1.357 GB, free: 4.602 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004917/0.3536, allocations: 303.8 kB / 1.357 GB, free: 4.305 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001492/0.3551, allocations: 1.016 MB / 1.358 GB, free: 3.238 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.3552, allocations: 93.16 kB / 1.358 GB, free: 3.129 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.185e-05/0.3553, allocations: 41.8 kB / 1.358 GB, free: 3.082 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.3553, allocations: 3.984 kB / 1.358 GB, free: 3.078 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.3554, allocations: 30.56 kB / 1.358 GB, free: 3.039 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.3554, allocations: 0 / 1.358 GB, free: 3.039 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0003629/0.3557, allocations: 177.6 kB / 1.358 GB, free: 2.859 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.3558, allocations: 81.11 kB / 1.358 GB, free: 2.762 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006242/0.3564, allocations: 0.5092 MB / 1.359 GB, free: 2.246 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.3564, allocations: 25.7 kB / 1.359 GB, free: 2.215 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.3566, allocations: 207.7 kB / 1.359 GB, free: 2.008 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.3566, allocations: 11.84 kB / 1.359 GB, free: 1.996 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.347e-05/0.3567, allocations: 61.64 kB / 1.359 GB, free: 1.93 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000175/0.3569, allocations: 342.8 kB / 1.359 GB, free: 1.586 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.357, allocations: 63.95 kB / 1.36 GB, free: 1.523 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.3571, allocations: 103.2 kB / 1.36 GB, free: 1.418 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001803/0.3573, allocations: 117.5 kB / 1.36 GB, free: 1.297 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3573, allocations: 0 / 1.36 GB, free: 1.297 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003216/0.3576, allocations: 205.4 kB / 1.36 GB, free: 1.09 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.3577, allocations: 4 kB / 1.36 GB, free: 1.086 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3577, allocations: 4 kB / 1.36 GB, free: 1.082 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.3577, allocations: 7.969 kB / 1.36 GB, free: 1.074 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.3578, allocations: 31.92 kB / 1.36 GB, free: 1.043 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3578, allocations: 4 kB / 1.36 GB, free: 1.039 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.396e-05/0.3579, allocations: 31.73 kB / 1.36 GB, free: 1.008 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.358, allocations: 12 kB / 1.36 GB, free: 0.9961 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.0002249/0.3582, allocations: 203.7 kB / 1.36 GB, free: 0.7852 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.098e-05/0.3582, allocations: 31.95 kB / 1.36 GB, free: 0.7539 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002183/0.3585, allocations: 118.1 kB / 1.36 GB, free: 0.6289 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.3585, allocations: 11.88 kB / 1.36 GB, free: 0.6172 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3585, allocations: 0 / 1.36 GB, free: 0.6172 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3585, allocations: 0 / 1.36 GB, free: 0.6172 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006572/0.3591, allocations: 0.6359 MB / 1.361 GB, free: 15.92 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3591, allocations: 192 / 1.361 GB, free: 15.92 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.924e-05/0.3592, allocations: 8 kB / 1.361 GB, free: 15.91 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3592, allocations: 4 kB / 1.361 GB, free: 15.91 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.3592, allocations: 0 / 1.361 GB, free: 15.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3592, allocations: 0 / 1.361 GB, free: 15.91 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.3592, allocations: 7.938 kB / 1.361 GB, free: 15.9 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.3593, allocations: 131.4 kB / 1.361 GB, free: 15.74 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 9.17e-05/0.3594, allocations: 51.75 kB / 1.361 GB, free: 15.69 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.3595, allocations: 0 / 1.361 GB, free: 15.69 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.277e-05/0.3595, allocations: 4 kB / 1.361 GB, free: 15.69 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.3595, allocations: 7.984 kB / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.3595, allocations: 0 / 1.361 GB, free: 15.68 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004862/0.36, allocations: 395 kB / 1.362 GB, free: 15.29 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.36, allocations: 0 / 1.362 GB, free: 15.29 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002499/0.3603, allocations: 47.89 kB / 1.362 GB, free: 15.25 MB / 1.061 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.0005373/0.3608, allocations: 0.6538 MB / 1.362 GB, free: 14.55 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002402/0.3611, allocations: 111.8 kB / 1.362 GB, free: 14.44 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.3611, allocations: 0 / 1.362 GB, free: 14.44 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.604e-05/0.3611, allocations: 15.94 kB / 1.362 GB, free: 14.43 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.3613, allocations: 33.64 kB / 1.362 GB, free: 14.39 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003546/0.3649, allocations: 2.914 MB / 1.365 GB, free: 11.38 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.3654, allocations: 0.7907 MB / 1.366 GB, free: 10.56 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001112/0.3655, allocations: 58.92 kB / 1.366 GB, free: 10.51 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001581/0.3656, allocations: 95.41 kB / 1.366 GB, free: 10.41 MB / 1.061 GB Notification: Performance of SimCode: time 3.4e-07/0.3656, allocations: 0 / 1.366 GB, free: 10.41 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03419/0.3998, allocations: 5.881 MB / 1.372 GB, free: 4.68 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.86, allocations: 1.172 kB / 1.372 GB, free: 4.68 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.84548903396353]