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.001636/0.001636, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002314/0.002314, allocations: 216.8 kB / 23.04 MB, free: 5.078 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.54/1.54, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.828/2.828, allocations: 476.7 MB / 0.7714 GB, free: 4.297 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_11_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.002057/0.002057, allocations: 72.12 kB / 1.118 GB, free: 9.004 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3229, allocations: 169.9 MB / 1.284 GB, free: 3.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.0027/0.3256, allocations: 0.8696 MB / 1.285 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003374/0.326, allocations: 97.06 kB / 1.285 GB, free: 2.859 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.3261, allocations: 0 / 1.285 GB, free: 2.859 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.3262, allocations: 23.78 kB / 1.285 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.3264, allocations: 19.8 kB / 1.285 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 9.298e-05/0.3265, allocations: 39.97 kB / 1.285 GB, free: 2.777 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.3268, allocations: 255.4 kB / 1.285 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000331/0.3271, allocations: 179.1 kB / 1.286 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.3273, allocations: 131.6 kB / 1.286 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.3275, allocations: 151.2 kB / 1.286 GB, free: 2.07 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.276e-05/0.3275, allocations: 32 kB / 1.286 GB, free: 2.039 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.645e-05/0.3276, allocations: 32 kB / 1.286 GB, free: 2.008 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.772e-05/0.3277, allocations: 83.72 kB / 1.286 GB, free: 1.926 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.3279, allocations: 159.1 kB / 1.286 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005071/0.3284, allocations: 454.1 kB / 1.287 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3284, allocations: 0 / 1.287 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3284, allocations: 0 / 1.287 GB, free: 1.324 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.307e-05/0.3284, allocations: 3.938 kB / 1.287 GB, free: 1.32 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.000881/0.3293, allocations: 0.5363 MB / 1.287 GB, free: 0.75 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.3293, allocations: 12.03 kB / 1.287 GB, free: 0.7383 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.267e-05/0.3293, allocations: 8.844 kB / 1.287 GB, free: 0.7305 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.109e-05/0.3294, allocations: 70.72 kB / 1.287 GB, free: 0.6523 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.342e-05/0.3295, allocations: 44.66 kB / 1.287 GB, free: 0.6094 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.33, allocations: 270.5 kB / 1.287 GB, free: 328 kB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.3e-05/0.33, allocations: 37.02 kB / 1.288 GB, free: 292 kB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.3301, allocations: 36.38 kB / 1.288 GB, free: 256 kB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000653/0.3307, allocations: 403.9 kB / 1.288 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.3307, allocations: 0 / 1.288 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.3308, allocations: 12 kB / 1.288 GB, free: 15.83 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.3308, allocations: 8 kB / 1.288 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004834/0.3313, allocations: 307.6 kB / 1.288 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.3328, allocations: 1.02 MB / 1.289 GB, free: 14.45 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/0.333, allocations: 85.22 kB / 1.289 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.617e-05/0.3331, allocations: 45.78 kB / 1.289 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.3331, allocations: 4 kB / 1.289 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.3331, allocations: 34.5 kB / 1.289 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.3331, allocations: 4 kB / 1.289 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0003701/0.3335, allocations: 173.3 kB / 1.29 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6e-05/0.3336, allocations: 77.11 kB / 1.29 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000594/0.3342, allocations: 0.5053 MB / 1.29 GB, free: 13.46 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.3342, allocations: 25.7 kB / 1.29 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.3343, allocations: 207.7 kB / 1.29 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.3344, allocations: 23.81 kB / 1.29 GB, free: 13.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.574e-05/0.3344, allocations: 53.7 kB / 1.29 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001625/0.3346, allocations: 350.8 kB / 1.291 GB, free: 12.79 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.3347, allocations: 63.95 kB / 1.291 GB, free: 12.73 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.3348, allocations: 89.58 kB / 1.291 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.335, allocations: 117.5 kB / 1.291 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.335, allocations: 3.938 kB / 1.291 GB, free: 12.51 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003268/0.3353, allocations: 213.3 kB / 1.291 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.3354, allocations: 4 kB / 1.291 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3354, allocations: 4 kB / 1.291 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.3354, allocations: 7.938 kB / 1.291 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.3355, allocations: 31.92 kB / 1.291 GB, free: 12.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3355, allocations: 0 / 1.291 GB, free: 12.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.839e-05/0.3356, allocations: 31.73 kB / 1.291 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.3357, allocations: 8 kB / 1.291 GB, free: 12.21 MB / 0.9981 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.0002216/0.3359, allocations: 204.1 kB / 1.292 GB, free: 12 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.336, allocations: 39.75 kB / 1.292 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.3362, allocations: 118 kB / 1.292 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3362, allocations: 4 kB / 1.292 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3362, allocations: 0 / 1.292 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.3362, allocations: 0 / 1.292 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006132/0.3368, allocations: 0.6283 MB / 1.292 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3368, allocations: 0 / 1.292 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.975e-05/0.3368, allocations: 11.92 kB / 1.292 GB, free: 11.13 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.718e-06/0.3368, allocations: 4 kB / 1.292 GB, free: 11.13 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.3368, allocations: 0 / 1.292 GB, free: 11.13 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3368, allocations: 0 / 1.292 GB, free: 11.13 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3368, allocations: 4.188 kB / 1.292 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001563/0.337, allocations: 135.5 kB / 1.292 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.288e-05/0.3371, allocations: 47.69 kB / 1.292 GB, free: 10.92 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.904e-05/0.3371, allocations: 4 kB / 1.292 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.389e-05/0.3372, allocations: 4 kB / 1.292 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.375e-05/0.3372, allocations: 3.938 kB / 1.292 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.3372, allocations: 8 kB / 1.292 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004321/0.3376, allocations: 395 kB / 1.293 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7e-08/0.3376, allocations: 0 / 1.293 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002493/0.3379, allocations: 39.94 kB / 1.293 GB, free: 10.48 MB / 0.9981 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.0004976/0.3384, allocations: 0.6693 MB / 1.294 GB, free: 9.766 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002228/0.3386, allocations: 107.9 kB / 1.294 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3386, allocations: 0 / 1.294 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.983e-05/0.3386, allocations: 15.94 kB / 1.294 GB, free: 9.645 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.3389, allocations: 32 kB / 1.294 GB, free: 9.613 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.3423, allocations: 2.906 MB / 1.297 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.3427, allocations: 0.7912 MB / 1.297 GB, free: 5.785 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000117/0.3428, allocations: 54.94 kB / 1.297 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001475/0.343, allocations: 99.41 kB / 1.297 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of SimCode: time 6.52e-07/0.343, allocations: 0 / 1.297 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.3713, allocations: 5.899 MB / 1.303 GB, free: 15.91 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.12, allocations: 11.89 kB / 1.303 GB, free: 15.9 MB / 1.014 GB " [Timeout remaining time 288] (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.86841525195632]