Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.3..h|pipe.mediums.4..h|pipe.mediums.5..h|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.931/1.931, allocations: 209.4 MB / 217.3 MB, free: 4.141 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.961e-05/1.967e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2643, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.184/6.449, allocations: 2.553 GB / 2.865 GB, free: 94.89 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000188/6.449, allocations: 75.11 kB / 2.865 GB, free: 94.89 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.117/8.566, allocations: 478.5 MB / 3.332 GB, free: 40.71 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.148e-06/8.566, allocations: 0 / 3.332 GB, free: 40.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000124/8.566, allocations: 35.48 kB / 3.332 GB, free: 40.71 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.01041/8.577, allocations: 2.82 MB / 3.335 GB, free: 39.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/8.577, allocations: 13.81 kB / 3.335 GB, free: 39.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005654/8.583, allocations: 0.5634 MB / 3.336 GB, free: 39.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004732/8.587, allocations: 1.479 MB / 3.337 GB, free: 39.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/8.588, allocations: 78.81 kB / 3.337 GB, free: 39.15 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004618/8.588, allocations: 81.69 kB / 3.337 GB, free: 39.15 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004446/8.593, allocations: 2.001 MB / 3.339 GB, free: 39.14 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004264/8.597, allocations: 2.035 MB / 3.341 GB, free: 38.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.913e-05/8.597, allocations: 10.91 kB / 3.341 GB, free: 38.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/8.597, allocations: 11.22 kB / 3.341 GB, free: 38.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00014/8.597, allocations: 110.8 kB / 3.341 GB, free: 38.73 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.6067/9.204, allocations: 133.3 MB / 3.472 GB, free: 85.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002997/9.207, allocations: 1.183 MB / 3.473 GB, free: 85.02 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001491/9.209, allocations: 0.7453 MB / 3.474 GB, free: 85.01 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03651/9.245, allocations: 16.7 MB / 3.49 GB, free: 74.79 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001806/9.247, allocations: 0.8586 MB / 3.491 GB, free: 74.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=112): time 4.925e-06/9.247, allocations: 0 / 3.491 GB, free: 74.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=136): time 0.02124/9.268, allocations: 6.002 MB / 3.497 GB, free: 73.95 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/9.268, allocations: 195.2 kB / 3.497 GB, free: 73.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/9.27, allocations: 0.8193 MB / 3.498 GB, free: 73.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002918/9.27, allocations: 26.83 kB / 3.498 GB, free: 73.54 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005613/9.271, allocations: 0.7333 MB / 3.498 GB, free: 73.16 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004897/9.271, allocations: 461.2 kB / 3.499 GB, free: 72.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/9.271, allocations: 0 / 3.499 GB, free: 72.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001337/9.272, allocations: 388.1 kB / 3.499 GB, free: 72.62 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001617/9.273, allocations: 0.8549 MB / 3.5 GB, free: 72.62 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/9.275, allocations: 1.339 MB / 3.501 GB, free: 72.07 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02263/9.298, allocations: 4.324 MB / 3.505 GB, free: 71.65 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.729e-05/9.298, allocations: 5.219 kB / 3.505 GB, free: 71.65 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01403/9.312, allocations: 3.903 MB / 3.509 GB, free: 71.54 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001104/9.313, allocations: 5.657 MB / 3.515 GB, free: 65.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-05/9.313, allocations: 14.75 kB / 3.515 GB, free: 65.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01107/9.324, allocations: 2.078 MB / 3.517 GB, free: 65.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/9.326, allocations: 282.8 kB / 3.517 GB, free: 65.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006277/9.332, allocations: 3.229 MB / 3.52 GB, free: 65.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002718/9.335, allocations: 198 kB / 3.52 GB, free: 65.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002966/9.335, allocations: 93.28 kB / 3.521 GB, free: 65.06 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/9.335, allocations: 5.375 kB / 3.521 GB, free: 65.06 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01467/9.35, allocations: 3.83 MB / 3.524 GB, free: 65.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.331e-05/9.35, allocations: 14.22 kB / 3.524 GB, free: 65.01 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007616/9.357, allocations: 1.702 MB / 3.526 GB, free: 64.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/9.359, allocations: 293.2 kB / 3.526 GB, free: 64.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004691/9.364, allocations: 2.873 MB / 3.529 GB, free: 64.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/9.366, allocations: 180.4 kB / 3.529 GB, free: 64.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002369/9.366, allocations: 84.89 kB / 3.529 GB, free: 64.42 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe.mediums[2].p = 0.0 $DER.pipe.mediums[3].p = 0.0 $DER.pipe.mediums[4].p = 0.0 $DER.pipe.mediums[1].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 145 * 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 {6 79} Notification: Performance of prepare postOptimizeDAE: time 0.0006063/9.367, allocations: 171.2 kB / 3.529 GB, free: 64.31 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003651/9.367, allocations: 128.8 kB / 3.53 GB, free: 64.24 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008021/9.375, allocations: 4.587 MB / 3.534 GB, free: 63.91 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.724e-05/9.375, allocations: 50.08 kB / 3.534 GB, free: 63.91 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/9.375, allocations: 3.844 kB / 3.534 GB, free: 63.91 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006827/9.382, allocations: 4.267 MB / 3.538 GB, free: 63.26 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01282/9.395, allocations: 6.945 MB / 3.545 GB, free: 62.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/9.395, allocations: 2.219 kB / 3.545 GB, free: 62.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/9.396, allocations: 213.4 kB / 3.545 GB, free: 62.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00492/9.401, allocations: 1.194 MB / 3.546 GB, free: 62.34 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00027/9.401, allocations: 39.14 kB / 3.546 GB, free: 62.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003536/9.405, allocations: 2.382 MB / 3.549 GB, free: 61.77 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.066e-06/9.405, allocations: 7.094 kB / 3.549 GB, free: 61.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/9.419, allocations: 4.868 MB / 3.554 GB, free: 61.26 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001636/9.42, allocations: 446.4 kB / 3.554 GB, free: 61.05 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003802/9.421, allocations: 25.77 kB / 3.554 GB, free: 61.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/9.422, allocations: 129.7 kB / 3.554 GB, free: 61.04 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003354/9.423, allocations: 140 kB / 3.554 GB, free: 61.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/9.423, allocations: 48.88 kB / 3.554 GB, free: 61.04 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001019/9.424, allocations: 0.5864 MB / 3.555 GB, free: 60.93 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.86e-07/9.424, allocations: 0 / 3.555 GB, free: 60.93 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007994/9.432, allocations: 1.964 MB / 3.557 GB, free: 60.85 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pipe.mediums[1].h,pipe.mediums[2].h,pipe.mediums[3].h,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 26 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 1 * 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 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.009203/9.441, allocations: 2.041 MB / 3.559 GB, free: 60.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00739/9.449, allocations: 3.72 MB / 3.562 GB, free: 60.58 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.426e-06/9.449, allocations: 3.906 kB / 3.562 GB, free: 60.57 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003067/9.452, allocations: 1.579 MB / 3.564 GB, free: 60.56 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/9.455, allocations: 0.5176 MB / 3.564 GB, free: 60.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00741/9.463, allocations: 3.822 MB / 3.568 GB, free: 59.82 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00134/9.464, allocations: 1.587 MB / 3.57 GB, free: 59.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006412/9.465, allocations: 122.6 kB / 3.57 GB, free: 59.09 MB / 490.7 MB Notification: Performance of SimCode: time 2.14e-06/9.465, allocations: 0 / 3.57 GB, free: 59.09 MB / 490.7 MB Notification: Performance of Templates: time 0.08482/9.55, allocations: 54.21 MB / 3.623 GB, free: 40.16 MB / 490.7 MB