Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.511/2.511, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.639e-05/4.652e-05, allocations: 8 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4621/0.4622, allocations: 54.85 MB / 364.6 MB, free: 5.543 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.261/8.723, allocations: 2.656 GB / 3.012 GB, free: 103.3 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003398/8.724, allocations: 76.16 kB / 3.012 GB, free: 103.3 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369/13.09, allocations: 0.8016 GB / 3.814 GB, free: 25.86 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.854e-06/13.09, allocations: 0 / 3.814 GB, free: 25.86 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000349/13.09, allocations: 68.08 kB / 3.814 GB, free: 25.85 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02031/13.11, allocations: 3.962 MB / 3.818 GB, free: 23.85 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/13.11, allocations: 6.812 kB / 3.818 GB, free: 23.85 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00146/13.12, allocations: 287.9 kB / 3.818 GB, free: 23.8 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008854/13.12, allocations: 0.8444 MB / 3.819 GB, free: 23.66 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008931/13.13, allocations: 2.165 MB / 3.821 GB, free: 23.15 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003565/13.13, allocations: 172.9 kB / 3.821 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001185/13.13, allocations: 193.9 kB / 3.821 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01305/13.15, allocations: 3.708 MB / 3.825 GB, free: 22.56 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.537e-05/13.15, allocations: 11.28 kB / 3.825 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006394/13.15, allocations: 87.44 kB / 3.825 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003176/13.15, allocations: 163.8 kB / 3.825 GB, free: 22.55 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/13.16, allocations: 3.427 MB / 3.828 GB, free: 22.09 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.03078/13.19, allocations: 14.76 MB / 3.843 GB, free: 11.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006754/13.2, allocations: 2.125 MB / 3.845 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002579/13.2, allocations: 1.068 MB / 3.846 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0585/13.26, allocations: 18.95 MB / 3.864 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005737/13.27, allocations: 1.674 MB / 3.866 GB, free: 10.77 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001726/13.27, allocations: 193.5 kB / 3.866 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 6.342e-06/13.27, allocations: 0 / 3.866 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.03022/13.3, allocations: 7.33 MB / 3.873 GB, free: 4.344 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002356/13.3, allocations: 418.6 kB / 3.874 GB, free: 3.844 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003605/13.3, allocations: 1.479 MB / 3.875 GB, free: 2.523 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006583/13.3, allocations: 57.7 kB / 3.875 GB, free: 2.461 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001231/13.3, allocations: 0.9371 MB / 3.876 GB, free: 1.578 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001142/13.3, allocations: 0.5838 MB / 3.877 GB, free: 1.051 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002627/13.3, allocations: 36 kB / 3.877 GB, free: 1.016 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002344/13.31, allocations: 396.3 kB / 3.877 GB, free: 0.6445 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005012/13.31, allocations: 1.168 MB / 3.878 GB, free: 0 / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003881/13.31, allocations: 1.543 MB / 3.88 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00373/13.32, allocations: 1.319 MB / 3.881 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.107e-05/13.32, allocations: 7.953 kB / 3.881 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009746/13.33, allocations: 3.18 MB / 3.884 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001735/13.33, allocations: 4.427 MB / 3.889 GB, free: 5.695 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.957e-05/13.33, allocations: 16 kB / 3.889 GB, free: 5.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008751/13.34, allocations: 0.9566 MB / 3.889 GB, free: 4.977 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004104/13.34, allocations: 477.2 kB / 3.89 GB, free: 4.582 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004446/13.35, allocations: 3.159 MB / 3.893 GB, free: 1.531 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004153/13.35, allocations: 240.5 kB / 3.893 GB, free: 1.344 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006266/13.35, allocations: 106.8 kB / 3.893 GB, free: 1.25 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/13.35, allocations: 8 kB / 3.893 GB, free: 1.242 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4436/13.8, allocations: 2.97 MB / 3.896 GB, free: 56.18 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.177e-05/13.8, allocations: 16.84 kB / 3.896 GB, free: 56.18 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002162/13.8, allocations: 340.6 kB / 3.897 GB, free: 56.15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004471/13.8, allocations: 496.2 kB / 3.897 GB, free: 56.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00561/13.81, allocations: 4.039 MB / 3.901 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003498/13.81, allocations: 235.7 kB / 3.901 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004827/13.81, allocations: 103.9 kB / 3.901 GB, free: 53.36 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 213 * 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.0008685/13.81, allocations: 294.2 kB / 3.902 GB, free: 53.19 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007214/13.81, allocations: 218.6 kB / 3.902 GB, free: 53.19 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01836/13.83, allocations: 7.737 MB / 3.909 GB, free: 52.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001485/13.83, allocations: 82.14 kB / 3.909 GB, free: 52.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.652e-05/13.83, allocations: 4.812 kB / 3.909 GB, free: 52.62 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01421/13.85, allocations: 6.782 MB / 3.916 GB, free: 51.69 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02192/13.87, allocations: 10.79 MB / 3.927 GB, free: 51.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.115e-05/13.87, allocations: 0 / 3.927 GB, free: 51.03 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002955/13.87, allocations: 343.4 kB / 3.927 GB, free: 51.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008172/13.88, allocations: 2.498 MB / 3.929 GB, free: 50.95 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006046/13.88, allocations: 63.45 kB / 3.929 GB, free: 50.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004565/13.89, allocations: 4.097 MB / 3.933 GB, free: 48.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/13.89, allocations: 3.953 kB / 3.933 GB, free: 48.86 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01586/13.9, allocations: 7.677 MB / 3.941 GB, free: 48.19 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002677/13.9, allocations: 0.751 MB / 3.942 GB, free: 47.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/13.9, allocations: 55.39 kB / 3.942 GB, free: 47.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003496/13.91, allocations: 200 kB / 3.942 GB, free: 47.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005822/13.91, allocations: 139.1 kB / 3.942 GB, free: 47.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/13.91, allocations: 69.78 kB / 3.942 GB, free: 47.91 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00277/13.91, allocations: 1.233 MB / 3.943 GB, free: 47.75 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.92e-07/13.91, allocations: 0 / 3.943 GB, free: 47.75 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01386/13.93, allocations: 2.828 MB / 3.946 GB, free: 47.75 MB / 0.5261 GB 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: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * 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/13.96, allocations: 10.23 MB / 3.956 GB, free: 46.38 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01402/13.97, allocations: 5.302 MB / 3.961 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/13.97, allocations: 0 / 3.961 GB, free: 45.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005878/13.98, allocations: 2.362 MB / 3.964 GB, free: 45.65 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008402/13.99, allocations: 0.8807 MB / 3.964 GB, free: 45.63 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4209/14.41, allocations: 129.4 MB / 4.091 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.478/14.88, allocations: 2.254 MB / 4.093 GB, free: 69.61 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003015/14.89, allocations: 1.314 MB / 4.094 GB, free: 69.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.483e-06/14.89, allocations: 0 / 4.094 GB, free: 69.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.37/20.26, allocations: 130.9 MB / 4.222 GB, free: 49.44 MB / 0.5417 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat does not exist to compare? outputFormat=mat