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.BranchingPipes13.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.BranchingPipes13,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.943/1.943, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.0004389, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3492, allocations: 48.7 MB / 331.4 MB, free: 6.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.428/7.777, allocations: 2.546 GB / 2.869 GB, free: 91.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/7.777, allocations: 78.39 kB / 2.87 GB, free: 91.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779/12.56, allocations: 0.8432 GB / 3.713 GB, free: 27.87 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.866e-06/12.56, allocations: 1.766 kB / 3.713 GB, free: 27.87 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003072/12.56, allocations: 59.03 kB / 3.713 GB, free: 27.87 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.01927/12.58, allocations: 3.97 MB / 3.717 GB, free: 26.15 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/12.58, allocations: 9.125 kB / 3.717 GB, free: 26.15 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001484/12.58, allocations: 271.9 kB / 3.717 GB, free: 26.1 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008524/12.59, allocations: 0.761 MB / 3.718 GB, free: 25.98 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008562/12.6, allocations: 1.955 MB / 3.72 GB, free: 25.55 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003206/12.6, allocations: 164.8 kB / 3.72 GB, free: 25.54 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008672/12.6, allocations: 176.3 kB / 3.72 GB, free: 25.54 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/12.61, allocations: 3.28 MB / 3.723 GB, free: 25.08 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.781e-05/12.61, allocations: 8.094 kB / 3.723 GB, free: 25.08 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003803/12.61, allocations: 82.73 kB / 3.723 GB, free: 25.08 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002817/12.61, allocations: 149.9 kB / 3.723 GB, free: 25.07 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/12.62, allocations: 3.006 MB / 3.726 GB, free: 25.06 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.02819/12.65, allocations: 14.03 MB / 3.74 GB, free: 16.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007943/12.66, allocations: 2.034 MB / 3.742 GB, free: 16.54 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05846/12.72, allocations: 18.86 MB / 3.76 GB, free: 20.7 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006257/12.72, allocations: 1.542 MB / 3.762 GB, free: 20.57 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001833/12.72, allocations: 167.2 kB / 3.762 GB, free: 20.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 7.965e-06/12.72, allocations: 0 / 3.762 GB, free: 20.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=154): time 0.03796/12.76, allocations: 8.198 MB / 3.77 GB, free: 19.28 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001953/12.76, allocations: 257.3 kB / 3.77 GB, free: 19 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003051/12.76, allocations: 1.342 MB / 3.772 GB, free: 18.82 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005877/12.77, allocations: 55.08 kB / 3.772 GB, free: 18.79 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009557/12.77, allocations: 0.8488 MB / 3.772 GB, free: 18.37 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/12.77, allocations: 0.5171 MB / 3.773 GB, free: 18.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002306/12.77, allocations: 34.59 kB / 3.773 GB, free: 18.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002482/12.77, allocations: 384.5 kB / 3.773 GB, free: 17.73 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003275/12.77, allocations: 0.9994 MB / 3.774 GB, free: 17.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003834/12.78, allocations: 1.416 MB / 3.776 GB, free: 17.29 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004004/12.78, allocations: 1.241 MB / 3.777 GB, free: 17.21 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.061e-05/12.78, allocations: 3.781 kB / 3.777 GB, free: 17.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01116/12.79, allocations: 3.045 MB / 3.78 GB, free: 17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002056/12.79, allocations: 4.246 MB / 3.784 GB, free: 12.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-05/12.79, allocations: 12.25 kB / 3.784 GB, free: 12.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005338/12.8, allocations: 0.6122 MB / 3.785 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003688/12.8, allocations: 434.1 kB / 3.785 GB, free: 12.55 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/12.81, allocations: 2.829 MB / 3.788 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003987/12.81, allocations: 232.5 kB / 3.788 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006311/12.81, allocations: 95.7 kB / 3.788 GB, free: 10.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/12.81, allocations: 6.125 kB / 3.788 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009164/12.82, allocations: 2.745 MB / 3.791 GB, free: 10.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.153e-05/12.82, allocations: 14.66 kB / 3.791 GB, free: 10.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/12.82, allocations: 219.1 kB / 3.791 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003726/12.82, allocations: 455.3 kB / 3.792 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/12.83, allocations: 1.876 MB / 3.793 GB, free: 8.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003033/12.83, allocations: 227.5 kB / 3.794 GB, free: 8.738 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004139/12.83, allocations: 90.42 kB / 3.794 GB, free: 8.738 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (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_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,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.002221/12.83, allocations: 0.7052 MB / 3.794 GB, free: 8.477 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006612/12.83, allocations: 189.2 kB / 3.795 GB, free: 8.379 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01618/12.85, allocations: 7.441 MB / 3.802 GB, free: 7.703 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001009/12.85, allocations: 85.84 kB / 3.802 GB, free: 7.703 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/12.85, allocations: 2.625 kB / 3.802 GB, free: 7.703 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01321/12.86, allocations: 6.527 MB / 3.808 GB, free: 6.863 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02137/12.88, allocations: 10.34 MB / 3.818 GB, free: 6.137 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.817e-05/12.88, allocations: 3.156 kB / 3.818 GB, free: 6.137 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002644/12.89, allocations: 328.5 kB / 3.819 GB, free: 6.137 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005021/12.89, allocations: 1.35 MB / 3.82 GB, free: 6.062 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005464/12.89, allocations: 53.62 kB / 3.82 GB, free: 6.062 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004102/12.9, allocations: 3.471 MB / 3.823 GB, free: 19.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/12.9, allocations: 3.328 kB / 3.823 GB, free: 19.96 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0156/12.91, allocations: 7.242 MB / 3.83 GB, free: 19.38 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00221/12.91, allocations: 0.7004 MB / 3.831 GB, free: 19.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008144/12.91, allocations: 43.08 kB / 3.831 GB, free: 19.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002789/12.92, allocations: 191 kB / 3.831 GB, free: 19.05 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004182/12.92, allocations: 131.7 kB / 3.832 GB, free: 19.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002181/12.92, allocations: 73.64 kB / 3.832 GB, free: 19.05 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002514/12.92, allocations: 1.149 MB / 3.833 GB, free: 18.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.51e-07/12.92, allocations: 0 / 3.833 GB, free: 18.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0128/12.93, allocations: 2.669 MB / 3.835 GB, free: 18.51 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 53 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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) * 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 (164): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.03078/12.96, allocations: 10.03 MB / 3.845 GB, free: 16.96 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01338/12.98, allocations: 4.733 MB / 3.85 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.868e-06/12.98, allocations: 0 / 3.85 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005275/12.98, allocations: 2.252 MB / 3.852 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00808/12.99, allocations: 0.8907 MB / 3.853 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8315/13.82, allocations: 137.8 MB / 3.987 GB, free: 38.45 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003604/13.83, allocations: 2.134 MB / 3.99 GB, free: 37.67 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003636/13.83, allocations: 1.22 MB / 3.991 GB, free: 37.67 MB / 0.4948 GB Notification: Performance of SimCode: time 1.643e-06/13.83, allocations: 0.5625 kB / 3.991 GB, free: 37.67 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.845/19.68, allocations: 120.7 MB / 4.109 GB, free: 67.6 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat does not exist to compare? outputFormat=mat