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.BranchingPipes4.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.537/2.537, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.021e-05/2.034e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3751, allocations: 54.84 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.892/8.267, allocations: 2.659 GB / 3.009 GB, free: 90.49 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/8.267, allocations: 79.73 kB / 3.009 GB, free: 90.45 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.948/13.22, allocations: 0.8909 GB / 3.9 GB, free: 33.77 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.787e-06/13.22, allocations: 0 / 3.9 GB, free: 33.77 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003352/13.22, allocations: 65.16 kB / 3.9 GB, free: 33.76 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.0191/13.24, allocations: 4.034 MB / 3.904 GB, free: 31.98 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/13.24, allocations: 9.062 kB / 3.904 GB, free: 31.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009372/13.24, allocations: 0.8734 MB / 3.905 GB, free: 31.85 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008743/13.25, allocations: 2.079 MB / 3.907 GB, free: 31.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002594/13.25, allocations: 98.02 kB / 3.907 GB, free: 31.4 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001042/13.25, allocations: 119.3 kB / 3.907 GB, free: 31.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008015/13.26, allocations: 2.657 MB / 3.91 GB, free: 31.39 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009093/13.27, allocations: 2.868 MB / 3.913 GB, free: 30.88 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.453e-05/13.27, allocations: 12.5 kB / 3.913 GB, free: 30.88 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003923/13.27, allocations: 7.844 kB / 3.913 GB, free: 30.88 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000355/13.27, allocations: 167.1 kB / 3.913 GB, free: 30.87 MB / 0.5105 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.3955/13.67, allocations: 109.6 MB / 4.02 GB, free: 21.45 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004685/13.67, allocations: 2.064 MB / 4.022 GB, free: 20.85 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002312/13.68, allocations: 0.9618 MB / 4.023 GB, free: 20.83 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05393/13.73, allocations: 17.52 MB / 4.04 GB, free: 9.273 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002888/13.73, allocations: 1.173 MB / 4.041 GB, free: 9.109 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=153): time 4.99e-06/13.73, allocations: 3.469 kB / 4.041 GB, free: 9.109 MB / 0.5573 GB Notification: Performance of matching and sorting (n=169): time 0.03378/13.77, allocations: 7.764 MB / 4.049 GB, free: 5.113 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002036/13.77, allocations: 363.2 kB / 4.049 GB, free: 4.684 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/13.77, allocations: 1.145 MB / 4.05 GB, free: 3.949 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0005716/13.77, allocations: 29.7 kB / 4.05 GB, free: 3.914 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001058/13.77, allocations: 1.004 MB / 4.051 GB, free: 3.266 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009705/13.77, allocations: 0.5452 MB / 4.052 GB, free: 2.832 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/13.77, allocations: 4 kB / 4.052 GB, free: 2.828 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003469/13.77, allocations: 389.9 kB / 4.052 GB, free: 18.5 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002379/13.77, allocations: 0.9892 MB / 4.053 GB, free: 17.98 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002772/13.78, allocations: 1.439 MB / 4.054 GB, free: 16.91 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01987/13.8, allocations: 2.793 MB / 4.057 GB, free: 15.39 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.982e-05/13.8, allocations: 0 / 4.057 GB, free: 15.39 MB / 0.573 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.02609/13.82, allocations: 4.349 MB / 4.061 GB, free: 12.89 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002106/13.83, allocations: 4.861 MB / 4.066 GB, free: 7.762 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.905e-05/13.83, allocations: 12 kB / 4.066 GB, free: 7.75 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/13.83, allocations: 221.1 kB / 4.066 GB, free: 7.613 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004685/13.83, allocations: 0.5111 MB / 4.067 GB, free: 7.23 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/13.83, allocations: 2.459 MB / 4.069 GB, free: 4.918 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004758/13.84, allocations: 270.4 kB / 4.069 GB, free: 4.719 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008495/13.84, allocations: 107.6 kB / 4.07 GB, free: 4.645 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/13.84, allocations: 4 kB / 4.07 GB, free: 4.641 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02447/13.86, allocations: 3.993 MB / 4.073 GB, free: 2.387 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.978e-05/13.86, allocations: 12 kB / 4.073 GB, free: 2.375 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009061/13.87, allocations: 222.7 kB / 4.074 GB, free: 2.238 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004429/13.87, allocations: 0.5103 MB / 4.074 GB, free: 1.855 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4392/14.31, allocations: 2.455 MB / 4.077 GB, free: 93.77 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003715/14.31, allocations: 240.4 kB / 4.077 GB, free: 93.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005866/14.31, allocations: 104 kB / 4.077 GB, free: 93.77 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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,pipe1.statesFM[2].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,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0008615/14.31, allocations: 241.3 kB / 4.077 GB, free: 93.6 MB / 0.573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01048/14.33, allocations: 2.446 MB / 4.08 GB, free: 93.53 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009415/14.33, allocations: 187.6 kB / 4.08 GB, free: 93.53 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01474/14.34, allocations: 6.296 MB / 4.086 GB, free: 93.16 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.296e-05/14.34, allocations: 71.72 kB / 4.086 GB, free: 93.16 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/14.34, allocations: 3.406 kB / 4.086 GB, free: 93.16 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01164/14.35, allocations: 5.263 MB / 4.091 GB, free: 92.43 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02193/14.37, allocations: 9.002 MB / 4.1 GB, free: 91.74 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-05/14.37, allocations: 0 / 4.1 GB, free: 91.74 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003141/14.38, allocations: 363.4 kB / 4.1 GB, free: 91.74 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001449/14.38, allocations: 314 kB / 4.101 GB, free: 91.71 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005789/14.38, allocations: 41.5 kB / 4.101 GB, free: 91.71 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002041/14.38, allocations: 2.63 MB / 4.103 GB, free: 89.63 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/14.38, allocations: 7.797 kB / 4.103 GB, free: 89.62 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/14.4, allocations: 6.243 MB / 4.109 GB, free: 89.04 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002416/14.4, allocations: 0.6923 MB / 4.11 GB, free: 88.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009042/14.4, allocations: 15.72 kB / 4.11 GB, free: 88.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003528/14.4, allocations: 173.9 kB / 4.11 GB, free: 88.79 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006799/14.4, allocations: 139.8 kB / 4.11 GB, free: 88.79 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003088/14.41, allocations: 69.25 kB / 4.11 GB, free: 88.79 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00241/14.41, allocations: 1.041 MB / 4.111 GB, free: 88.68 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.42e-07/14.41, allocations: 2.406 kB / 4.111 GB, free: 88.68 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01366/14.42, allocations: 2.711 MB / 4.114 GB, free: 88.68 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 46 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,splitter.medium.phase) * 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 (183): * Single equations (assignments): 158 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03062/14.45, allocations: 10.05 MB / 4.124 GB, free: 87.14 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01229/14.46, allocations: 4.704 MB / 4.128 GB, free: 86.84 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/14.46, allocations: 7.312 kB / 4.128 GB, free: 86.84 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.005092/14.47, allocations: 2.137 MB / 4.13 GB, free: 86.71 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008209/14.48, allocations: 0.8587 MB / 4.131 GB, free: 86.68 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02204/14.5, allocations: 6.777 MB / 4.138 GB, free: 85.42 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0025/14.5, allocations: 2.143 MB / 4.14 GB, free: 84.68 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003039/14.51, allocations: 1.266 MB / 4.141 GB, free: 84.67 MB / 0.573 GB Notification: Performance of SimCode: time 1.442e-06/14.51, allocations: 2.719 kB / 4.141 GB, free: 84.67 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.352/19.86, allocations: 127.1 MB / 4.265 GB, free: 39.69 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat