Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.NonCircularPipes.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.NonCircularPipes,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_NonCircularPipes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.134/2.134, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003662, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1094, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.871/7.981, allocations: 2.628 GB / 2.929 GB, free: 68.12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/7.981, allocations: 80.47 kB / 2.929 GB, free: 68.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806/10.79, allocations: 0.5476 GB / 3.477 GB, free: 216 kB / 426.7 MB Notification: Performance of FrontEnd: time 2.444e-06/10.79, allocations: 0 / 3.477 GB, free: 216 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001688/10.79, allocations: 47.12 kB / 3.477 GB, free: 172 kB / 426.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.354/11.14, allocations: 2.983 MB / 3.48 GB, free: 29.15 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/11.14, allocations: 7.781 kB / 3.48 GB, free: 29.15 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009654/11.14, allocations: 234.4 kB / 3.48 GB, free: 29.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006767/11.15, allocations: 0.6044 MB / 3.481 GB, free: 29.01 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006154/11.15, allocations: 1.462 MB / 3.482 GB, free: 28.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/11.16, allocations: 144.5 kB / 3.482 GB, free: 28.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006161/11.16, allocations: 147 kB / 3.482 GB, free: 28.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/11.17, allocations: 2.819 MB / 3.485 GB, free: 28.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.33e-05/11.17, allocations: 8.984 kB / 3.485 GB, free: 28.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003658/11.17, allocations: 63.3 kB / 3.485 GB, free: 28.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003011/11.17, allocations: 128.9 kB / 3.485 GB, free: 28.21 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01092/11.18, allocations: 2.652 MB / 3.488 GB, free: 28.19 MB / 426.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.02303/11.2, allocations: 11.94 MB / 3.5 GB, free: 20.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007256/11.21, allocations: 1.733 MB / 3.501 GB, free: 20.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0142/11.22, allocations: 5.744 MB / 3.507 GB, free: 16.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/11.22, allocations: 50.09 kB / 3.507 GB, free: 16.76 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 3.627e-06/11.22, allocations: 0 / 3.507 GB, free: 16.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=124): time 0.03329/11.26, allocations: 7.127 MB / 3.514 GB, free: 15.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/11.26, allocations: 148.3 kB / 3.514 GB, free: 15.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002127/11.26, allocations: 1.021 MB / 3.515 GB, free: 15.58 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003874/11.26, allocations: 49.86 kB / 3.515 GB, free: 15.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005326/11.26, allocations: 0.7496 MB / 3.516 GB, free: 15.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005311/11.26, allocations: 429.8 kB / 3.516 GB, free: 14.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/11.26, allocations: 33.19 kB / 3.516 GB, free: 14.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/11.26, allocations: 377.2 kB / 3.517 GB, free: 14.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002818/11.26, allocations: 0.8793 MB / 3.517 GB, free: 14.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003246/11.27, allocations: 1.324 MB / 3.519 GB, free: 14.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.402/15.67, allocations: 378.8 MB / 3.889 GB, free: 73.51 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.679e-05/15.67, allocations: 8.391 kB / 3.889 GB, free: 73.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.01001/15.68, allocations: 2.645 MB / 3.891 GB, free: 73.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001234/15.68, allocations: 5.14 MB / 3.896 GB, free: 67.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.698e-05/15.68, allocations: 12 kB / 3.896 GB, free: 67.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002818/15.68, allocations: 0.5037 MB / 3.897 GB, free: 67.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002985/15.69, allocations: 396.8 kB / 3.897 GB, free: 67.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002779/15.69, allocations: 2.871 MB / 3.9 GB, free: 64.71 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003069/15.69, allocations: 206.1 kB / 3.9 GB, free: 64.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002514/15.69, allocations: 79.83 kB / 3.9 GB, free: 64.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/15.69, allocations: 4 kB / 3.9 GB, free: 64.53 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008347/15.7, allocations: 2.524 MB / 3.903 GB, free: 63.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.714e-05/15.7, allocations: 12 kB / 3.903 GB, free: 63.17 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002216/15.7, allocations: 488.1 kB / 3.903 GB, free: 62.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002892/15.71, allocations: 391 kB / 3.904 GB, free: 62.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002671/15.71, allocations: 2.867 MB / 3.906 GB, free: 60.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/15.71, allocations: 206.3 kB / 3.907 GB, free: 59.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/15.71, allocations: 86.55 kB / 3.907 GB, free: 59.92 MB / 474.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.00154/15.71, allocations: 0.596 MB / 3.907 GB, free: 59.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004772/15.71, allocations: 140.2 kB / 3.907 GB, free: 59.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/15.73, allocations: 5.453 MB / 3.913 GB, free: 56.64 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.748e-05/15.73, allocations: 57.34 kB / 3.913 GB, free: 56.62 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/15.73, allocations: 4 kB / 3.913 GB, free: 56.62 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009744/15.74, allocations: 5.002 MB / 3.918 GB, free: 53.63 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01626/15.75, allocations: 8.001 MB / 3.925 GB, free: 49.53 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/15.75, allocations: 0.5 kB / 3.925 GB, free: 49.53 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/15.75, allocations: 294.1 kB / 3.926 GB, free: 49.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003032/15.76, allocations: 0.5645 MB / 3.926 GB, free: 49 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002447/15.76, allocations: 42.11 kB / 3.926 GB, free: 48.99 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002628/15.76, allocations: 2.955 MB / 3.929 GB, free: 46.44 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/15.76, allocations: 0 / 3.929 GB, free: 46.44 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01196/15.77, allocations: 5.311 MB / 3.934 GB, free: 43.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001627/15.77, allocations: 0.518 MB / 3.935 GB, free: 43.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005887/15.77, allocations: 33.89 kB / 3.935 GB, free: 43.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00245/15.78, allocations: 161.3 kB / 3.935 GB, free: 42.99 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004778/15.78, allocations: 118.4 kB / 3.935 GB, free: 42.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/15.78, allocations: 49.72 kB / 3.935 GB, free: 42.91 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001776/15.78, allocations: 0.8213 MB / 3.936 GB, free: 42.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.51e-07/15.78, allocations: 4 kB / 3.936 GB, free: 42.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01068/15.79, allocations: 2.173 MB / 3.938 GB, free: 40.65 MB / 474.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.02588/15.82, allocations: 7.996 MB / 3.946 GB, free: 35.81 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01166/15.83, allocations: 3.861 MB / 3.95 GB, free: 33.67 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.136e-06/15.83, allocations: 1.312 kB / 3.95 GB, free: 33.67 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004197/15.83, allocations: 1.707 MB / 3.951 GB, free: 32.83 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005523/15.84, allocations: 0.6273 MB / 3.952 GB, free: 32.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6012/16.44, allocations: 92.16 MB / 4.042 GB, free: 52.49 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00169/16.44, allocations: 1.777 MB / 4.044 GB, free: 51.75 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001953/16.44, allocations: 0.8769 MB / 4.045 GB, free: 51.74 MB / 474.7 MB Notification: Performance of SimCode: time 1.112e-06/16.44, allocations: 0 / 4.045 GB, free: 51.74 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.463/20.91, allocations: 94.87 MB / 4.137 GB, free: 36.41 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.NonCircularPipes_res.mat does not exist to compare? outputFormat=mat