Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.333/2.333, allocations: 234.9 MB / 251.1 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004331/0.0004333, allocations: 12 kB / 314.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3577, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.99/8.348, allocations: 2.664 GB / 3.025 GB, free: 27.89 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/8.348, allocations: 87.7 kB / 3.025 GB, free: 27.84 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.713/11.06, allocations: 0.49 GB / 3.515 GB, free: 53.73 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.596e-06/11.06, allocations: 3.594 kB / 3.515 GB, free: 53.73 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001798/11.06, allocations: 50.06 kB / 3.515 GB, free: 53.73 MB / 490.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.01661/11.08, allocations: 3.183 MB / 3.518 GB, free: 52.38 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/11.08, allocations: 7.562 kB / 3.518 GB, free: 52.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007733/11.09, allocations: 0.7056 MB / 3.519 GB, free: 52.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006812/11.09, allocations: 1.596 MB / 3.52 GB, free: 51.9 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004118/11.09, allocations: 165 kB / 3.521 GB, free: 51.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001353/11.09, allocations: 187 kB / 3.521 GB, free: 51.89 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/11.11, allocations: 3.591 MB / 3.524 GB, free: 51.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.769e-05/11.11, allocations: 5.219 kB / 3.524 GB, free: 51.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004045/11.11, allocations: 80.16 kB / 3.524 GB, free: 51.12 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002353/11.11, allocations: 179.3 kB / 3.525 GB, free: 51.1 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01357/11.12, allocations: 3.508 MB / 3.528 GB, free: 50.09 MB / 490.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.02995/11.15, allocations: 14.14 MB / 3.542 GB, free: 40.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008915/11.16, allocations: 2.278 MB / 3.544 GB, free: 39.35 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2009/11.36, allocations: 63.42 MB / 3.606 GB, free: 4.988 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007027/11.37, allocations: 1.725 MB / 3.608 GB, free: 3.656 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=154): time 5.701e-06/11.37, allocations: 0 / 3.608 GB, free: 3.656 MB / 0.4948 GB Notification: Performance of matching and sorting (n=174): time 0.04087/11.41, allocations: 9.574 MB / 3.617 GB, free: 11.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001939/11.41, allocations: 282.4 kB / 3.617 GB, free: 11.39 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003082/11.41, allocations: 1.331 MB / 3.619 GB, free: 10.26 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006559/11.41, allocations: 57.7 kB / 3.619 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001032/11.42, allocations: 0.8131 MB / 3.619 GB, free: 9.438 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001145/11.42, allocations: 0.601 MB / 3.62 GB, free: 8.895 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002677/11.42, allocations: 44 kB / 3.62 GB, free: 8.852 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002636/11.42, allocations: 394.8 kB / 3.62 GB, free: 8.484 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004601/11.42, allocations: 1.284 MB / 3.622 GB, free: 7.422 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005507/11.43, allocations: 1.837 MB / 3.623 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005398/11.43, allocations: 1.506 MB / 3.625 GB, free: 4.289 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.412e-05/11.43, allocations: 8 kB / 3.625 GB, free: 4.281 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01479/11.45, allocations: 4.26 MB / 3.629 GB, free: 0.6094 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.3831/11.83, allocations: 0.555 MB / 3.63 GB, free: 83.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.652e-05/11.83, allocations: 15.62 kB / 3.63 GB, free: 83.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02981/11.86, allocations: 3.656 MB / 3.633 GB, free: 83.78 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002429/11.86, allocations: 332.6 kB / 3.634 GB, free: 83.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/11.87, allocations: 4.057 MB / 3.638 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004208/11.88, allocations: 275.9 kB / 3.638 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004335/11.88, allocations: 109.1 kB / 3.638 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/11.88, allocations: 3.656 kB / 3.638 GB, free: 83.23 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01342/11.89, allocations: 3.941 MB / 3.642 GB, free: 83.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.115e-05/11.89, allocations: 16.84 kB / 3.642 GB, free: 83.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01568/11.91, allocations: 2.355 MB / 3.644 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002659/11.91, allocations: 360.3 kB / 3.644 GB, free: 83.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008345/11.92, allocations: 3.339 MB / 3.648 GB, free: 82.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00334/11.92, allocations: 263.4 kB / 3.648 GB, free: 82.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003313/11.92, allocations: 105.5 kB / 3.648 GB, free: 82.61 MB / 0.5105 GB 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.001994/11.93, allocations: 0.7015 MB / 3.649 GB, free: 82.42 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005524/11.93, allocations: 167.8 kB / 3.649 GB, free: 82.42 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01539/11.94, allocations: 6.842 MB / 3.656 GB, free: 82.07 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.491e-05/11.94, allocations: 77.84 kB / 3.656 GB, free: 82.07 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/11.94, allocations: 0 / 3.656 GB, free: 82.07 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01176/11.95, allocations: 5.503 MB / 3.661 GB, free: 81.37 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02144/11.97, allocations: 9.562 MB / 3.67 GB, free: 80.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.252e-05/11.97, allocations: 3.562 kB / 3.67 GB, free: 80.86 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003686/11.98, allocations: 443.7 kB / 3.671 GB, free: 80.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002966/11.98, allocations: 476 kB / 3.671 GB, free: 80.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006038/11.98, allocations: 63.31 kB / 3.671 GB, free: 80.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002238/11.98, allocations: 3.22 MB / 3.674 GB, free: 78.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/11.98, allocations: 5.031 kB / 3.674 GB, free: 78.21 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0171/12, allocations: 7.052 MB / 3.681 GB, free: 77.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002429/12, allocations: 0.7712 MB / 3.682 GB, free: 77.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008793/12.01, allocations: 54.58 kB / 3.682 GB, free: 77.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003462/12.01, allocations: 214.8 kB / 3.682 GB, free: 77.45 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007217/12.01, allocations: 180.3 kB / 3.682 GB, free: 77.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002377/12.01, allocations: 68.06 kB / 3.683 GB, free: 77.44 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002673/12.01, allocations: 1.24 MB / 3.684 GB, free: 77.33 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.31e-07/12.01, allocations: 0 / 3.684 GB, free: 77.33 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01598/12.03, allocations: 2.362 MB / 3.686 GB, free: 77.33 MB / 0.5105 GB 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.01755/12.05, allocations: 2.014 MB / 3.688 GB, free: 77.21 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02653/12.07, allocations: 5.487 MB / 3.693 GB, free: 77.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/12.07, allocations: 0 / 3.693 GB, free: 77.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009362/12.08, allocations: 2.37 MB / 3.696 GB, free: 76.48 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01089/12.09, allocations: 0.7921 MB / 3.696 GB, free: 76.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02737/12.12, allocations: 8.207 MB / 3.704 GB, free: 72.38 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004013/12.12, allocations: 2.05 MB / 3.706 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00183/12.13, allocations: 166.7 kB / 3.707 GB, free: 71.5 MB / 0.5105 GB Notification: Performance of SimCode: time 2.344e-06/12.13, allocations: 0 / 3.707 GB, free: 71.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.1782/12.3, allocations: 87.65 MB / 3.792 GB, free: 33.12 MB / 0.5105 GB