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.TestPipesAndValves.DynamicPipeInitialization.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.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.779/1.779, allocations: 209.3 MB / 224.8 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007863/0.0007862, allocations: 12 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09705/0.09787, allocations: 48.7 MB / 331.3 MB, free: 8.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.37/6.468, allocations: 2.553 GB / 2.877 GB, free: 56.44 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002267/6.468, allocations: 88 kB / 2.877 GB, free: 56.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.123/8.591, allocations: 490.9 MB / 3.356 GB, free: 36.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.416e-06/8.591, allocations: 1.312 kB / 3.356 GB, free: 36.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000135/8.592, allocations: 41.67 kB / 3.356 GB, free: 36.96 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01251/8.604, allocations: 3.138 MB / 3.359 GB, free: 35.61 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/8.604, allocations: 15.34 kB / 3.359 GB, free: 35.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006862/8.611, allocations: 0.6819 MB / 3.36 GB, free: 35.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005474/8.617, allocations: 1.59 MB / 3.362 GB, free: 35.13 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003069/8.617, allocations: 169.4 kB / 3.362 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009485/8.618, allocations: 172.1 kB / 3.362 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01092/8.629, allocations: 3.581 MB / 3.365 GB, free: 34.67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.892e-05/8.629, allocations: 15.41 kB / 3.365 GB, free: 34.67 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003916/8.629, allocations: 78.31 kB / 3.365 GB, free: 34.66 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002058/8.63, allocations: 170.7 kB / 3.366 GB, free: 34.66 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01128/8.641, allocations: 3.514 MB / 3.369 GB, free: 33.69 MB / 442.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.02424/8.665, allocations: 14.12 MB / 3.383 GB, free: 23.74 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007582/8.673, allocations: 2.28 MB / 3.385 GB, free: 22.97 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1449/8.818, allocations: 63.36 MB / 3.447 GB, free: 5.746 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00565/8.824, allocations: 1.728 MB / 3.449 GB, free: 4.422 MB / 474.7 MB Notification: Performance of pre-optimization done (n=154): time 6.475e-06/8.824, allocations: 0 / 3.449 GB, free: 4.422 MB / 474.7 MB Notification: Performance of matching and sorting (n=174): time 0.3112/9.135, allocations: 9.457 MB / 3.458 GB, free: 69.25 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.916e-05/9.135, allocations: 278.3 kB / 3.458 GB, free: 68.93 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002695/9.138, allocations: 1.197 MB / 3.459 GB, free: 68.78 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005062/9.138, allocations: 56.75 kB / 3.459 GB, free: 68.75 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000779/9.139, allocations: 0.8119 MB / 3.46 GB, free: 68.37 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00093/9.14, allocations: 0.6078 MB / 3.461 GB, free: 68.07 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002733/9.14, allocations: 41.25 kB / 3.461 GB, free: 68.07 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/9.14, allocations: 401.2 kB / 3.461 GB, free: 67.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003499/9.144, allocations: 1.281 MB / 3.462 GB, free: 67.75 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004134/9.148, allocations: 1.831 MB / 3.464 GB, free: 67.13 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004103/9.152, allocations: 1.511 MB / 3.466 GB, free: 67.11 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.942e-05/9.152, allocations: 5.125 kB / 3.466 GB, free: 67.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01149/9.164, allocations: 4.257 MB / 3.47 GB, free: 66.98 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001275/9.165, allocations: 6.276 MB / 3.476 GB, free: 60.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-05/9.165, allocations: 16.19 kB / 3.476 GB, free: 60.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02257/9.188, allocations: 3.642 MB / 3.48 GB, free: 60.42 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001975/9.19, allocations: 337.1 kB / 3.48 GB, free: 60.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009125/9.199, allocations: 4.048 MB / 3.484 GB, free: 59.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003251/9.202, allocations: 283.6 kB / 3.484 GB, free: 59.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000486/9.203, allocations: 102.5 kB / 3.484 GB, free: 59.84 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/9.203, allocations: 4.406 kB / 3.484 GB, free: 59.84 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01095/9.214, allocations: 3.936 MB / 3.488 GB, free: 59.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.485e-05/9.214, allocations: 18.53 kB / 3.488 GB, free: 59.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01212/9.226, allocations: 2.349 MB / 3.49 GB, free: 59.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/9.228, allocations: 365.9 kB / 3.491 GB, free: 59.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006811/9.235, allocations: 3.341 MB / 3.494 GB, free: 59.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002579/9.237, allocations: 272.2 kB / 3.494 GB, free: 59.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000424/9.238, allocations: 103 kB / 3.494 GB, free: 59.16 MB / 474.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.001888/9.24, allocations: 0.6985 MB / 3.495 GB, free: 58.98 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005156/9.24, allocations: 161.4 kB / 3.495 GB, free: 58.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01728/9.258, allocations: 6.843 MB / 3.502 GB, free: 58.42 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001573/9.258, allocations: 80.98 kB / 3.502 GB, free: 58.42 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/9.258, allocations: 0 / 3.502 GB, free: 58.42 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02001/9.278, allocations: 5.504 MB / 3.507 GB, free: 57.72 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03669/9.315, allocations: 9.574 MB / 3.517 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.766e-05/9.315, allocations: 0 / 3.517 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005378/9.32, allocations: 435.7 kB / 3.517 GB, free: 57.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004921/9.325, allocations: 478.8 kB / 3.518 GB, free: 57.08 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007675/9.326, allocations: 72.41 kB / 3.518 GB, free: 57.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00392/9.33, allocations: 3.214 MB / 3.521 GB, free: 54.48 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.534e-06/9.33, allocations: 1.219 kB / 3.521 GB, free: 54.48 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01596/9.346, allocations: 7.133 MB / 3.528 GB, free: 51.85 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/9.348, allocations: 0.7678 MB / 3.528 GB, free: 51.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007166/9.349, allocations: 50.84 kB / 3.529 GB, free: 51.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002563/9.352, allocations: 211.6 kB / 3.529 GB, free: 51.32 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004914/9.352, allocations: 188.6 kB / 3.529 GB, free: 51.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002327/9.352, allocations: 70.23 kB / 3.529 GB, free: 51.28 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002324/9.355, allocations: 1.244 MB / 3.53 GB, free: 50.81 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.95e-07/9.355, allocations: 0 / 3.53 GB, free: 50.81 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00971/9.364, allocations: 2.347 MB / 3.532 GB, free: 50.57 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01002/9.374, allocations: 2.005 MB / 3.534 GB, free: 50.31 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01412/9.389, allocations: 5.488 MB / 3.54 GB, free: 48.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/9.389, allocations: 3.688 kB / 3.54 GB, free: 48.61 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004968/9.394, allocations: 2.377 MB / 3.542 GB, free: 47.71 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005233/9.399, allocations: 0.7867 MB / 3.543 GB, free: 47.54 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/9.414, allocations: 8.225 MB / 3.551 GB, free: 43.56 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002285/9.416, allocations: 2.053 MB / 3.553 GB, free: 42.71 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/9.417, allocations: 166.6 kB / 3.553 GB, free: 42.69 MB / 474.7 MB Notification: Performance of SimCode: time 1.818e-06/9.417, allocations: 0 / 3.553 GB, free: 42.69 MB / 474.7 MB Notification: Performance of Templates: time 0.4185/9.836, allocations: 87.44 MB / 3.638 GB, free: 67.08 MB / 474.7 MB