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.001346/0.001346, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001529/0.001529, allocations: 212.2 kB / 22.24 MB, free: 5.258 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.797 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.322/3.322, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 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.002126/0.002126, allocations: 70.92 kB / 1.186 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3814/0.3835, allocations: 181.9 MB / 1.363 GB, free: 14.08 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002321/0.3859, allocations: 0.8476 MB / 1.364 GB, free: 13.23 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003056/0.3862, allocations: 91.69 kB / 1.364 GB, free: 13.14 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.278e-05/0.3863, allocations: 7.938 kB / 1.364 GB, free: 13.14 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.3864, allocations: 23.78 kB / 1.364 GB, free: 13.11 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.3865, allocations: 19.86 kB / 1.364 GB, free: 13.09 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 9.258e-05/0.3866, allocations: 39.97 kB / 1.364 GB, free: 13.05 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003222/0.387, allocations: 259.4 kB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003355/0.3873, allocations: 166.8 kB / 1.365 GB, free: 12.63 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001581/0.3875, allocations: 131.5 kB / 1.365 GB, free: 12.5 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002037/0.3877, allocations: 155.2 kB / 1.365 GB, free: 12.35 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 6.327e-05/0.3877, allocations: 35.94 kB / 1.365 GB, free: 12.32 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 5.348e-05/0.3878, allocations: 32 kB / 1.365 GB, free: 12.29 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 9.721e-05/0.3879, allocations: 79.78 kB / 1.365 GB, free: 12.21 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.388, allocations: 127.3 kB / 1.365 GB, free: 12.08 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000478/0.3885, allocations: 466.3 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3885, allocations: 0 / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.863e-06/0.3885, allocations: 4 kB / 1.366 GB, free: 11.62 MB / 1.061 GB Notification: Performance of Transformations before backend: time 9.838e-06/0.3885, allocations: 0 / 1.366 GB, free: 11.62 MB / 1.061 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.0008417/0.3893, allocations: 0.5247 MB / 1.366 GB, free: 11.06 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/0.3894, allocations: 12.03 kB / 1.366 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.169e-05/0.3895, allocations: 70.72 kB / 1.366 GB, free: 10.97 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.867e-05/0.3896, allocations: 36.7 kB / 1.366 GB, free: 10.94 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005687/0.3901, allocations: 274.5 kB / 1.367 GB, free: 10.64 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.99e-05/0.3902, allocations: 37.02 kB / 1.367 GB, free: 10.61 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.053e-05/0.3903, allocations: 32.38 kB / 1.367 GB, free: 10.57 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006908/0.391, allocations: 404 kB / 1.367 GB, free: 10.17 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.391, allocations: 7.938 kB / 1.367 GB, free: 10.16 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.391, allocations: 12 kB / 1.367 GB, free: 10.15 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.391, allocations: 8 kB / 1.367 GB, free: 10.14 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005069/0.3915, allocations: 299.8 kB / 1.367 GB, free: 9.848 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001599/0.3931, allocations: 0.9615 MB / 1.368 GB, free: 8.836 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001801/0.3933, allocations: 89.16 kB / 1.368 GB, free: 8.73 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.847e-05/0.3934, allocations: 45.78 kB / 1.368 GB, free: 8.68 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.3934, allocations: 4 kB / 1.368 GB, free: 8.676 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.3934, allocations: 30.56 kB / 1.369 GB, free: 8.637 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.3934, allocations: 4 kB / 1.369 GB, free: 8.633 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0003847/0.3938, allocations: 173.3 kB / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.3939, allocations: 81.05 kB / 1.369 GB, free: 8.359 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006203/0.3945, allocations: 0.513 MB / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.3945, allocations: 33.64 kB / 1.369 GB, free: 7.801 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/0.3947, allocations: 199.8 kB / 1.369 GB, free: 7.602 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.3947, allocations: 19.84 kB / 1.37 GB, free: 7.582 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.538e-05/0.3948, allocations: 53.69 kB / 1.37 GB, free: 7.523 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001838/0.395, allocations: 342.8 kB / 1.37 GB, free: 7.18 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.3951, allocations: 67.95 kB / 1.37 GB, free: 7.113 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.3952, allocations: 97.56 kB / 1.37 GB, free: 7.012 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.3954, allocations: 117.5 kB / 1.37 GB, free: 6.891 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3954, allocations: 0 / 1.37 GB, free: 6.891 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003385/0.3958, allocations: 209.3 kB / 1.37 GB, free: 6.68 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3958, allocations: 4 kB / 1.37 GB, free: 6.676 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3958, allocations: 0 / 1.37 GB, free: 6.676 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.3958, allocations: 7.938 kB / 1.37 GB, free: 6.668 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.396, allocations: 27.92 kB / 1.37 GB, free: 6.641 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.396, allocations: 4 kB / 1.37 GB, free: 6.637 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.428e-05/0.3961, allocations: 39.67 kB / 1.37 GB, free: 6.598 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.3961, allocations: 8 kB / 1.37 GB, free: 6.59 MB / 1.061 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.0002431/0.3963, allocations: 204.9 kB / 1.371 GB, free: 6.383 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.935e-05/0.3964, allocations: 32.14 kB / 1.371 GB, free: 6.352 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002497/0.3966, allocations: 114.1 kB / 1.371 GB, free: 6.23 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.3966, allocations: 7.938 kB / 1.371 GB, free: 6.223 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.3967, allocations: 3.984 kB / 1.371 GB, free: 6.219 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.155e-06/0.3967, allocations: 192 / 1.371 GB, free: 6.219 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007016/0.3974, allocations: 0.6127 MB / 1.371 GB, free: 5.543 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3974, allocations: 7.938 kB / 1.371 GB, free: 5.535 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.219e-05/0.3974, allocations: 4 kB / 1.371 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.3974, allocations: 0 / 1.371 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.3974, allocations: 0 / 1.371 GB, free: 5.531 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3974, allocations: 4 kB / 1.371 GB, free: 5.527 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3974, allocations: 3.938 kB / 1.371 GB, free: 5.523 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001686/0.3976, allocations: 132.5 kB / 1.372 GB, free: 5.367 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.3977, allocations: 47.75 kB / 1.372 GB, free: 5.32 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.253e-05/0.3977, allocations: 8.125 kB / 1.372 GB, free: 5.312 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.546e-05/0.3978, allocations: 4 kB / 1.372 GB, free: 5.309 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.979e-05/0.3978, allocations: 7.922 kB / 1.372 GB, free: 5.301 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.3978, allocations: 4 kB / 1.372 GB, free: 5.297 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004706/0.3983, allocations: 391 kB / 1.372 GB, free: 4.914 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3983, allocations: 3.938 kB / 1.372 GB, free: 4.91 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002845/0.3986, allocations: 43.89 kB / 1.372 GB, free: 4.867 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.0005325/0.3991, allocations: 0.6577 MB / 1.373 GB, free: 4.168 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002204/0.3993, allocations: 107.8 kB / 1.373 GB, free: 4.062 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.3993, allocations: 0 / 1.373 GB, free: 4.062 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.689e-05/0.3994, allocations: 12 kB / 1.373 GB, free: 4.051 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.3996, allocations: 33.64 kB / 1.373 GB, free: 4.02 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003564/0.4032, allocations: 2.904 MB / 1.376 GB, free: 1.012 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.4034, allocations: 187.6 kB / 1.376 GB, free: 0.8047 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001342/0.4036, allocations: 62.92 kB / 1.376 GB, free: 0.7461 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001539/0.4037, allocations: 91.41 kB / 1.376 GB, free: 0.6602 MB / 1.061 GB Notification: Performance of SimCode: time 6.41e-07/0.4037, allocations: 0 / 1.376 GB, free: 0.6602 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03666/0.4404, allocations: 6.335 MB / 1.382 GB, free: 10.48 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.74, allocations: 12.75 kB / 1.382 GB, free: 10.47 MB / 1.076 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.66837463900447]