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/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.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.948/1.948, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.115e-05/2.129e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2686, allocations: 48.68 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.866/6.134, allocations: 2.553 GB / 2.865 GB, free: 14.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/6.134, allocations: 79.89 kB / 2.865 GB, free: 14.54 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.196/8.33, allocations: 485.1 MB / 3.339 GB, free: 30.78 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.835e-06/8.33, allocations: 0 / 3.339 GB, free: 30.78 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001293/8.331, allocations: 38.59 kB / 3.339 GB, free: 30.77 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.01119/8.342, allocations: 2.942 MB / 3.342 GB, free: 28.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/8.342, allocations: 8.031 kB / 3.342 GB, free: 28.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006427/8.348, allocations: 0.6954 MB / 3.342 GB, free: 27.75 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004833/8.353, allocations: 1.575 MB / 3.344 GB, free: 26.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001965/8.353, allocations: 90.41 kB / 3.344 GB, free: 26.35 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006395/8.354, allocations: 100 kB / 3.344 GB, free: 26.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006111/8.36, allocations: 2.834 MB / 3.347 GB, free: 23.75 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006157/8.366, allocations: 2.879 MB / 3.35 GB, free: 21.22 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.479e-05/8.366, allocations: 11.84 kB / 3.35 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003172/8.367, allocations: 4 kB / 3.35 GB, free: 21.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001901/8.367, allocations: 177.5 kB / 3.35 GB, free: 21.06 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.5929/8.96, allocations: 140.4 MB / 3.487 GB, free: 20.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003333/8.963, allocations: 1.579 MB / 3.489 GB, free: 20.81 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00185/8.965, allocations: 0.9788 MB / 3.489 GB, free: 20.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04017/9.005, allocations: 16.72 MB / 3.506 GB, free: 26 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002303/9.008, allocations: 1.144 MB / 3.507 GB, free: 25.9 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=139): time 5.56e-06/9.008, allocations: 0 / 3.507 GB, free: 25.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=159): time 0.02712/9.035, allocations: 7.381 MB / 3.514 GB, free: 24.93 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001594/9.035, allocations: 222.6 kB / 3.514 GB, free: 24.68 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/9.037, allocations: 0.9249 MB / 3.515 GB, free: 24.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000411/9.037, allocations: 33.64 kB / 3.515 GB, free: 24.49 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007723/9.038, allocations: 0.8941 MB / 3.516 GB, free: 24.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000664/9.039, allocations: 0.534 MB / 3.517 GB, free: 23.77 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002265/9.039, allocations: 0 / 3.517 GB, free: 23.77 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000256/9.039, allocations: 400.6 kB / 3.517 GB, free: 23.46 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002107/9.041, allocations: 1.127 MB / 3.518 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002726/9.044, allocations: 1.671 MB / 3.52 GB, free: 22.82 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008304/9.052, allocations: 1.999 MB / 3.522 GB, free: 22.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.888e-05/9.052, allocations: 3.5 kB / 3.522 GB, free: 22.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01448/9.067, allocations: 4.388 MB / 3.526 GB, free: 22.61 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0031/9.07, allocations: 6.266 MB / 3.532 GB, free: 16.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-05/9.07, allocations: 19.45 kB / 3.532 GB, free: 16.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01467/9.085, allocations: 2.745 MB / 3.535 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001718/9.087, allocations: 332.6 kB / 3.535 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009504/9.096, allocations: 4.239 MB / 3.539 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003389/9.1, allocations: 256.3 kB / 3.54 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003858/9.1, allocations: 111.1 kB / 3.54 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/9.1, allocations: 3.375 kB / 3.54 GB, free: 15.31 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01291/9.113, allocations: 3.879 MB / 3.543 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.671e-05/9.113, allocations: 17.06 kB / 3.543 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/9.123, allocations: 2.044 MB / 3.545 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001932/9.125, allocations: 366.8 kB / 3.546 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005525/9.131, allocations: 3.236 MB / 3.549 GB, free: 13.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002707/9.134, allocations: 230.4 kB / 3.549 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003464/9.134, allocations: 109.4 kB / 3.549 GB, free: 13.18 MB / 0.4948 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) 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 ($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,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 (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.0007206/9.135, allocations: 155.6 kB / 3.549 GB, free: 13.06 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000442/9.135, allocations: 145.7 kB / 3.55 GB, free: 12.93 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01052/9.146, allocations: 5.648 MB / 3.555 GB, free: 9.898 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.218e-05/9.146, allocations: 65.48 kB / 3.555 GB, free: 9.871 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/9.146, allocations: 7.562 kB / 3.555 GB, free: 9.867 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009093/9.155, allocations: 5.118 MB / 3.56 GB, free: 6.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01654/9.172, allocations: 8.401 MB / 3.568 GB, free: 2.488 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/9.172, allocations: 4 kB / 3.568 GB, free: 2.484 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002356/9.174, allocations: 397.3 kB / 3.569 GB, free: 2.195 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001559/9.176, allocations: 423.1 kB / 3.569 GB, free: 1.957 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003336/9.176, allocations: 36.2 kB / 3.569 GB, free: 1.941 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2777/9.454, allocations: 3.354 MB / 3.572 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/9.454, allocations: 1.156 kB / 3.572 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01289/9.467, allocations: 6.246 MB / 3.579 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001505/9.468, allocations: 0.563 MB / 3.579 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000403/9.469, allocations: 13.56 kB / 3.579 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002056/9.471, allocations: 174.4 kB / 3.579 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004145/9.471, allocations: 171.9 kB / 3.579 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/9.471, allocations: 58.19 kB / 3.58 GB, free: 100.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00115/9.472, allocations: 0.6578 MB / 3.58 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.647e-06/9.472, allocations: 0 / 3.58 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008351/9.481, allocations: 2.168 MB / 3.582 GB, free: 100.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$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,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.009673/9.491, allocations: 2.07 MB / 3.584 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01025/9.501, allocations: 4.813 MB / 3.589 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/9.501, allocations: 0 / 3.589 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004327/9.505, allocations: 2.072 MB / 3.591 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003858/9.509, allocations: 0.5574 MB / 3.592 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/9.52, allocations: 5.153 MB / 3.597 GB, free: 99.57 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001798/9.522, allocations: 1.906 MB / 3.598 GB, free: 98.82 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/9.523, allocations: 156.9 kB / 3.599 GB, free: 98.82 MB / 0.4948 GB Notification: Performance of SimCode: time 1.766e-06/9.523, allocations: 0 / 3.599 GB, free: 98.82 MB / 0.4948 GB Notification: Performance of Templates: time 0.1124/9.635, allocations: 80.52 MB / 3.677 GB, free: 93.09 MB / 0.4948 GB