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.001454/0.001454, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001628/0.001628, allocations: 217.3 kB / 23.03 MB, free: 4.922 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.387/1.387, allocations: 230.6 MB / 256.8 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.104/3.104, allocations: 0.5003 GB / 0.8062 GB, free: 28.27 MB / 0.6231 GB " [Timeout remaining time 177] 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.00194/0.00194, allocations: 62.31 kB / 1.17 GB, free: 19.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3225, allocations: 179 MB / 1.345 GB, free: 15.94 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002159/0.3247, allocations: 0.8622 MB / 1.346 GB, free: 15.07 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0002803/0.325, allocations: 83.7 kB / 1.346 GB, free: 14.99 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.2e-05/0.325, allocations: 7.938 kB / 1.346 GB, free: 14.98 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.3252, allocations: 19.8 kB / 1.346 GB, free: 14.96 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.3253, allocations: 19.86 kB / 1.346 GB, free: 14.95 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 8.355e-05/0.3254, allocations: 43.97 kB / 1.346 GB, free: 14.9 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.00031/0.3257, allocations: 259.5 kB / 1.347 GB, free: 14.65 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000312/0.326, allocations: 171.1 kB / 1.347 GB, free: 14.48 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.3262, allocations: 135.5 kB / 1.347 GB, free: 14.34 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.3263, allocations: 139.3 kB / 1.347 GB, free: 14.21 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.853e-05/0.3264, allocations: 35.94 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.743e-05/0.3264, allocations: 36 kB / 1.347 GB, free: 14.14 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.479e-05/0.3265, allocations: 87.7 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.3266, allocations: 115.3 kB / 1.347 GB, free: 13.94 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004452/0.3271, allocations: 470 kB / 1.348 GB, free: 13.48 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3271, allocations: 4 kB / 1.348 GB, free: 13.47 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3271, allocations: 0 / 1.348 GB, free: 13.47 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.3271, allocations: 0 / 1.348 GB, free: 13.47 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.0007308/0.3278, allocations: 0.5285 MB / 1.348 GB, free: 12.91 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.3279, allocations: 8.031 kB / 1.348 GB, free: 12.9 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.308e-05/0.3279, allocations: 12.84 kB / 1.348 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.09e-05/0.328, allocations: 74.72 kB / 1.348 GB, free: 12.81 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.259e-05/0.328, allocations: 40.64 kB / 1.348 GB, free: 12.77 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004268/0.3285, allocations: 267.3 kB / 1.349 GB, free: 12.48 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.021e-05/0.3285, allocations: 33.03 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.3286, allocations: 36.38 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006222/0.3292, allocations: 407.7 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3292, allocations: 0 / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.3292, allocations: 19.94 kB / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.3292, allocations: 8 kB / 1.349 GB, free: 11.98 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.3297, allocations: 295.8 kB / 1.349 GB, free: 11.69 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.3311, allocations: 0.9615 MB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.3312, allocations: 89.16 kB / 1.35 GB, free: 10.57 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.521e-05/0.3313, allocations: 45.78 kB / 1.35 GB, free: 10.52 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.3313, allocations: 8 kB / 1.35 GB, free: 10.52 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.3313, allocations: 30.56 kB / 1.35 GB, free: 10.48 MB / 1.045 GB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.3313, allocations: 0 / 1.35 GB, free: 10.48 MB / 1.045 GB Notification: Performance of matching and sorting (n=6): time 0.0003404/0.3317, allocations: 177.3 kB / 1.351 GB, free: 10.3 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.3317, allocations: 85.03 kB / 1.351 GB, free: 10.2 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005559/0.3323, allocations: 0.5014 MB / 1.351 GB, free: 9.688 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.3323, allocations: 25.7 kB / 1.351 GB, free: 9.656 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.3325, allocations: 215.7 kB / 1.351 GB, free: 9.441 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.3325, allocations: 15.88 kB / 1.351 GB, free: 9.426 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.192e-05/0.3326, allocations: 53.66 kB / 1.351 GB, free: 9.367 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3327, allocations: 350.8 kB / 1.352 GB, free: 9.016 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.3328, allocations: 71.89 kB / 1.352 GB, free: 8.945 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.333, allocations: 87.61 kB / 1.352 GB, free: 8.855 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.3331, allocations: 113.7 kB / 1.352 GB, free: 8.738 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3331, allocations: 0 / 1.352 GB, free: 8.738 MB / 1.045 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003/0.3334, allocations: 217.3 kB / 1.352 GB, free: 8.52 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.3334, allocations: 4 kB / 1.352 GB, free: 8.516 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.3334, allocations: 0 / 1.352 GB, free: 8.516 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.3335, allocations: 3.938 kB / 1.352 GB, free: 8.512 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.3336, allocations: 35.92 kB / 1.352 GB, free: 8.477 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.3336, allocations: 0 / 1.352 GB, free: 8.477 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.716e-05/0.3337, allocations: 39.73 kB / 1.352 GB, free: 8.438 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.3337, allocations: 4 kB / 1.352 GB, free: 8.434 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.0002011/0.3339, allocations: 199.8 kB / 1.353 GB, free: 8.227 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.587e-05/0.334, allocations: 35.77 kB / 1.353 GB, free: 8.191 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002139/0.3342, allocations: 118 kB / 1.353 GB, free: 8.062 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3342, allocations: 3.938 kB / 1.353 GB, free: 8.059 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3342, allocations: 4 kB / 1.353 GB, free: 8.055 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.3342, allocations: 4.438 kB / 1.353 GB, free: 8.051 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005507/0.3348, allocations: 0.6087 MB / 1.353 GB, free: 7.379 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3348, allocations: 0 / 1.353 GB, free: 7.379 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-05/0.3348, allocations: 4 kB / 1.353 GB, free: 7.375 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3348, allocations: 4 kB / 1.353 GB, free: 7.371 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.643e-06/0.3348, allocations: 0 / 1.353 GB, free: 7.371 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.3348, allocations: 3.984 kB / 1.353 GB, free: 7.367 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3348, allocations: 7.984 kB / 1.353 GB, free: 7.359 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001668/0.335, allocations: 139.5 kB / 1.353 GB, free: 7.195 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 7.07e-05/0.335, allocations: 43.75 kB / 1.353 GB, free: 7.152 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.3351, allocations: 4 kB / 1.353 GB, free: 7.148 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.1e-05/0.3351, allocations: 0 / 1.353 GB, free: 7.148 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.591e-05/0.3352, allocations: 8 kB / 1.354 GB, free: 7.141 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.3352, allocations: 4 kB / 1.354 GB, free: 7.137 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0004223/0.3356, allocations: 387 kB / 1.354 GB, free: 6.762 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3356, allocations: 0 / 1.354 GB, free: 6.762 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002361/0.3358, allocations: 43.89 kB / 1.354 GB, free: 6.719 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.000468/0.3363, allocations: 0.6772 MB / 1.355 GB, free: 6 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002092/0.3365, allocations: 96.17 kB / 1.355 GB, free: 5.906 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3365, allocations: 0 / 1.355 GB, free: 5.906 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 2.865e-05/0.3365, allocations: 20.11 kB / 1.355 GB, free: 5.887 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.3368, allocations: 29.59 kB / 1.355 GB, free: 5.855 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.3401, allocations: 2.898 MB / 1.358 GB, free: 2.852 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001825/0.3402, allocations: 187.6 kB / 1.358 GB, free: 2.641 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001178/0.3404, allocations: 58.94 kB / 1.358 GB, free: 2.582 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.3405, allocations: 91.41 kB / 1.358 GB, free: 2.496 MB / 1.045 GB Notification: Performance of SimCode: time 5.91e-07/0.3405, allocations: 4 kB / 1.358 GB, free: 2.492 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02776/0.3683, allocations: 5.972 MB / 1.364 GB, free: 12.71 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.26, allocations: 4.5 kB / 1.364 GB, free: 12.71 MB / 1.061 GB " [Timeout remaining time 289] (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: 17.678892401978374]