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.DynamicPipeClosingValve.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.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.953/1.953, allocations: 209.3 MB / 224.8 MB, free: 1.539 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004556/0.0004556, allocations: 8 kB / 282.7 MB, free: 9.672 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1155, allocations: 48.71 MB / 331.4 MB, free: 8.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.872/7.988, allocations: 2.545 GB / 2.868 GB, free: 46.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/7.988, allocations: 81.64 kB / 2.868 GB, free: 46.26 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.511/10.5, allocations: 454.1 MB / 3.312 GB, free: 37.87 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.605e-06/10.5, allocations: 0 / 3.312 GB, free: 37.87 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001177/10.5, allocations: 25.09 kB / 3.312 GB, free: 37.87 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01106/10.51, allocations: 2.2 MB / 3.314 GB, free: 36.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/10.51, allocations: 14.36 kB / 3.314 GB, free: 36.93 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005523/10.51, allocations: 129 kB / 3.314 GB, free: 36.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004025/10.52, allocations: 363.4 kB / 3.314 GB, free: 36.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003685/10.52, allocations: 0.8962 MB / 3.315 GB, free: 36.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/10.52, allocations: 71.69 kB / 3.315 GB, free: 36.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003407/10.52, allocations: 87.08 kB / 3.315 GB, free: 36.56 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005486/10.53, allocations: 1.475 MB / 3.317 GB, free: 36.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.964e-05/10.53, allocations: 10 kB / 3.317 GB, free: 36.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001849/10.53, allocations: 38.05 kB / 3.317 GB, free: 36.28 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001236/10.53, allocations: 57.7 kB / 3.317 GB, free: 36.28 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005807/10.53, allocations: 1.341 MB / 3.318 GB, free: 36.27 MB / 442.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.01441/10.55, allocations: 6.545 MB / 3.325 GB, free: 32.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004595/10.55, allocations: 1.017 MB / 3.326 GB, free: 32.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1006/10.65, allocations: 31.93 MB / 3.357 GB, free: 28.22 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.582e-05/10.65, allocations: 41.19 kB / 3.357 GB, free: 28.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=57): time 3.657e-06/10.65, allocations: 0 / 3.357 GB, free: 28.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=61): time 0.01328/10.66, allocations: 3.356 MB / 3.36 GB, free: 27.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/10.66, allocations: 192.3 kB / 3.36 GB, free: 27.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001188/10.67, allocations: 0.6444 MB / 3.361 GB, free: 27.17 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001401/10.67, allocations: 42.58 kB / 3.361 GB, free: 27.13 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003141/10.67, allocations: 428.5 kB / 3.361 GB, free: 26.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/10.67, allocations: 219.9 kB / 3.362 GB, free: 26.74 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.48e-05/10.67, allocations: 14.66 kB / 3.362 GB, free: 26.74 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/10.67, allocations: 336.4 kB / 3.362 GB, free: 26.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/10.67, allocations: 418.6 kB / 3.362 GB, free: 26.42 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/10.67, allocations: 0.636 MB / 3.363 GB, free: 26.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/10.67, allocations: 484.8 kB / 3.364 GB, free: 26.15 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/10.67, allocations: 3.531 kB / 3.364 GB, free: 26.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004089/10.68, allocations: 1.312 MB / 3.365 GB, free: 26.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008923/10.68, allocations: 2.266 MB / 3.367 GB, free: 23.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/10.68, allocations: 7.938 kB / 3.367 GB, free: 23.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005221/10.68, allocations: 0.6798 MB / 3.368 GB, free: 23.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/10.68, allocations: 153.7 kB / 3.368 GB, free: 23.68 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00261/10.69, allocations: 1.31 MB / 3.369 GB, free: 23.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001635/10.69, allocations: 103 kB / 3.369 GB, free: 23.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/10.69, allocations: 37.81 kB / 3.369 GB, free: 23.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/10.69, allocations: 3.969 kB / 3.369 GB, free: 23.13 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004364/10.69, allocations: 1.229 MB / 3.37 GB, free: 23.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/10.69, allocations: 10.88 kB / 3.37 GB, free: 23.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002794/10.69, allocations: 419.7 kB / 3.371 GB, free: 23.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/10.7, allocations: 171 kB / 3.371 GB, free: 23.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00201/10.7, allocations: 1.103 MB / 3.372 GB, free: 22.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001259/10.7, allocations: 117 kB / 3.372 GB, free: 22.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/10.7, allocations: 36.64 kB / 3.372 GB, free: 22.52 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0008459/10.7, allocations: 362.6 kB / 3.373 GB, free: 22.33 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003347/10.7, allocations: 92.34 kB / 3.373 GB, free: 22.29 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00636/10.71, allocations: 3.339 MB / 3.376 GB, free: 21.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.706e-05/10.71, allocations: 44.25 kB / 3.376 GB, free: 21.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/10.71, allocations: 7.859 kB / 3.376 GB, free: 21.89 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004972/10.71, allocations: 2.79 MB / 3.379 GB, free: 21.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008654/10.72, allocations: 4.604 MB / 3.383 GB, free: 19.97 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/10.72, allocations: 0 / 3.383 GB, free: 19.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/10.72, allocations: 176.3 kB / 3.383 GB, free: 19.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000601/10.72, allocations: 97.72 kB / 3.383 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.223e-05/10.72, allocations: 29.03 kB / 3.384 GB, free: 19.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005871/10.72, allocations: 0.6389 MB / 3.384 GB, free: 19.34 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/10.72, allocations: 3.75 kB / 3.384 GB, free: 19.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006108/10.73, allocations: 2.962 MB / 3.387 GB, free: 17.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/10.73, allocations: 462.3 kB / 3.387 GB, free: 17.64 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/10.73, allocations: 19.81 kB / 3.387 GB, free: 17.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/10.73, allocations: 88.59 kB / 3.388 GB, free: 17.61 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002344/10.73, allocations: 68.66 kB / 3.388 GB, free: 17.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.009e-05/10.73, allocations: 29.72 kB / 3.388 GB, free: 17.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001573/10.73, allocations: 0.8022 MB / 3.388 GB, free: 17.26 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.51e-07/10.73, allocations: 0 / 3.388 GB, free: 17.26 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008339/10.74, allocations: 1.723 MB / 3.39 GB, free: 16.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01897/10.76, allocations: 5.504 MB / 3.396 GB, free: 14.44 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005661/10.77, allocations: 1.87 MB / 3.397 GB, free: 13.86 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.076e-06/10.77, allocations: 2.625 kB / 3.397 GB, free: 13.86 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002078/10.77, allocations: 0.9021 MB / 3.398 GB, free: 13.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00428/10.77, allocations: 464.8 kB / 3.399 GB, free: 13.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/10.79, allocations: 8.931 MB / 3.407 GB, free: 22.56 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/10.79, allocations: 1.343 MB / 3.409 GB, free: 21.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/10.79, allocations: 0.5599 MB / 3.409 GB, free: 21.34 MB / 474.7 MB Notification: Performance of SimCode: time 1.283e-06/10.79, allocations: 3.844 kB / 3.409 GB, free: 21.34 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.689/15.48, allocations: 50.9 MB / 3.459 GB, free: 67.35 MB / 474.7 MB