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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.864/1.864, allocations: 209.3 MB / 224.8 MB, free: 1.359 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004568/0.000457, allocations: 16 kB / 282.5 MB, free: 9.789 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09149/0.09197, allocations: 48.7 MB / 331.2 MB, free: 9 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization): time 0.2714/0.3634, allocations: 39.97 MB / 371.2 MB, free: 8.281 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03954/0.403, allocations: 22.34 MB / 393.5 MB, free: 6.707 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001686/0.4047, allocations: 35.69 kB / 393.5 MB, free: 6.672 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.4067, allocations: 0.5017 MB / 394 MB, free: 6.168 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01745/0.4242, allocations: 4.515 MB / 398.5 MB, free: 1.637 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01588/0.4401, allocations: 4.096 MB / 402.6 MB, free: 13.54 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004843/0.445, allocations: 2.622 MB / 405.3 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001612/0.4466, allocations: 0.7738 MB / 406 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1006/0.5473, allocations: 50.39 MB / 456.4 MB, free: 7.711 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03902/0.5863, allocations: 19.68 MB / 476.1 MB, free: 4.016 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003708/0.5868, allocations: 72 kB / 476.2 MB, free: 3.945 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02141/0.6082, allocations: 8.077 MB / 484.3 MB, free: 11.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009986/0.6092, allocations: 0.4908 MB / 484.8 MB, free: 11.37 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007729/0.61, allocations: 368.8 kB / 485.1 MB, free: 11 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0173/0.6273, allocations: 4.786 MB / 489.9 MB, free: 6.203 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.212e-06/0.6274, allocations: 0 / 489.9 MB, free: 6.203 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.45e-06/0.6274, allocations: 7.875 kB / 489.9 MB, free: 6.195 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.727e-05/0.6275, allocations: 4 kB / 489.9 MB, free: 6.191 MB / 410.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.0152/0.6427, allocations: 2.532 MB / 492.4 MB, free: 3.598 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.09e-05/0.6428, allocations: 8.031 kB / 492.4 MB, free: 3.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/0.654, allocations: 0.5678 MB / 493 MB, free: 3.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004819/0.6588, allocations: 1.008 MB / 494 MB, free: 1.969 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000394/0.6593, allocations: 134.6 kB / 494.2 MB, free: 1.836 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007214/0.66, allocations: 143.9 kB / 494.3 MB, free: 1.695 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2412/0.9013, allocations: 2.726 MB / 497 MB, free: 134.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.167e-05/0.9014, allocations: 6.453 kB / 497 MB, free: 134.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002495/0.9017, allocations: 62.64 kB / 497.1 MB, free: 134.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002005/0.9019, allocations: 122.8 kB / 497.2 MB, free: 134.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009675/0.9116, allocations: 2.699 MB / 499.9 MB, free: 134.4 MB / 410.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.01599/0.9276, allocations: 10.92 MB / 0.4989 GB, free: 126.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006024/0.9337, allocations: 1.846 MB / 0.5007 GB, free: 125.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1435/1.077, allocations: 62.48 MB / 0.5617 GB, free: 65.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004944/1.082, allocations: 1.434 MB / 0.5631 GB, free: 64.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 5.362e-06/1.082, allocations: 0 / 0.5631 GB, free: 64.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=151): time 0.02608/1.108, allocations: 8.436 MB / 0.5713 GB, free: 55.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.018e-05/1.108, allocations: 282.3 kB / 0.5716 GB, free: 55.56 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/1.11, allocations: 1.002 MB / 0.5726 GB, free: 54.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002635/1.11, allocations: 53.7 kB / 0.5726 GB, free: 54.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004515/1.111, allocations: 0.6663 MB / 0.5733 GB, free: 53.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005264/1.111, allocations: 0.5282 MB / 0.5738 GB, free: 53.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/1.111, allocations: 36 kB / 0.5738 GB, free: 53.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/1.112, allocations: 386.8 kB / 0.5742 GB, free: 52.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002372/1.114, allocations: 1.007 MB / 0.5752 GB, free: 51.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002715/1.117, allocations: 1.514 MB / 0.5766 GB, free: 50.12 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.376/5.493, allocations: 0.5489 GB / 1.126 GB, free: 137.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.324e-05/5.493, allocations: 3.969 kB / 1.126 GB, free: 137.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.008405/5.501, allocations: 3.374 MB / 1.129 GB, free: 136.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002386/5.502, allocations: 0.517 MB / 1.129 GB, free: 135.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.592e-05/5.502, allocations: 18.48 kB / 1.129 GB, free: 135.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01659/5.518, allocations: 2.652 MB / 1.132 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/5.52, allocations: 286.6 kB / 1.132 GB, free: 133.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006124/5.526, allocations: 3.268 MB / 1.135 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00225/5.528, allocations: 208.6 kB / 1.136 GB, free: 130.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002144/5.528, allocations: 87.97 kB / 1.136 GB, free: 130.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/5.528, allocations: 7.438 kB / 1.136 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008864/5.537, allocations: 3.396 MB / 1.139 GB, free: 127 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/5.537, allocations: 16 kB / 1.139 GB, free: 127 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009974/5.547, allocations: 1.951 MB / 1.141 GB, free: 125 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/5.549, allocations: 299.2 kB / 1.141 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00528/5.554, allocations: 2.981 MB / 1.144 GB, free: 121.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/5.556, allocations: 207.4 kB / 1.144 GB, free: 121.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001971/5.556, allocations: 91.98 kB / 1.144 GB, free: 121.5 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) 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: 66 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 146 * 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.00115/5.557, allocations: 0.5988 MB / 1.145 GB, free: 120.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/5.557, allocations: 139.8 kB / 1.145 GB, free: 120.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009036/5.566, allocations: 5.824 MB / 1.151 GB, free: 115.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.6e-05/5.566, allocations: 51.94 kB / 1.151 GB, free: 115 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/5.566, allocations: 0 / 1.151 GB, free: 115 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006871/5.573, allocations: 4.732 MB / 1.155 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/5.586, allocations: 8.158 MB / 1.163 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-05/5.586, allocations: 4.438 kB / 1.163 GB, free: 101.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/5.587, allocations: 255.8 kB / 1.164 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005747/5.593, allocations: 1.335 MB / 1.165 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002658/5.593, allocations: 59.83 kB / 1.165 GB, free: 100.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002896/5.596, allocations: 2.191 MB / 1.167 GB, free: 98.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.504e-06/5.596, allocations: 4 kB / 1.167 GB, free: 98.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009226/5.606, allocations: 5.644 MB / 1.173 GB, free: 92.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/5.607, allocations: 0.6106 MB / 1.173 GB, free: 91.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003737/5.607, allocations: 47.98 kB / 1.173 GB, free: 91.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/5.609, allocations: 171.6 kB / 1.174 GB, free: 91.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/5.609, allocations: 157 kB / 1.174 GB, free: 91.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/5.609, allocations: 51.98 kB / 1.174 GB, free: 91.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001472/5.611, allocations: 0.9576 MB / 1.175 GB, free: 90.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.046e-06/5.611, allocations: 0 / 1.175 GB, free: 90.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005464/5.616, allocations: 1.964 MB / 1.177 GB, free: 88.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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: 31 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.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,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.005903/5.622, allocations: 1.518 MB / 1.178 GB, free: 87.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00928/5.632, allocations: 4.353 MB / 1.182 GB, free: 82.85 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.585e-06/5.632, allocations: 4 kB / 1.182 GB, free: 82.85 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003548/5.635, allocations: 1.904 MB / 1.184 GB, free: 80.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/5.639, allocations: 0.6564 MB / 1.185 GB, free: 80.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009182/5.648, allocations: 6.415 MB / 1.191 GB, free: 73.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/5.649, allocations: 1.742 MB / 1.193 GB, free: 72.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005366/5.65, allocations: 123.4 kB / 1.193 GB, free: 71.94 MB / 426.7 MB Notification: Performance of SimCode: time 1.655e-06/5.65, allocations: 0.6562 kB / 1.193 GB, free: 71.94 MB / 426.7 MB Notification: Performance of Templates: time 0.08035/5.73, allocations: 56.53 MB / 1.248 GB, free: 15.38 MB / 426.7 MB