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.001901/0.001901, allocations: 107.2 kB / 16.45 MB, free: 6.449 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.002076/0.002076, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.504/1.504, allocations: 230.6 MB / 252.8 MB, free: 9.141 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.321/3.321, allocations: 0.49 GB / 0.7916 GB, free: 33.6 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex,fileNamePrefix="Buildings_12_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.002071/0.002071, allocations: 74.89 kB / 1.149 GB, free: 26.44 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3508, allocations: 176.1 MB / 1.321 GB, free: 3.383 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002168/0.353, allocations: 0.8623 MB / 1.322 GB, free: 2.52 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002671/0.3533, allocations: 95.69 kB / 1.322 GB, free: 2.426 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.998e-05/0.3534, allocations: 7.938 kB / 1.322 GB, free: 2.418 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.3535, allocations: 23.8 kB / 1.322 GB, free: 2.395 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.3536, allocations: 11.86 kB / 1.322 GB, free: 2.383 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 7.987e-05/0.3537, allocations: 39.97 kB / 1.322 GB, free: 2.344 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000303/0.354, allocations: 255.4 kB / 1.322 GB, free: 2.094 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003603/0.3544, allocations: 230.6 kB / 1.322 GB, free: 1.859 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.3545, allocations: 139.5 kB / 1.322 GB, free: 1.723 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001652/0.3547, allocations: 143.3 kB / 1.323 GB, free: 1.582 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 5.607e-05/0.3547, allocations: 32 kB / 1.323 GB, free: 1.551 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.546e-05/0.3548, allocations: 32 kB / 1.323 GB, free: 1.52 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 8.992e-05/0.3548, allocations: 91.69 kB / 1.323 GB, free: 1.43 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.355, allocations: 159.1 kB / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.3554, allocations: 462 kB / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.3554, allocations: 0 / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.132e-06/0.3554, allocations: 0 / 1.323 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.013e-05/0.3555, allocations: 0 / 1.323 GB, free: 0.8203 MB / 1.014 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.0007255/0.3562, allocations: 0.6039 MB / 1.324 GB, free: 164 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.3562, allocations: 11.98 kB / 1.324 GB, free: 152 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.595e-05/0.3563, allocations: 78.66 kB / 1.324 GB, free: 64 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.514e-05/0.3564, allocations: 40.66 kB / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/0.3568, allocations: 324.4 kB / 1.324 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.692e-05/0.3568, allocations: 41.02 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.199e-05/0.3569, allocations: 28.38 kB / 1.324 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006286/0.3575, allocations: 400.2 kB / 1.325 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3575, allocations: 7.938 kB / 1.325 GB, free: 15.19 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.3576, allocations: 15.94 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.3576, allocations: 8 kB / 1.325 GB, free: 15.17 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004864/0.3581, allocations: 311.4 kB / 1.325 GB, free: 14.86 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.3595, allocations: 1.054 MB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.3597, allocations: 97.14 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.679e-05/0.3597, allocations: 41.8 kB / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.3597, allocations: 0 / 1.326 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.3598, allocations: 34.55 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 4.328e-06/0.3598, allocations: 4 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.0003623/0.3601, allocations: 169.3 kB / 1.326 GB, free: 13.38 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.941e-05/0.3602, allocations: 85.05 kB / 1.327 GB, free: 13.27 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005973/0.3608, allocations: 0.5053 MB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.3608, allocations: 29.7 kB / 1.327 GB, free: 12.73 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.361, allocations: 203.7 kB / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.52e-05/0.361, allocations: 11.91 kB / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.515e-05/0.3611, allocations: 53.7 kB / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3612, allocations: 346.8 kB / 1.328 GB, free: 12.11 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.3614, allocations: 75.89 kB / 1.328 GB, free: 12.03 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.3615, allocations: 91.59 kB / 1.328 GB, free: 11.94 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.3617, allocations: 117.6 kB / 1.328 GB, free: 11.82 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3617, allocations: 0 / 1.328 GB, free: 11.82 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003308/0.362, allocations: 213.3 kB / 1.328 GB, free: 11.6 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.362, allocations: 4 kB / 1.328 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.362, allocations: 4 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.362, allocations: 7.938 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.3622, allocations: 31.92 kB / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.3622, allocations: 0 / 1.328 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.478e-05/0.3623, allocations: 39.67 kB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.3623, allocations: 4 kB / 1.328 GB, free: 11.51 MB / 1.029 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.0002055/0.3625, allocations: 200 kB / 1.328 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.01e-05/0.3626, allocations: 31.77 kB / 1.328 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002259/0.3628, allocations: 122 kB / 1.329 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3628, allocations: 3.938 kB / 1.329 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3628, allocations: 0 / 1.329 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3628, allocations: 0 / 1.329 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000622/0.3634, allocations: 0.6604 MB / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3634, allocations: 0 / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.201e-05/0.3635, allocations: 4 kB / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3635, allocations: 0 / 1.329 GB, free: 10.41 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.3635, allocations: 4 kB / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.3635, allocations: 0 / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3635, allocations: 0 / 1.329 GB, free: 10.4 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001617/0.3636, allocations: 139.8 kB / 1.329 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.3637, allocations: 124.8 kB / 1.329 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.3638, allocations: 0 / 1.329 GB, free: 10.1 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.656e-05/0.3638, allocations: 8.188 kB / 1.329 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.28e-05/0.3639, allocations: 15.95 kB / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.3639, allocations: 3.938 kB / 1.329 GB, free: 10.07 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0004553/0.3643, allocations: 391 kB / 1.33 GB, free: 9.688 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3643, allocations: 4 kB / 1.33 GB, free: 9.684 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002487/0.3646, allocations: 32 kB / 1.33 GB, free: 9.652 MB / 1.029 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.0005032/0.3651, allocations: 0.6771 MB / 1.331 GB, free: 8.934 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002225/0.3653, allocations: 99.88 kB / 1.331 GB, free: 8.836 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3653, allocations: 0 / 1.331 GB, free: 8.836 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 2.964e-05/0.3653, allocations: 19.94 kB / 1.331 GB, free: 8.816 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.3656, allocations: 25.55 kB / 1.331 GB, free: 8.793 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.369, allocations: 2.911 MB / 1.334 GB, free: 5.777 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004304/0.3695, allocations: 0.7907 MB / 1.334 GB, free: 4.961 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001102/0.3696, allocations: 62.92 kB / 1.334 GB, free: 4.902 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.3697, allocations: 87.41 kB / 1.334 GB, free: 4.816 MB / 1.029 GB Notification: Performance of SimCode: time 4.41e-07/0.3697, allocations: 4 kB / 1.334 GB, free: 4.812 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.3993, allocations: 5.703 MB / 1.34 GB, free: 15.27 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.364/8.763, allocations: 8.047 kB / 1.34 GB, free: 15.26 MB / 1.045 GB " [Timeout remaining time 291] (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: 15.549854922108352]