Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.841/1.841, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006146/0.0006147, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3524, allocations: 48.71 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13): time 0.1356/0.488, allocations: 82.71 MB / 414 MB, free: 11.61 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0664/0.5545, allocations: 32.52 MB / 446.5 MB, free: 11.03 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003026/0.5576, allocations: 99.25 kB / 446.6 MB, free: 10.93 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004832/0.5624, allocations: 1.171 MB / 447.8 MB, free: 9.754 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02512/0.5876, allocations: 6.139 MB / 453.9 MB, free: 3.598 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02772/0.6153, allocations: 7.173 MB / 461.1 MB, free: 12.42 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009759/0.6251, allocations: 4.351 MB / 465.4 MB, free: 8.062 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002693/0.6278, allocations: 1.215 MB / 466.7 MB, free: 6.82 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005922/0.6338, allocations: 1.982 MB / 468.6 MB, free: 4.832 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3551/0.9889, allocations: 18.04 MB / 486.7 MB, free: 17.62 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000677/0.9896, allocations: 107.3 kB / 486.8 MB, free: 17.61 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02633/1.016, allocations: 9.838 MB / 496.6 MB, free: 17.59 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001579/1.018, allocations: 0.6886 MB / 497.3 MB, free: 17.59 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/1.019, allocations: 489.9 kB / 497.8 MB, free: 17.56 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01533/1.034, allocations: 6.205 MB / 0.4922 GB, free: 17.17 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/1.034, allocations: 0 / 0.4922 GB, free: 17.17 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.926e-06/1.034, allocations: 0 / 0.4922 GB, free: 17.17 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.846e-05/1.034, allocations: 4 kB / 0.4922 GB, free: 17.16 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01204/1.046, allocations: 3.419 MB / 0.4955 GB, free: 15.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/1.046, allocations: 6.938 kB / 0.4955 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006489/1.047, allocations: 274.2 kB / 0.4958 GB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006739/1.054, allocations: 0.7514 MB / 0.4965 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004149/1.058, allocations: 1.487 MB / 0.498 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001921/1.058, allocations: 155.3 kB / 0.4981 GB, free: 14.38 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004234/1.058, allocations: 182.3 kB / 0.4983 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009884/1.068, allocations: 3.198 MB / 0.5014 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.455e-05/1.068, allocations: 6.078 kB / 0.5014 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003005/1.069, allocations: 83.36 kB / 0.5015 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003179/1.069, allocations: 171.7 kB / 0.5017 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01026/1.079, allocations: 2.991 MB / 0.5046 GB, free: 10.49 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02463/1.104, allocations: 13.92 MB / 0.5182 GB, free: 13.56 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008114/1.112, allocations: 2.022 MB / 0.5202 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06607/1.178, allocations: 19.09 MB / 0.5388 GB, free: 7.145 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006141/1.185, allocations: 1.526 MB / 0.5403 GB, free: 5.938 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001467/1.186, allocations: 158.9 kB / 0.5404 GB, free: 5.805 MB / 426.7 MB Notification: Performance of pre-optimization done (n=142): time 4.108e-06/1.186, allocations: 0 / 0.5404 GB, free: 5.805 MB / 426.7 MB Notification: Performance of matching and sorting (n=154): time 0.03525/1.221, allocations: 8.115 MB / 0.5484 GB, free: 15.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/1.221, allocations: 186.8 kB / 0.5485 GB, free: 15.21 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002981/1.224, allocations: 1.475 MB / 0.55 GB, free: 14.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002987/1.225, allocations: 54.08 kB / 0.55 GB, free: 14.06 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008557/1.226, allocations: 0.8774 MB / 0.5509 GB, free: 13.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006855/1.226, allocations: 0.5203 MB / 0.5514 GB, free: 13.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001812/1.227, allocations: 35.25 kB / 0.5514 GB, free: 13.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002057/1.227, allocations: 387.5 kB / 0.5518 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003287/1.23, allocations: 0.9926 MB / 0.5528 GB, free: 11.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003741/1.234, allocations: 1.443 MB / 0.5542 GB, free: 10.74 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00388/1.238, allocations: 1.231 MB / 0.5554 GB, free: 9.941 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/1.238, allocations: 4 kB / 0.5554 GB, free: 9.938 MB / 442.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.01168/1.249, allocations: 3.106 MB / 0.5584 GB, free: 7.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004809/1.25, allocations: 0.5247 MB / 0.5589 GB, free: 7.098 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.844e-05/1.25, allocations: 12 kB / 0.5589 GB, free: 7.086 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005171/1.255, allocations: 0.6159 MB / 0.5595 GB, free: 6.543 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003685/1.259, allocations: 452.8 kB / 0.56 GB, free: 6.141 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/1.262, allocations: 2.808 MB / 0.5627 GB, free: 3.508 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00362/1.266, allocations: 226.9 kB / 0.5629 GB, free: 3.312 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003765/1.266, allocations: 93.97 kB / 0.563 GB, free: 3.238 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/1.266, allocations: 4 kB / 0.563 GB, free: 3.234 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009209/1.276, allocations: 2.759 MB / 0.5657 GB, free: 1.352 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.414e-05/1.276, allocations: 16 kB / 0.5657 GB, free: 1.336 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/1.277, allocations: 214.8 kB / 0.5659 GB, free: 1.164 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0038/1.281, allocations: 475.6 kB / 0.5664 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/1.282, allocations: 1.888 MB / 0.5682 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002945/1.285, allocations: 228.1 kB / 0.5685 GB, free: 14.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002726/1.286, allocations: 96.17 kB / 0.5685 GB, free: 14.65 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.001814/1.288, allocations: 0.7104 MB / 0.5692 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005958/1.288, allocations: 185.7 kB / 0.5694 GB, free: 13.94 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01644/1.305, allocations: 7.41 MB / 0.5767 GB, free: 8.969 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/1.305, allocations: 86.19 kB / 0.5767 GB, free: 8.906 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/1.305, allocations: 0 / 0.5767 GB, free: 8.906 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01352/1.318, allocations: 6.505 MB / 0.5831 GB, free: 4.465 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02111/1.34, allocations: 10.21 MB / 0.5931 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/1.34, allocations: 0 / 0.5931 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002659/1.342, allocations: 336.4 kB / 0.5934 GB, free: 13.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005366/1.348, allocations: 1.352 MB / 0.5947 GB, free: 12.36 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002958/1.348, allocations: 55.34 kB / 0.5948 GB, free: 12.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004081/1.352, allocations: 3.454 MB / 0.5981 GB, free: 9.34 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/1.352, allocations: 3.953 kB / 0.5981 GB, free: 9.336 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01611/1.368, allocations: 7.123 MB / 0.6051 GB, free: 4.676 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/1.37, allocations: 0.6793 MB / 0.6057 GB, free: 4.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005948/1.371, allocations: 48.75 kB / 0.6058 GB, free: 4.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00241/1.373, allocations: 188 kB / 0.606 GB, free: 3.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/1.374, allocations: 124.8 kB / 0.6061 GB, free: 3.801 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002172/1.374, allocations: 74.78 kB / 0.6062 GB, free: 3.746 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002461/1.376, allocations: 1.102 MB / 0.6072 GB, free: 2.906 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.376, allocations: 0 / 0.6072 GB, free: 2.906 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01046/1.387, allocations: 2.481 MB / 0.6097 GB, free: 0.5742 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.02799/1.415, allocations: 9.2 MB / 0.6186 GB, free: 9.848 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01332/1.428, allocations: 4.747 MB / 0.6233 GB, free: 6.527 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/1.428, allocations: 0.625 kB / 0.6233 GB, free: 6.527 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005403/1.434, allocations: 2.241 MB / 0.6255 GB, free: 4.688 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0077/1.441, allocations: 0.8888 MB / 0.6263 GB, free: 3.805 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02525/1.467, allocations: 10.53 MB / 0.6366 GB, free: 9.055 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002428/1.469, allocations: 2.134 MB / 0.6387 GB, free: 6.891 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002819/1.472, allocations: 1.222 MB / 0.6399 GB, free: 5.668 MB / 0.4948 GB Notification: Performance of SimCode: time 1.463e-06/1.472, allocations: 0 / 0.6399 GB, free: 5.668 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.25/6.722, allocations: 118.3 MB / 0.7554 GB, free: 126.1 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat