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.BranchingPipes4.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.BranchingPipes4,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.858/1.858, allocations: 209.2 MB / 224.8 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004221/0.0004222, allocations: 12 kB / 282.7 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09864, allocations: 48.71 MB / 331.4 MB, free: 8.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.973/8.072, allocations: 2.55 GB / 2.873 GB, free: 71.75 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/8.072, allocations: 79.83 kB / 2.873 GB, free: 71.71 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.856/12.93, allocations: 0.8785 GB / 3.752 GB, free: 27.01 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.444e-06/12.93, allocations: 0 / 3.752 GB, free: 27.01 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003365/12.93, allocations: 68.22 kB / 3.752 GB, free: 26.99 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.02098/12.95, allocations: 4.173 MB / 3.756 GB, free: 25.03 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/12.95, allocations: 11.78 kB / 3.756 GB, free: 25.02 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001629/12.95, allocations: 306 kB / 3.756 GB, free: 24.97 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009251/12.96, allocations: 0.8501 MB / 3.757 GB, free: 24.83 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008875/12.97, allocations: 2.078 MB / 3.759 GB, free: 24.33 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003734/12.97, allocations: 178.9 kB / 3.759 GB, free: 24.32 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001095/12.97, allocations: 200.5 kB / 3.759 GB, free: 24.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01882/12.99, allocations: 3.673 MB / 3.763 GB, free: 23.78 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.489e-05/12.99, allocations: 7.375 kB / 3.763 GB, free: 23.78 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005296/12.99, allocations: 90.56 kB / 3.763 GB, free: 23.78 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003526/12.99, allocations: 172.4 kB / 3.763 GB, free: 23.77 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/13, allocations: 3.421 MB / 3.767 GB, free: 23.73 MB / 474.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.03972/13.04, allocations: 15.39 MB / 3.782 GB, free: 13.95 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01486/13.06, allocations: 2.266 MB / 3.784 GB, free: 13.27 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0817/13.14, allocations: 18.86 MB / 3.802 GB, free: 16.59 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007124/13.15, allocations: 1.679 MB / 3.804 GB, free: 16.08 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 6.402e-06/13.15, allocations: 3.938 kB / 3.804 GB, free: 16.07 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.04113/13.19, allocations: 9.001 MB / 3.813 GB, free: 12.34 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001765/13.19, allocations: 253.3 kB / 3.813 GB, free: 12.04 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/13.19, allocations: 1.452 MB / 3.814 GB, free: 10.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005847/13.19, allocations: 57.7 kB / 3.814 GB, free: 10.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/13.19, allocations: 0.9284 MB / 3.815 GB, free: 9.879 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/13.2, allocations: 0.5976 MB / 3.816 GB, free: 9.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002912/13.2, allocations: 44 kB / 3.816 GB, free: 9.297 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000261/13.2, allocations: 385.8 kB / 3.816 GB, free: 8.934 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003869/13.2, allocations: 1.123 MB / 3.817 GB, free: 7.996 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004782/13.2, allocations: 1.578 MB / 3.819 GB, free: 6.445 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004869/13.21, allocations: 1.365 MB / 3.82 GB, free: 5.219 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.506e-05/13.21, allocations: 4 kB / 3.82 GB, free: 5.215 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.0124/13.22, allocations: 3.199 MB / 3.823 GB, free: 2.395 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.4012/13.62, allocations: 4.852 MB / 3.828 GB, free: 39.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.756e-05/13.62, allocations: 12.69 kB / 3.828 GB, free: 39.57 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001681/13.63, allocations: 248.4 kB / 3.828 GB, free: 39.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004572/13.63, allocations: 0.5205 MB / 3.829 GB, free: 39.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/13.63, allocations: 2.434 MB / 3.831 GB, free: 37.47 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004481/13.64, allocations: 265.5 kB / 3.832 GB, free: 37.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008253/13.64, allocations: 105.4 kB / 3.832 GB, free: 37.47 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/13.64, allocations: 3.281 kB / 3.832 GB, free: 37.47 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01254/13.65, allocations: 3.036 MB / 3.835 GB, free: 37.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.946e-05/13.65, allocations: 14.56 kB / 3.835 GB, free: 37.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/13.65, allocations: 256 kB / 3.835 GB, free: 37.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005559/13.66, allocations: 0.5133 MB / 3.835 GB, free: 37.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/13.66, allocations: 2.432 MB / 3.838 GB, free: 35.24 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004841/13.66, allocations: 265.7 kB / 3.838 GB, free: 35.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007986/13.67, allocations: 102.2 kB / 3.838 GB, free: 35.24 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked 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.00362/13.67, allocations: 0.7556 MB / 3.839 GB, free: 34.98 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000939/13.67, allocations: 208.9 kB / 3.839 GB, free: 34.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02678/13.7, allocations: 7.622 MB / 3.846 GB, free: 34.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001641/13.7, allocations: 89.05 kB / 3.847 GB, free: 34.45 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-05/13.7, allocations: 0 / 3.847 GB, free: 34.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04871/13.75, allocations: 6.657 MB / 3.853 GB, free: 33.55 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03208/13.78, allocations: 10.84 MB / 3.864 GB, free: 32.92 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.377e-05/13.78, allocations: 0.5625 kB / 3.864 GB, free: 32.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003442/13.78, allocations: 409.4 kB / 3.864 GB, free: 32.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002495/13.78, allocations: 367.9 kB / 3.864 GB, free: 32.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005692/13.78, allocations: 62.73 kB / 3.864 GB, free: 32.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001743/13.79, allocations: 2.524 MB / 3.867 GB, free: 30.82 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/13.79, allocations: 0 / 3.867 GB, free: 30.82 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01743/13.8, allocations: 7.139 MB / 3.874 GB, free: 30.23 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/13.81, allocations: 0.7455 MB / 3.875 GB, free: 29.96 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009239/13.81, allocations: 50.62 kB / 3.875 GB, free: 29.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00349/13.81, allocations: 209.4 kB / 3.875 GB, free: 29.95 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007278/13.81, allocations: 144.3 kB / 3.875 GB, free: 29.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003299/13.81, allocations: 72.16 kB / 3.875 GB, free: 29.95 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003129/13.82, allocations: 1.219 MB / 3.876 GB, free: 29.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.81e-07/13.82, allocations: 0 / 3.876 GB, free: 29.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01419/13.83, allocations: 2.821 MB / 3.879 GB, free: 29.8 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,splitter.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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.03326/13.86, allocations: 10.5 MB / 3.889 GB, free: 28.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01551/13.88, allocations: 5.196 MB / 3.894 GB, free: 28.16 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/13.88, allocations: 2.938 kB / 3.894 GB, free: 28.16 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006022/13.88, allocations: 2.426 MB / 3.897 GB, free: 28.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008647/13.89, allocations: 0.9603 MB / 3.898 GB, free: 27.99 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8202/14.71, allocations: 139 MB / 4.033 GB, free: 44.09 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0034/14.72, allocations: 2.234 MB / 4.036 GB, free: 43.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003302/14.72, allocations: 1.334 MB / 4.037 GB, free: 43.34 MB / 0.4948 GB Notification: Performance of SimCode: time 1.623e-06/14.72, allocations: 0 / 4.037 GB, free: 43.34 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.669/20.39, allocations: 128.6 MB / 4.162 GB, free: 10.44 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat does not exist to compare? outputFormat=mat