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.001737/0.001737, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002503/0.002503, allocations: 221.3 kB / 23.03 MB, free: 4.941 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.531/1.531, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.199/3.199, allocations: 0.49 GB / 0.7959 GB, free: 35.42 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.002108/0.002108, allocations: 69.27 kB / 1.155 GB, free: 25.49 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3607, allocations: 176.1 MB / 1.327 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.FirstTrueIndex): time 0.002844/0.3635, allocations: 0.853 MB / 1.327 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003449/0.3639, allocations: 87.7 kB / 1.328 GB, free: 0.5742 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.364, allocations: 4 kB / 1.328 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.3641, allocations: 27.73 kB / 1.328 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001375/0.3643, allocations: 11.86 kB / 1.328 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000104/0.3644, allocations: 47.89 kB / 1.328 GB, free: 496 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003178/0.3647, allocations: 247.5 kB / 1.328 GB, free: 248 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003898/0.3651, allocations: 183 kB / 1.328 GB, free: 60 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002411/0.3653, allocations: 131.5 kB / 1.328 GB, free: 15.93 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.3656, allocations: 143.3 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 8.065e-05/0.3657, allocations: 32 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.22e-05/0.3657, allocations: 32 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.3658, allocations: 95.64 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001666/0.366, allocations: 123.3 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005637/0.3666, allocations: 466 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3666, allocations: 0 / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.853e-06/0.3666, allocations: 0 / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.527e-05/0.3666, allocations: 0 / 1.329 GB, free: 15.05 MB / 1.029 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.0009193/0.3675, allocations: 0.5246 MB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3676, allocations: 12.03 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.804e-05/0.3676, allocations: 8.844 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.009e-05/0.3677, allocations: 70.72 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.643e-05/0.3677, allocations: 44.66 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004562/0.3682, allocations: 275.2 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.817e-05/0.3683, allocations: 33.03 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.3683, allocations: 36.38 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000675/0.369, allocations: 404 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.369, allocations: 0 / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.369, allocations: 12 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.369, allocations: 8 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005213/0.3696, allocations: 311.3 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.3711, allocations: 0.9657 MB / 1.332 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.3713, allocations: 93.16 kB / 1.332 GB, free: 12.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.364e-05/0.3713, allocations: 45.78 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.3714, allocations: 0 / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.3714, allocations: 34.56 kB / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of pre-optimization done (n=6): time 1.031e-06/0.3714, allocations: 0 / 1.332 GB, free: 12.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=6): time 0.000365/0.3718, allocations: 173.3 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/0.3718, allocations: 81.11 kB / 1.332 GB, free: 11.77 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006369/0.3725, allocations: 0.5053 MB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.3725, allocations: 25.7 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.3727, allocations: 207.6 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.3727, allocations: 27.83 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.3728, allocations: 53.7 kB / 1.333 GB, free: 10.93 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001661/0.373, allocations: 342.8 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3731, allocations: 71.86 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.3732, allocations: 93.59 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.3734, allocations: 109.7 kB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3734, allocations: 0 / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003389/0.3737, allocations: 213.3 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3738, allocations: 4 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.3738, allocations: 4.188 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.3738, allocations: 7.938 kB / 1.334 GB, free: 10.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.3739, allocations: 35.86 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.3739, allocations: 0 / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.594e-05/0.374, allocations: 35.73 kB / 1.334 GB, free: 10.01 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.796e-05/0.3741, allocations: 4 kB / 1.334 GB, free: 10 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.0002056/0.3743, allocations: 199.8 kB / 1.334 GB, free: 9.801 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.589e-05/0.3743, allocations: 31.77 kB / 1.334 GB, free: 9.77 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002289/0.3746, allocations: 126 kB / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3746, allocations: 0 / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3746, allocations: 0 / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3746, allocations: 0 / 1.334 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006293/0.3752, allocations: 0.6087 MB / 1.335 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.3752, allocations: 0 / 1.335 GB, free: 8.965 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.965e-05/0.3752, allocations: 7.984 kB / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3752, allocations: 0 / 1.335 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.3753, allocations: 7.938 kB / 1.335 GB, free: 8.949 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.3753, allocations: 4.188 kB / 1.335 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.3753, allocations: 0 / 1.335 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001692/0.3754, allocations: 135.3 kB / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.531e-05/0.3755, allocations: 52.17 kB / 1.335 GB, free: 8.734 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.3755, allocations: 4 kB / 1.335 GB, free: 8.73 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.885e-05/0.3756, allocations: 4 kB / 1.335 GB, free: 8.727 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.162e-05/0.3756, allocations: 4 kB / 1.335 GB, free: 8.723 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-06/0.3756, allocations: 0 / 1.335 GB, free: 8.723 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005035/0.3761, allocations: 391 kB / 1.335 GB, free: 8.34 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3761, allocations: 0 / 1.335 GB, free: 8.34 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002643/0.3764, allocations: 39.94 kB / 1.335 GB, free: 8.301 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.0005444/0.3769, allocations: 0.6824 MB / 1.336 GB, free: 7.578 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002398/0.3772, allocations: 103.9 kB / 1.336 GB, free: 7.477 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3772, allocations: 0 / 1.336 GB, free: 7.477 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 3.008e-05/0.3772, allocations: 15.94 kB / 1.336 GB, free: 7.461 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003102/0.3775, allocations: 33.97 kB / 1.336 GB, free: 7.43 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.3813, allocations: 2.912 MB / 1.339 GB, free: 4.414 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000192/0.3815, allocations: 183.4 kB / 1.339 GB, free: 4.211 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001213/0.3816, allocations: 58.94 kB / 1.339 GB, free: 4.156 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.3818, allocations: 95.41 kB / 1.339 GB, free: 4.062 MB / 1.029 GB Notification: Performance of SimCode: time 9.01e-07/0.3818, allocations: 0 / 1.339 GB, free: 4.062 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03619/0.418, allocations: 5.958 MB / 1.345 GB, free: 14.3 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.89, allocations: 12.58 kB / 1.345 GB, free: 14.29 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.798346892930567]