Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.4/2.4, allocations: 235.1 MB / 243 MB, free: 15.69 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.133e-05, allocations: 4 kB / 303.3 MB, free: 3.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3696, allocations: 54.86 MB / 358.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.85/12.22, allocations: 3.679 GB / 4.029 GB, free: 102.9 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/12.22, allocations: 77.92 kB / 4.029 GB, free: 102.9 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.035/18.26, allocations: 0.9661 GB / 4.995 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.705e-06/18.26, allocations: 0 / 4.995 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0006313/18.26, allocations: 166.7 kB / 4.995 GB, free: 26.5 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 0.06044/18.32, allocations: 9.637 MB / 5.005 GB, free: 22.47 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/18.32, allocations: 8.531 kB / 5.005 GB, free: 22.47 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009001/18.33, allocations: 0.8692 MB / 5.005 GB, free: 22.08 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02769/18.35, allocations: 5.75 MB / 5.011 GB, free: 21.15 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007399/18.36, allocations: 240.7 kB / 5.011 GB, free: 21.15 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005631/18.36, allocations: 411.2 kB / 5.012 GB, free: 21.14 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06253/18.42, allocations: 15.35 MB / 5.027 GB, free: 21.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06507/18.49, allocations: 12.88 MB / 5.039 GB, free: 19.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007382/18.49, allocations: 27.23 kB / 5.039 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006499/18.5, allocations: 14.89 kB / 5.039 GB, free: 19.01 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001607/18.5, allocations: 0.7083 MB / 5.04 GB, free: 18.9 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2126/18.71, allocations: 46.87 MB / 5.086 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5411/19.25, allocations: 10.39 MB / 5.096 GB, free: 51.56 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01872/19.27, allocations: 7.054 MB / 5.103 GB, free: 51.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005445/19.28, allocations: 4.157 MB / 5.107 GB, free: 47.28 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002049/19.28, allocations: 145.6 kB / 5.107 GB, free: 47.23 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.01064/19.29, allocations: 0.8734 MB / 5.108 GB, free: 47.23 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=881): time 6.108e-05/19.29, allocations: 0 / 5.108 GB, free: 47.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1121): time 0.487/19.77, allocations: 81.52 MB / 5.187 GB, free: 44.92 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/19.77, allocations: 163 kB / 5.188 GB, free: 44.85 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006597/19.78, allocations: 2.291 MB / 5.19 GB, free: 44.62 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.004525/19.79, allocations: 36.66 kB / 5.19 GB, free: 44.59 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.002261/19.79, allocations: 2.303 MB / 5.192 GB, free: 43.64 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.008248/19.8, allocations: 3.753 MB / 5.196 GB, free: 41.34 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004548/19.8, allocations: 0 / 5.196 GB, free: 41.34 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001452/19.8, allocations: 0.7482 MB / 5.197 GB, free: 41.01 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02392/19.83, allocations: 8.736 MB / 5.205 GB, free: 40.99 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02602/19.85, allocations: 10.13 MB / 5.215 GB, free: 39.82 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06138/19.91, allocations: 13.16 MB / 5.228 GB, free: 39.69 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/19.91, allocations: 5.938 kB / 5.228 GB, free: 39.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1375) (initialization): time 0.1296/20.04, allocations: 31.15 MB / 5.258 GB, free: 21.36 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002965/20.05, allocations: 11.88 MB / 5.27 GB, free: 8.684 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002717/20.05, allocations: 34.81 kB / 5.27 GB, free: 8.652 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.8939/20.94, allocations: 44.14 MB / 5.313 GB, free: 58.49 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01176/20.95, allocations: 1.086 MB / 5.314 GB, free: 58.49 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.121/21.07, allocations: 35.32 MB / 5.349 GB, free: 57.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02655/21.1, allocations: 1.574 MB / 5.35 GB, free: 57.67 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005673/21.11, allocations: 0.6021 MB / 5.351 GB, free: 57.67 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.853e-05/21.11, allocations: 8.5 kB / 5.351 GB, free: 57.67 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.1495/21.26, allocations: 29.28 MB / 5.379 GB, free: 57.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002678/21.26, allocations: 29.81 kB / 5.379 GB, free: 57.36 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3313/21.59, allocations: 39.63 MB / 5.418 GB, free: 57.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0102/21.6, allocations: 1.185 MB / 5.419 GB, free: 57.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09477/21.69, allocations: 31.26 MB / 5.45 GB, free: 48.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02412/21.72, allocations: 1.546 MB / 5.451 GB, free: 47.65 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005604/21.72, allocations: 0.599 MB / 5.452 GB, free: 47.16 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (590): * Single equations (assignments): 589 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {67 719} Notification: Performance of prepare postOptimizeDAE: time 0.009658/21.73, allocations: 220.3 kB / 5.452 GB, free: 47.02 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.08509/21.82, allocations: 22.4 MB / 5.474 GB, free: 28.77 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006399/21.82, allocations: 0.5802 MB / 5.474 GB, free: 28.32 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1025/21.93, allocations: 26.57 MB / 5.5 GB, free: 7.266 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002104/21.93, allocations: 123.4 kB / 5.5 GB, free: 7.148 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.697e-05/21.93, allocations: 0 / 5.5 GB, free: 7.148 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.5811/22.51, allocations: 21.37 MB / 5.521 GB, free: 74.9 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.206/22.71, allocations: 40.41 MB / 5.561 GB, free: 73.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001718/22.71, allocations: 2.906 kB / 5.561 GB, free: 73.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.05737/22.77, allocations: 2.135 MB / 5.563 GB, free: 73.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.08417/22.85, allocations: 11.09 MB / 5.574 GB, free: 73.28 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005587/22.86, allocations: 478.6 kB / 5.574 GB, free: 73.28 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05546/22.92, allocations: 30.69 MB / 5.604 GB, free: 55.98 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/22.92, allocations: 2.656 kB / 5.604 GB, free: 55.98 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1248/23.04, allocations: 34.75 MB / 5.638 GB, free: 54.98 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00308/23.04, allocations: 0.6868 MB / 5.639 GB, free: 54.58 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006366/23.05, allocations: 267.4 kB / 5.639 GB, free: 54.58 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02425/23.07, allocations: 1.25 MB / 5.64 GB, free: 54.55 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005428/23.08, allocations: 0.7645 MB / 5.641 GB, free: 54.54 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004878/23.09, allocations: 0.5445 MB / 5.641 GB, free: 54.54 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.00426/23.09, allocations: 1.677 MB / 5.643 GB, free: 53.86 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.144e-06/23.09, allocations: 0 / 5.643 GB, free: 53.86 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.04215/23.13, allocations: 6.27 MB / 5.649 GB, free: 53.69 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 60 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,pipe2.mediums[1].p,pipe2.mediums[1].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,pipe3.mediums[1].p,pipe3.mediums[1].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,pipe4.mediums[1].p,pipe4.mediums[1].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1056): * Single equations (assignments): 1029 * 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: 27 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 22 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 22,2 6,2 6,2 6,2 6,2 6,2 6,2 22,2 6,2 6,2 6,2 6,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.16/23.29, allocations: 39.44 MB / 5.688 GB, free: 37.27 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.1049/23.4, allocations: 32.23 MB / 5.719 GB, free: 9.715 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.399e-05/23.4, allocations: 8.375 kB / 5.719 GB, free: 9.711 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.04017/23.44, allocations: 11.22 MB / 5.73 GB, free: 220 kB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.5208/23.96, allocations: 2.689 MB / 5.733 GB, free: 79.2 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1159/24.07, allocations: 28.9 MB / 5.761 GB, free: 75.86 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01035/24.08, allocations: 5.205 MB / 5.766 GB, free: 74.92 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01233/24.1, allocations: 3.528 MB / 5.77 GB, free: 74.91 MB / 0.573 GB Notification: Performance of SimCode: time 3.417e-06/24.1, allocations: 0 / 5.77 GB, free: 74.91 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.58/34.68, allocations: 0.5747 GB / 6.344 GB, free: 42.13 MB / 0.6198 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState_res.mat does not exist to compare? outputFormat=mat