Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.NonCircularPipes.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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003608/0.000361, allocations: 12 kB / 233.3 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/0.08992, allocations: 38.77 MB / 272.1 MB, free: 9.988 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.399/7.489, allocations: 2.518 GB / 2.784 GB, free: 8.816 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/7.489, allocations: 78.16 kB / 2.784 GB, free: 8.777 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.022/10.51, allocations: 0.5353 GB / 3.319 GB, free: 28.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.588e-06/10.51, allocations: 3.094 kB / 3.319 GB, free: 28.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000185/10.51, allocations: 44.67 kB / 3.319 GB, free: 28.58 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01461/10.53, allocations: 2.942 MB / 3.322 GB, free: 26.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/10.53, allocations: 7.688 kB / 3.322 GB, free: 26.96 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00117/10.53, allocations: 230.6 kB / 3.322 GB, free: 26.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00688/10.53, allocations: 0.584 MB / 3.323 GB, free: 26.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005826/10.54, allocations: 1.458 MB / 3.324 GB, free: 25.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002561/10.54, allocations: 143.2 kB / 3.325 GB, free: 25.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005062/10.54, allocations: 140.1 kB / 3.325 GB, free: 25.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01007/10.55, allocations: 2.824 MB / 3.327 GB, free: 24.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.036e-05/10.55, allocations: 7.812 kB / 3.327 GB, free: 24.74 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003252/10.55, allocations: 74.2 kB / 3.328 GB, free: 24.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002384/10.55, allocations: 125.5 kB / 3.328 GB, free: 24.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/10.56, allocations: 2.648 MB / 3.33 GB, free: 23.95 MB / 378.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.02412/10.59, allocations: 11.96 MB / 3.342 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007453/10.59, allocations: 1.732 MB / 3.344 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01434/10.61, allocations: 5.671 MB / 3.349 GB, free: 10 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/10.61, allocations: 45.66 kB / 3.349 GB, free: 9.957 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 4.088e-06/10.61, allocations: 0 / 3.349 GB, free: 9.957 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.03408/10.64, allocations: 7.127 MB / 3.356 GB, free: 6.133 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/10.64, allocations: 157.2 kB / 3.356 GB, free: 5.953 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/10.64, allocations: 1.014 MB / 3.357 GB, free: 5.078 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000464/10.65, allocations: 49.7 kB / 3.357 GB, free: 5.023 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005821/10.65, allocations: 0.7504 MB / 3.358 GB, free: 4.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005546/10.65, allocations: 435.5 kB / 3.358 GB, free: 3.938 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/10.65, allocations: 32 kB / 3.359 GB, free: 3.906 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/10.65, allocations: 377.5 kB / 3.359 GB, free: 3.547 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002906/10.65, allocations: 0.876 MB / 3.36 GB, free: 2.828 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003237/10.65, allocations: 1.319 MB / 3.361 GB, free: 1.496 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.691/15.34, allocations: 377.7 MB / 3.73 GB, free: 74.01 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/15.34, allocations: 3.281 kB / 3.73 GB, free: 74.01 MB / 426.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.01056/15.35, allocations: 2.648 MB / 3.732 GB, free: 73.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001252/15.36, allocations: 5.147 MB / 3.737 GB, free: 68.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.159e-05/15.36, allocations: 14.12 kB / 3.737 GB, free: 68.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002946/15.36, allocations: 0.4996 MB / 3.738 GB, free: 68.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/15.36, allocations: 397.5 kB / 3.738 GB, free: 68.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002966/15.36, allocations: 2.865 MB / 3.741 GB, free: 66.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003126/15.37, allocations: 219.5 kB / 3.741 GB, free: 66.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000392/15.37, allocations: 79.58 kB / 3.741 GB, free: 66.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/15.37, allocations: 6.75 kB / 3.741 GB, free: 66.38 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009439/15.38, allocations: 2.514 MB / 3.744 GB, free: 66.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.512e-05/15.38, allocations: 20.5 kB / 3.744 GB, free: 66.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002318/15.38, allocations: 476.1 kB / 3.744 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003165/15.38, allocations: 394.4 kB / 3.745 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003922/15.39, allocations: 2.878 MB / 3.748 GB, free: 64.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003343/15.39, allocations: 197.8 kB / 3.748 GB, free: 64.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/15.39, allocations: 83.31 kB / 3.748 GB, free: 64.16 MB / 426.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: circular_pipe.mediums[1].p = 1000000.0 annulus_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 11 (boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002052/15.39, allocations: 0.5897 MB / 3.748 GB, free: 63.97 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006114/15.39, allocations: 146.7 kB / 3.749 GB, free: 63.97 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01774/15.41, allocations: 5.46 MB / 3.754 GB, free: 63.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001195/15.41, allocations: 55.72 kB / 3.754 GB, free: 63.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/15.41, allocations: 0 / 3.754 GB, free: 63.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01481/15.43, allocations: 5.004 MB / 3.759 GB, free: 62.81 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02509/15.45, allocations: 8.012 MB / 3.767 GB, free: 61.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.88e-05/15.45, allocations: 0 / 3.767 GB, free: 61.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003006/15.46, allocations: 291.9 kB / 3.767 GB, free: 61.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0044/15.46, allocations: 0.5678 MB / 3.767 GB, free: 61.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004171/15.46, allocations: 43.05 kB / 3.768 GB, free: 61.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003473/15.46, allocations: 2.934 MB / 3.77 GB, free: 58.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/15.46, allocations: 4.062 kB / 3.77 GB, free: 58.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01348/15.48, allocations: 5.318 MB / 3.776 GB, free: 55.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/15.48, allocations: 0.5133 MB / 3.776 GB, free: 55.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006164/15.48, allocations: 29.67 kB / 3.776 GB, free: 55.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002477/15.48, allocations: 171.9 kB / 3.776 GB, free: 55.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004817/15.48, allocations: 116.8 kB / 3.776 GB, free: 55.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001587/15.48, allocations: 44.62 kB / 3.776 GB, free: 55.05 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001768/15.48, allocations: 0.8206 MB / 3.777 GB, free: 54.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.884e-06/15.48, allocations: 0 / 3.777 GB, free: 54.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01104/15.5, allocations: 2.166 MB / 3.779 GB, free: 52.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * 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 {2 8,1 1,2 8,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02665/15.52, allocations: 8.012 MB / 3.787 GB, free: 48.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0121/15.53, allocations: 3.864 MB / 3.791 GB, free: 45.97 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.465e-06/15.53, allocations: 0 / 3.791 GB, free: 45.97 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00442/15.54, allocations: 1.703 MB / 3.793 GB, free: 45.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005717/15.54, allocations: 0.6201 MB / 3.793 GB, free: 44.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5782/16.12, allocations: 90.86 MB / 3.882 GB, free: 52.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001607/16.12, allocations: 1.783 MB / 3.884 GB, free: 52.24 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001909/16.13, allocations: 0.8835 MB / 3.885 GB, free: 52.23 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/16.13, allocations: 0 / 3.885 GB, free: 52.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.446/20.57, allocations: 94.69 MB / 3.977 GB, free: 33.99 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat