Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001451/0.001451, allocations: 118.8 kB / 17.16 MB, free: 5.914 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.001624/0.001624, allocations: 206.2 kB / 20.13 MB, free: 2.969 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 / 253.5 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.11/3.11, allocations: 0.49 GB / 0.7923 GB, free: 1.34 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_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.002059/0.002059, allocations: 67.91 kB / 1.15 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9439/0.9459, allocations: 176.1 MB / 1.321 GB, free: 24.75 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002362/0.9483, allocations: 0.863 MB / 1.322 GB, free: 24.2 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003446/0.9486, allocations: 96.48 kB / 1.322 GB, free: 24.12 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000101/0.9487, allocations: 5.062 kB / 1.322 GB, free: 24.12 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.9489, allocations: 22.45 kB / 1.322 GB, free: 24.11 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.949, allocations: 17.61 kB / 1.322 GB, free: 24.09 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 7.064e-05/0.9491, allocations: 41.69 kB / 1.322 GB, free: 24.07 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002146/0.9493, allocations: 252.2 kB / 1.323 GB, free: 23.95 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002786/0.9496, allocations: 237.7 kB / 1.323 GB, free: 23.86 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.758e-05/0.9497, allocations: 134.9 kB / 1.323 GB, free: 23.79 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.9498, allocations: 140.4 kB / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.715e-05/0.9498, allocations: 32.56 kB / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 3.615e-05/0.9499, allocations: 33.03 kB / 1.323 GB, free: 23.71 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 6.891e-05/0.9499, allocations: 93.41 kB / 1.323 GB, free: 23.65 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.255e-05/0.95, allocations: 152.1 kB / 1.324 GB, free: 23.54 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002985/0.9503, allocations: 463.2 kB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.9503, allocations: 0 / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.292e-06/0.9503, allocations: 0 / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.9503, allocations: 4 kB / 1.324 GB, free: 23.36 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.0005499/0.9509, allocations: 0.5984 MB / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.9509, allocations: 16.23 kB / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.632e-05/0.951, allocations: 9.969 kB / 1.325 GB, free: 22.83 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.051e-05/0.951, allocations: 72.38 kB / 1.325 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.394e-05/0.9511, allocations: 42.56 kB / 1.325 GB, free: 22.74 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.9514, allocations: 335.5 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.9514, allocations: 39.69 kB / 1.325 GB, free: 22.45 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.9515, allocations: 27.84 kB / 1.325 GB, free: 22.45 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004924/0.952, allocations: 404.7 kB / 1.325 GB, free: 22.28 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.952, allocations: 0 / 1.325 GB, free: 22.28 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.952, allocations: 14.56 kB / 1.325 GB, free: 22.27 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.952, allocations: 8.094 kB / 1.325 GB, free: 22.27 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003713/0.9524, allocations: 306.4 kB / 1.326 GB, free: 22.17 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.9536, allocations: 1.054 MB / 1.327 GB, free: 21.52 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001337/0.9537, allocations: 83.69 kB / 1.327 GB, free: 21.45 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.473e-05/0.9538, allocations: 50.88 kB / 1.327 GB, free: 21.42 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.9538, allocations: 1 kB / 1.327 GB, free: 21.42 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.733e-05/0.9538, allocations: 39.78 kB / 1.327 GB, free: 21.38 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.9538, allocations: 0 / 1.327 GB, free: 21.38 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0003851/0.9542, allocations: 167.5 kB / 1.327 GB, free: 21.29 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.9542, allocations: 86.41 kB / 1.327 GB, free: 21.19 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006382/0.9549, allocations: 0.5087 MB / 1.328 GB, free: 20.96 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.9549, allocations: 26.61 kB / 1.328 GB, free: 20.93 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.955, allocations: 202.8 kB / 1.328 GB, free: 20.76 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.955, allocations: 19 kB / 1.328 GB, free: 20.74 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.102e-05/0.9551, allocations: 58.28 kB / 1.328 GB, free: 20.71 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.315e-05/0.9552, allocations: 342.8 kB / 1.328 GB, free: 20.38 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.9553, allocations: 70.47 kB / 1.328 GB, free: 20.36 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.9554, allocations: 84.55 kB / 1.328 GB, free: 20.32 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001656/0.9556, allocations: 119.3 kB / 1.329 GB, free: 20.26 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.9556, allocations: 0 / 1.329 GB, free: 20.26 MB / 1.061 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003179/0.9559, allocations: 213.8 kB / 1.329 GB, free: 20.15 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.9559, allocations: 9.469 kB / 1.329 GB, free: 20.15 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.9559, allocations: 0.5312 kB / 1.329 GB, free: 20.15 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.956, allocations: 5.438 kB / 1.329 GB, free: 20.14 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001538/0.9561, allocations: 26.33 kB / 1.329 GB, free: 20.14 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.9561, allocations: 0.8438 kB / 1.329 GB, free: 20.14 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.075e-05/0.9562, allocations: 37.89 kB / 1.329 GB, free: 20.12 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.9562, allocations: 5.406 kB / 1.329 GB, free: 20.12 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.0001837/0.9564, allocations: 207.2 kB / 1.329 GB, free: 19.97 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.362e-05/0.9565, allocations: 33.61 kB / 1.329 GB, free: 19.95 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002118/0.9567, allocations: 127 kB / 1.329 GB, free: 19.86 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.9567, allocations: 1.75 kB / 1.329 GB, free: 19.86 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.9567, allocations: 0 / 1.329 GB, free: 19.86 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.9567, allocations: 0.875 kB / 1.329 GB, free: 19.86 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005625/0.9573, allocations: 0.6605 MB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.9573, allocations: 1.719 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.324e-05/0.9573, allocations: 4.594 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.9573, allocations: 5.281 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.9573, allocations: 2.125 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.9573, allocations: 1.688 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.9573, allocations: 1.062 kB / 1.33 GB, free: 19.29 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001243/0.9574, allocations: 137.7 kB / 1.33 GB, free: 19.16 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 7.286e-05/0.9575, allocations: 124.7 kB / 1.33 GB, free: 19.04 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.9575, allocations: 1.734 kB / 1.33 GB, free: 19.04 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.451e-05/0.9576, allocations: 7.344 kB / 1.33 GB, free: 19.03 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.73e-05/0.9576, allocations: 4.141 kB / 1.33 GB, free: 19.03 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.9576, allocations: 7.156 kB / 1.33 GB, free: 19.03 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0004459/0.9581, allocations: 390.3 kB / 1.331 GB, free: 18.86 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.9581, allocations: 0 / 1.331 GB, free: 18.86 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002718/0.9583, allocations: 37.38 kB / 1.331 GB, free: 18.86 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.0003551/0.9587, allocations: 0.674 MB / 1.331 GB, free: 18.2 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002239/0.9589, allocations: 103.7 kB / 1.331 GB, free: 18.16 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.9589, allocations: 0.9375 kB / 1.331 GB, free: 18.16 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.677e-05/0.9589, allocations: 17.45 kB / 1.331 GB, free: 18.16 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.9592, allocations: 27.23 kB / 1.331 GB, free: 18.14 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/0.9623, allocations: 2.915 MB / 1.334 GB, free: 16.38 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002747/0.9625, allocations: 0.7904 MB / 1.335 GB, free: 15.67 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001636/0.9627, allocations: 61.53 kB / 1.335 GB, free: 15.67 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.9628, allocations: 94.36 kB / 1.335 GB, free: 15.6 MB / 1.061 GB Notification: Performance of SimCode: time 3.21e-07/0.9628, allocations: 0 / 1.335 GB, free: 15.6 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02489/0.9877, allocations: 5.737 MB / 1.341 GB, free: 14.91 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.626/9.614, allocations: 7.203 kB / 1.341 GB, free: 14.9 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; mkfifo Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe >> ../files/Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat --tempDir=temp_Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.fmu > Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_Utilities_Validation_FirstTrueIndex.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 16.36923080100678]