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.BranchingPipes3.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.BranchingPipes3,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.992/1.992, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006148/0.000615, allocations: 12 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1386, allocations: 48.71 MB / 331.4 MB, free: 8.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.825/7.964, allocations: 2.563 GB / 2.886 GB, free: 29.31 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/7.964, allocations: 77.34 kB / 2.886 GB, free: 29.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.633/12.6, allocations: 0.8484 GB / 3.735 GB, free: 19.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.786e-06/12.6, allocations: 0 / 3.735 GB, free: 19.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002991/12.6, allocations: 70.88 kB / 3.735 GB, free: 19.46 MB / 458.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.019/12.62, allocations: 3.892 MB / 3.739 GB, free: 17.31 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/12.62, allocations: 7.469 kB / 3.739 GB, free: 17.31 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001426/12.62, allocations: 273.3 kB / 3.739 GB, free: 17.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008316/12.63, allocations: 0.7615 MB / 3.74 GB, free: 16.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007928/12.63, allocations: 1.98 MB / 3.742 GB, free: 16.07 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003097/12.63, allocations: 167 kB / 3.742 GB, free: 16.01 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009355/12.64, allocations: 188.8 kB / 3.742 GB, free: 15.96 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0115/12.65, allocations: 3.253 MB / 3.745 GB, free: 14.64 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.952e-05/12.65, allocations: 7.875 kB / 3.745 GB, free: 14.63 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00038/12.65, allocations: 83.12 kB / 3.745 GB, free: 14.59 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002907/12.65, allocations: 150 kB / 3.745 GB, free: 14.56 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01161/12.66, allocations: 2.93 MB / 3.748 GB, free: 13.71 MB / 458.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.0274/12.69, allocations: 13.88 MB / 3.762 GB, free: 19.13 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007936/12.69, allocations: 2.041 MB / 3.764 GB, free: 18.51 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05876/12.75, allocations: 18.78 MB / 3.782 GB, free: 1.734 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00671/12.76, allocations: 1.576 MB / 3.784 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001839/12.76, allocations: 168.3 kB / 3.784 GB, free: 388 kB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 6.843e-06/12.76, allocations: 0 / 3.784 GB, free: 388 kB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.04342/12.81, allocations: 8.517 MB / 3.792 GB, free: 8.965 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000167/12.81, allocations: 260.6 kB / 3.792 GB, free: 8.652 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/12.81, allocations: 1.269 MB / 3.794 GB, free: 7.379 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006083/12.81, allocations: 57.7 kB / 3.794 GB, free: 7.316 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/12.81, allocations: 0.842 MB / 3.795 GB, free: 6.469 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/12.81, allocations: 0.54 MB / 3.795 GB, free: 5.934 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/12.81, allocations: 36 kB / 3.795 GB, free: 5.898 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002135/12.81, allocations: 386.7 kB / 3.795 GB, free: 5.512 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003452/12.82, allocations: 1.007 MB / 3.796 GB, free: 4.504 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003994/12.82, allocations: 1.442 MB / 3.798 GB, free: 2.902 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00433/12.82, allocations: 1.257 MB / 3.799 GB, free: 1.637 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/12.82, allocations: 0 / 3.799 GB, free: 1.637 MB / 490.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.4124/13.24, allocations: 3.022 MB / 3.802 GB, free: 50.68 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001082/13.24, allocations: 4.248 MB / 3.806 GB, free: 46.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.226e-05/13.24, allocations: 11.28 kB / 3.806 GB, free: 46.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004812/13.24, allocations: 0.5373 MB / 3.807 GB, free: 46.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003982/13.25, allocations: 456 kB / 3.807 GB, free: 46.24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002638/13.25, allocations: 2.7 MB / 3.81 GB, free: 44.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004459/13.25, allocations: 261 kB / 3.81 GB, free: 44.17 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007349/13.25, allocations: 97.22 kB / 3.81 GB, free: 44.17 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/13.25, allocations: 3.25 kB / 3.81 GB, free: 44.17 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009839/13.26, allocations: 2.77 MB / 3.813 GB, free: 44.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.983e-05/13.26, allocations: 15.38 kB / 3.813 GB, free: 44.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/13.27, allocations: 203 kB / 3.813 GB, free: 44.01 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/13.27, allocations: 470.3 kB / 3.813 GB, free: 44.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/13.27, allocations: 1.88 MB / 3.815 GB, free: 42.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003682/13.28, allocations: 263.5 kB / 3.816 GB, free: 42.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003954/13.28, allocations: 94.61 kB / 3.816 GB, free: 42.46 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 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_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 () * Number of clocked 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.002259/13.28, allocations: 0.7089 MB / 3.816 GB, free: 42.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000733/13.28, allocations: 193.2 kB / 3.817 GB, free: 42.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01831/13.3, allocations: 7.444 MB / 3.824 GB, free: 41.66 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001202/13.3, allocations: 83.25 kB / 3.824 GB, free: 41.66 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/13.3, allocations: 3.469 kB / 3.824 GB, free: 41.66 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01528/13.31, allocations: 6.521 MB / 3.83 GB, free: 40.75 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02578/13.34, allocations: 11.21 MB / 3.841 GB, free: 39.74 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.997e-05/13.34, allocations: 9.234 kB / 3.841 GB, free: 39.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002762/13.34, allocations: 353.6 kB / 3.842 GB, free: 39.73 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004232/13.35, allocations: 1.184 MB / 3.843 GB, free: 39.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005677/13.35, allocations: 66.08 kB / 3.843 GB, free: 39.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003001/13.35, allocations: 3.182 MB / 3.846 GB, free: 37.61 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.218e-06/13.35, allocations: 8.922 kB / 3.846 GB, free: 37.61 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01557/13.36, allocations: 7.468 MB / 3.853 GB, free: 36.34 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002408/13.37, allocations: 0.7014 MB / 3.854 GB, free: 36.08 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008474/13.37, allocations: 56.03 kB / 3.854 GB, free: 36.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003207/13.37, allocations: 189 kB / 3.854 GB, free: 36.07 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005919/13.37, allocations: 155 kB / 3.854 GB, free: 36.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002497/13.37, allocations: 74.11 kB / 3.854 GB, free: 36.07 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002471/13.37, allocations: 1.085 MB / 3.855 GB, free: 35.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.61e-07/13.37, allocations: 0 / 3.855 GB, free: 35.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01325/13.39, allocations: 2.572 MB / 3.858 GB, free: 35.92 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (177): * Single equations (assignments): 151 * 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 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0318/13.42, allocations: 11.52 MB / 3.869 GB, free: 32.96 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01384/13.43, allocations: 4.744 MB / 3.874 GB, free: 32.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.77e-05/13.43, allocations: 3.969 kB / 3.874 GB, free: 32.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005912/13.44, allocations: 2.461 MB / 3.876 GB, free: 32.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008327/13.45, allocations: 0.9177 MB / 3.877 GB, free: 32.47 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7862/14.23, allocations: 137.2 MB / 4.011 GB, free: 53.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003169/14.24, allocations: 2.136 MB / 4.013 GB, free: 52.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003087/14.24, allocations: 1.234 MB / 4.014 GB, free: 52.39 MB / 0.4948 GB Notification: Performance of SimCode: time 2.324e-06/14.24, allocations: 0 / 4.014 GB, free: 52.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.339/19.58, allocations: 120.3 MB / 4.132 GB, free: 23.57 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat does not exist to compare? outputFormat=mat