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.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.856/1.856, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000465/0.0004652, allocations: 12 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.3386, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12): time 0.1278/0.4664, allocations: 76.99 MB / 408.3 MB, free: 1.355 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06646/0.5329, allocations: 32.44 MB / 440.7 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00323/0.5362, allocations: 95.25 kB / 440.8 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005008/0.5413, allocations: 1.151 MB / 442 MB, free: 15.6 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02599/0.5673, allocations: 6.116 MB / 448.1 MB, free: 9.469 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02868/0.596, allocations: 7.168 MB / 455.2 MB, free: 2.301 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01019/0.6063, allocations: 4.597 MB / 459.8 MB, free: 13.7 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00306/0.6094, allocations: 1.292 MB / 461.1 MB, free: 12.38 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006662/0.6161, allocations: 2.091 MB / 463.2 MB, free: 10.28 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3672/0.9833, allocations: 18.15 MB / 481.4 MB, free: 22.66 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009716/0.9844, allocations: 114.6 kB / 481.5 MB, free: 22.66 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02755/1.012, allocations: 9.949 MB / 491.4 MB, free: 22.64 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001931/1.014, allocations: 0.767 MB / 492.2 MB, free: 22.64 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001473/1.015, allocations: 0.5236 MB / 492.7 MB, free: 22.61 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01655/1.032, allocations: 6.529 MB / 499.3 MB, free: 22.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/1.032, allocations: 2.812 kB / 499.3 MB, free: 22.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.146e-06/1.032, allocations: 3.281 kB / 499.3 MB, free: 22.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001384/1.032, allocations: 0 / 499.3 MB, free: 22.2 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: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01601/1.048, allocations: 3.757 MB / 0.4912 GB, free: 20.44 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/1.048, allocations: 7.094 kB / 0.4912 GB, free: 20.44 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001149/1.05, allocations: 296.4 kB / 0.4915 GB, free: 20.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007582/1.057, allocations: 0.7986 MB / 0.4923 GB, free: 20.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005032/1.062, allocations: 1.611 MB / 0.4939 GB, free: 19.83 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003237/1.063, allocations: 182.4 kB / 0.494 GB, free: 19.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000932/1.064, allocations: 190.2 kB / 0.4942 GB, free: 19.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0124/1.076, allocations: 3.592 MB / 0.4977 GB, free: 19.39 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.213e-05/1.076, allocations: 3.562 kB / 0.4977 GB, free: 19.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004387/1.077, allocations: 84.05 kB / 0.4978 GB, free: 19.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003763/1.077, allocations: 202 kB / 0.498 GB, free: 19.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01305/1.09, allocations: 3.49 MB / 0.5014 GB, free: 17.59 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.02878/1.119, allocations: 14.63 MB / 0.5157 GB, free: 4.172 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007856/1.127, allocations: 2.189 MB / 0.5178 GB, free: 2.617 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06793/1.195, allocations: 19.07 MB / 0.5365 GB, free: 13.67 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009435/1.204, allocations: 1.646 MB / 0.5381 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002108/1.206, allocations: 171.8 kB / 0.5382 GB, free: 12.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=158): time 9.629e-06/1.206, allocations: 0 / 0.5382 GB, free: 12.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=170): time 0.06077/1.267, allocations: 9.136 MB / 0.5472 GB, free: 5.102 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002759/1.268, allocations: 337.9 kB / 0.5475 GB, free: 4.703 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004407/1.272, allocations: 1.648 MB / 0.5491 GB, free: 3.473 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005393/1.273, allocations: 65.02 kB / 0.5491 GB, free: 3.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/1.274, allocations: 0.9487 MB / 0.5501 GB, free: 2.809 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001115/1.275, allocations: 0.5708 MB / 0.5506 GB, free: 2.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/1.275, allocations: 41.08 kB / 0.5507 GB, free: 2.312 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002677/1.275, allocations: 400.5 kB / 0.5511 GB, free: 1.945 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004199/1.28, allocations: 1.122 MB / 0.5521 GB, free: 1.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004742/1.284, allocations: 1.651 MB / 0.5538 GB, free: 15.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004554/1.289, allocations: 1.395 MB / 0.5551 GB, free: 14.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.277e-05/1.289, allocations: 4 kB / 0.5551 GB, free: 14.81 MB / 442.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01174/1.301, allocations: 3.389 MB / 0.5584 GB, free: 12.47 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005447/1.301, allocations: 0.558 MB / 0.559 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-05/1.301, allocations: 18.8 kB / 0.559 GB, free: 11.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009044/1.311, allocations: 0.9832 MB / 0.56 GB, free: 10.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004053/1.315, allocations: 483.8 kB / 0.5604 GB, free: 10.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00474/1.319, allocations: 3.149 MB / 0.5635 GB, free: 7.598 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003814/1.323, allocations: 229.8 kB / 0.5637 GB, free: 7.406 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007184/1.324, allocations: 112.9 kB / 0.5638 GB, free: 7.316 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/1.324, allocations: 7.984 kB / 0.5638 GB, free: 7.309 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01193/1.336, allocations: 3.205 MB / 0.567 GB, free: 5.109 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.52e-05/1.336, allocations: 19.98 kB / 0.567 GB, free: 5.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002177/1.338, allocations: 365.5 kB / 0.5673 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004188/1.343, allocations: 0.4985 MB / 0.5678 GB, free: 4.344 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006342/1.349, allocations: 4.135 MB / 0.5719 GB, free: 0.5586 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003055/1.352, allocations: 232.9 kB / 0.5721 GB, free: 372 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005646/1.353, allocations: 108.1 kB / 0.5722 GB, free: 284 kB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 27 (pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_b.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 222 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002452/1.355, allocations: 0.7722 MB / 0.5729 GB, free: 15.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007119/1.356, allocations: 213.5 kB / 0.5731 GB, free: 15.51 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01972/1.376, allocations: 7.803 MB / 0.5808 GB, free: 10.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001322/1.376, allocations: 82.2 kB / 0.5808 GB, free: 10.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/1.376, allocations: 0 / 0.5808 GB, free: 10.18 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01578/1.392, allocations: 6.857 MB / 0.5875 GB, free: 5.488 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02943/1.421, allocations: 10.79 MB / 0.5981 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.142e-05/1.421, allocations: 4 kB / 0.5981 GB, free: 14.44 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002943/1.424, allocations: 343.3 kB / 0.5984 GB, free: 14.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008642/1.433, allocations: 2.129 MB / 0.6005 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005025/1.433, allocations: 63.34 kB / 0.6005 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005577/1.439, allocations: 4.091 MB / 0.6045 GB, free: 8.879 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/1.439, allocations: 0 / 0.6045 GB, free: 8.879 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0195/1.459, allocations: 7.873 MB / 0.6122 GB, free: 3.688 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002342/1.461, allocations: 0.7253 MB / 0.6129 GB, free: 3.066 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008234/1.462, allocations: 52.55 kB / 0.613 GB, free: 3.043 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003005/1.465, allocations: 187.8 kB / 0.6132 GB, free: 2.887 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005701/1.466, allocations: 133.1 kB / 0.6133 GB, free: 2.773 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002384/1.466, allocations: 72.36 kB / 0.6134 GB, free: 2.715 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002926/1.469, allocations: 1.207 MB / 0.6145 GB, free: 1.762 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.944e-06/1.469, allocations: 0 / 0.6145 GB, free: 1.762 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01138/1.48, allocations: 2.599 MB / 0.6171 GB, free: 15.16 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.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,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$cse42.phase,$cse42.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 (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.03113/1.511, allocations: 9.725 MB / 0.6266 GB, free: 5.496 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02051/1.532, allocations: 5.464 MB / 0.6319 GB, free: 28 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/1.532, allocations: 0 / 0.6319 GB, free: 28 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00902/1.541, allocations: 2.364 MB / 0.6342 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01292/1.554, allocations: 0.8933 MB / 0.6351 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02992/1.584, allocations: 11.25 MB / 0.6461 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2748/1.859, allocations: 2.241 MB / 0.6483 GB, free: 217.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002773/1.862, allocations: 1.309 MB / 0.6495 GB, free: 217.5 MB / 0.4948 GB Notification: Performance of SimCode: time 1.212e-06/1.862, allocations: 0 / 0.6495 GB, free: 217.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.03/6.892, allocations: 125.6 MB / 0.7722 GB, free: 113.2 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat