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.BranchingPipes2.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.BranchingPipes2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.355/2.355, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.387e-05/2.406e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3551, allocations: 54.85 MB / 358.1 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.95/8.305, allocations: 2.672 GB / 3.022 GB, free: 78.02 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/8.306, allocations: 73.41 kB / 3.022 GB, free: 77.99 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.352/12.66, allocations: 0.7916 GB / 3.813 GB, free: 30.04 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.405e-06/12.66, allocations: 0 / 3.813 GB, free: 30.04 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003257/12.66, allocations: 64.06 kB / 3.813 GB, free: 30.03 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02042/12.68, allocations: 3.656 MB / 3.817 GB, free: 28 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/12.68, allocations: 10.06 kB / 3.817 GB, free: 28 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00881/12.69, allocations: 0.7788 MB / 3.818 GB, free: 27.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008533/12.7, allocations: 1.989 MB / 3.82 GB, free: 26.89 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002674/12.7, allocations: 78.77 kB / 3.82 GB, free: 26.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001051/12.7, allocations: 111.2 kB / 3.82 GB, free: 26.88 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007694/12.71, allocations: 2.543 MB / 3.822 GB, free: 24.77 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00816/12.71, allocations: 2.511 MB / 3.825 GB, free: 22.52 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.144e-05/12.71, allocations: 7.938 kB / 3.825 GB, free: 22.51 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003417/12.71, allocations: 8 kB / 3.825 GB, free: 22.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002964/12.71, allocations: 152.8 kB / 3.825 GB, free: 22.38 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.8722/13.59, allocations: 107.9 MB / 3.93 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003915/13.59, allocations: 1.434 MB / 3.932 GB, free: 28.45 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002403/13.59, allocations: 0.9552 MB / 3.933 GB, free: 28.43 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05584/13.65, allocations: 17.46 MB / 3.95 GB, free: 16.89 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00271/13.65, allocations: 1.144 MB / 3.951 GB, free: 16.74 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001602/13.65, allocations: 151.3 kB / 3.951 GB, free: 16.74 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=145): time 8.867e-06/13.65, allocations: 0 / 3.951 GB, free: 16.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=157): time 0.05873/13.71, allocations: 8.724 MB / 3.96 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002827/13.71, allocations: 366.9 kB / 3.96 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002504/13.71, allocations: 1.01 MB / 3.961 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006613/13.72, allocations: 33.92 kB / 3.961 GB, free: 14.63 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001072/13.72, allocations: 0.8863 MB / 3.962 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009969/13.72, allocations: 0.5077 MB / 3.962 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/13.72, allocations: 3.531 kB / 3.962 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002338/13.72, allocations: 379.6 kB / 3.963 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002123/13.72, allocations: 0.9009 MB / 3.964 GB, free: 13.67 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002807/13.72, allocations: 1.316 MB / 3.965 GB, free: 13.23 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/13.74, allocations: 1.827 MB / 3.967 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.959e-05/13.74, allocations: 9.516 kB / 3.967 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01999/13.76, allocations: 3.367 MB / 3.97 GB, free: 13 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002464/13.76, allocations: 4.253 MB / 3.974 GB, free: 24.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.4e-05/13.76, allocations: 11.53 kB / 3.974 GB, free: 24.54 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003895/13.76, allocations: 0.4886 MB / 3.975 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003898/13.77, allocations: 451.4 kB / 3.975 GB, free: 24.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003778/13.77, allocations: 2.815 MB / 3.978 GB, free: 22.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004697/13.78, allocations: 256.8 kB / 3.978 GB, free: 22.39 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006733/13.78, allocations: 98.59 kB / 3.978 GB, free: 22.39 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/13.78, allocations: 2.781 kB / 3.978 GB, free: 22.39 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01736/13.79, allocations: 2.941 MB / 3.981 GB, free: 22.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-05/13.79, allocations: 8.594 kB / 3.981 GB, free: 22.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006927/13.8, allocations: 187.5 kB / 3.981 GB, free: 22.26 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003778/13.8, allocations: 463 kB / 3.982 GB, free: 22.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/13.8, allocations: 1.898 MB / 3.983 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003569/13.8, allocations: 237.8 kB / 3.984 GB, free: 20.67 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004156/13.81, allocations: 92.5 kB / 3.984 GB, free: 20.67 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008456/13.81, allocations: 233.3 kB / 3.984 GB, free: 20.5 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01726/13.82, allocations: 2.887 MB / 3.987 GB, free: 20.29 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/13.82, allocations: 173.1 kB / 3.987 GB, free: 20.2 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02204/13.85, allocations: 6.676 MB / 3.993 GB, free: 19.67 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/13.85, allocations: 77.34 kB / 3.994 GB, free: 19.67 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/13.85, allocations: 3.469 kB / 3.994 GB, free: 19.67 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01853/13.87, allocations: 5.811 MB / 3.999 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02878/13.89, allocations: 9.883 MB / 4.009 GB, free: 17.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.099e-05/13.89, allocations: 6.875 kB / 4.009 GB, free: 17.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002358/13.9, allocations: 309.1 kB / 4.009 GB, free: 17.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003254/13.9, allocations: 1.259 MB / 4.01 GB, free: 17.82 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002397/13.9, allocations: 38.47 kB / 4.01 GB, free: 17.82 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003932/13.9, allocations: 3.391 MB / 4.014 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.324e-05/13.9, allocations: 7.719 kB / 4.014 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02087/13.93, allocations: 7.083 MB / 4.021 GB, free: 14.53 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001849/13.93, allocations: 0.6516 MB / 4.021 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004645/13.93, allocations: 24.09 kB / 4.021 GB, free: 14.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00222/13.93, allocations: 145 kB / 4.021 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003796/13.93, allocations: 139 kB / 4.022 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002001/13.93, allocations: 71.91 kB / 4.022 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001911/13.93, allocations: 0.9505 MB / 4.023 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.81e-07/13.93, allocations: 0 / 4.023 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01092/13.94, allocations: 2.441 MB / 4.025 GB, free: 14 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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: 45 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.region3boundary,$cse29.region3boundary,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.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) * 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 (161): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 16 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.03657/13.98, allocations: 11.51 MB / 4.036 GB, free: 6.062 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01105/13.99, allocations: 4.263 MB / 4.04 GB, free: 3.594 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.297e-05/13.99, allocations: 2.062 kB / 4.04 GB, free: 3.594 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005528/14, allocations: 2.159 MB / 4.042 GB, free: 2.457 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00714/14, allocations: 0.7104 MB / 4.043 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02646/14.03, allocations: 6.556 MB / 4.05 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002528/14.03, allocations: 2.036 MB / 4.052 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002719/14.04, allocations: 1.139 MB / 4.053 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of SimCode: time 1.523e-06/14.04, allocations: 2.625 kB / 4.053 GB, free: 12.43 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.76/19.8, allocations: 117.4 MB / 4.167 GB, free: 83.48 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat does not exist to compare? outputFormat=mat