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.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.534/2.534, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.209e-05/2.222e-05, allocations: 4 kB / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3659, allocations: 54.85 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.941/8.307, allocations: 2.655 GB / 3.005 GB, free: 95.21 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/8.307, allocations: 76.09 kB / 3.005 GB, free: 95.17 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.267/12.57, allocations: 0.7879 GB / 3.793 GB, free: 29.5 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.854e-06/12.57, allocations: 0 / 3.793 GB, free: 29.5 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003512/12.58, allocations: 70.88 kB / 3.793 GB, free: 29.48 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.02143/12.6, allocations: 3.946 MB / 3.797 GB, free: 27.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/12.6, allocations: 14.03 kB / 3.797 GB, free: 27.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00886/12.61, allocations: 0.832 MB / 3.798 GB, free: 27.36 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008586/12.61, allocations: 2.107 MB / 3.8 GB, free: 26.83 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002717/12.61, allocations: 84.88 kB / 3.8 GB, free: 26.83 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/12.62, allocations: 121.7 kB / 3.8 GB, free: 26.83 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008388/12.62, allocations: 2.874 MB / 3.803 GB, free: 26.46 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008409/12.63, allocations: 2.868 MB / 3.806 GB, free: 25.13 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.792e-05/12.63, allocations: 11.69 kB / 3.806 GB, free: 25.12 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003823/12.63, allocations: 7.188 kB / 3.806 GB, free: 25.12 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003083/12.63, allocations: 167 kB / 3.806 GB, free: 25.1 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.8253/13.46, allocations: 108.9 MB / 3.912 GB, free: 17.63 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00406/13.46, allocations: 1.588 MB / 3.914 GB, free: 17.6 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002286/13.47, allocations: 0.983 MB / 3.915 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0556/13.52, allocations: 17.53 MB / 3.932 GB, free: 22.05 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002958/13.52, allocations: 1.224 MB / 3.933 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001722/13.53, allocations: 163.1 kB / 3.933 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=152): time 7.784e-06/13.53, allocations: 0 / 3.933 GB, free: 21.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=164): time 0.03325/13.56, allocations: 7.917 MB / 3.941 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003383/13.56, allocations: 0.508 MB / 3.941 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002623/13.56, allocations: 1.192 MB / 3.942 GB, free: 19.53 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006577/13.56, allocations: 29.52 kB / 3.942 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001129/13.56, allocations: 0.9885 MB / 3.943 GB, free: 19.09 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001099/13.57, allocations: 0.5385 MB / 3.944 GB, free: 18.81 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/13.57, allocations: 0 / 3.944 GB, free: 18.81 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002791/13.57, allocations: 393.9 kB / 3.944 GB, free: 18.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002684/13.57, allocations: 1.039 MB / 3.945 GB, free: 18.49 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003258/13.57, allocations: 1.499 MB / 3.947 GB, free: 17.98 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02018/13.59, allocations: 2.85 MB / 3.95 GB, free: 17.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.472e-05/13.59, allocations: 3.406 kB / 3.95 GB, free: 17.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.0261/13.62, allocations: 4.602 MB / 3.954 GB, free: 17.72 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002139/13.62, allocations: 4.428 MB / 3.958 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001049/13.62, allocations: 20.36 kB / 3.958 GB, free: 13.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006673/13.63, allocations: 0.7942 MB / 3.959 GB, free: 13.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00409/13.63, allocations: 477.3 kB / 3.96 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005425/13.64, allocations: 3.331 MB / 3.963 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004685/13.64, allocations: 232 kB / 3.963 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008331/13.64, allocations: 107.6 kB / 3.963 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/13.64, allocations: 4.375 kB / 3.963 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02477/13.67, allocations: 4.205 MB / 3.967 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.736e-05/13.67, allocations: 13.97 kB / 3.967 GB, free: 10.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/13.67, allocations: 337.1 kB / 3.968 GB, free: 10.74 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004231/13.67, allocations: 496.4 kB / 3.968 GB, free: 10.74 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006859/13.68, allocations: 3.977 MB / 3.972 GB, free: 23.97 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003506/13.68, allocations: 209.6 kB / 3.972 GB, free: 23.95 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005303/13.68, allocations: 105.5 kB / 3.972 GB, free: 23.95 MB / 0.5417 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,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 (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.0009319/13.69, allocations: 233.1 kB / 3.973 GB, free: 23.77 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01012/13.7, allocations: 2.645 MB / 3.975 GB, free: 23.56 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/13.7, allocations: 197.2 kB / 3.975 GB, free: 23.46 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01597/13.71, allocations: 6.691 MB / 3.982 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000108/13.71, allocations: 70.52 kB / 3.982 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/13.71, allocations: 2.297 kB / 3.982 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01234/13.73, allocations: 5.663 MB / 3.987 GB, free: 22.18 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02155/13.75, allocations: 9.035 MB / 3.996 GB, free: 21.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.268e-05/13.75, allocations: 4.938 kB / 3.996 GB, free: 21.58 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002678/13.75, allocations: 296.8 kB / 3.997 GB, free: 21.58 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006506/13.76, allocations: 2.338 MB / 3.999 GB, free: 21.48 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005603/13.76, allocations: 48.47 kB / 3.999 GB, free: 21.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006065/13.76, allocations: 4.426 MB / 4.003 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/13.76, allocations: 3.625 kB / 4.003 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01626/13.78, allocations: 7.115 MB / 4.01 GB, free: 18.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002445/13.78, allocations: 0.6969 MB / 4.011 GB, free: 18.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008364/13.78, allocations: 20.98 kB / 4.011 GB, free: 18.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003082/13.79, allocations: 152.3 kB / 4.011 GB, free: 18.36 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000651/13.79, allocations: 124.2 kB / 4.011 GB, free: 18.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002512/13.79, allocations: 74.06 kB / 4.011 GB, free: 18.36 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002411/13.79, allocations: 1.079 MB / 4.012 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.12e-07/13.79, allocations: 0 / 4.012 GB, free: 18.21 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01375/13.8, allocations: 2.701 MB / 4.015 GB, free: 18.09 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],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,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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.03153/13.83, allocations: 10.05 MB / 4.025 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01255/13.85, allocations: 4.961 MB / 4.03 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/13.85, allocations: 0.7812 kB / 4.03 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004932/13.85, allocations: 2.099 MB / 4.032 GB, free: 9.367 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007835/13.86, allocations: 0.7863 MB / 4.032 GB, free: 8.934 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02438/13.88, allocations: 6.735 MB / 4.039 GB, free: 4.152 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003294/13.89, allocations: 2.178 MB / 4.041 GB, free: 2.527 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003324/13.89, allocations: 1.249 MB / 4.042 GB, free: 1.691 MB / 0.5417 GB Notification: Performance of SimCode: time 1.894e-06/13.89, allocations: 1.312 kB / 4.042 GB, free: 1.691 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.923/19.81, allocations: 126.3 MB / 4.166 GB, free: 76.96 MB / 0.5573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat does not exist to compare? outputFormat=mat