Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.929/1.929, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004299/0.0004301, allocations: 16 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3557, allocations: 48.7 MB / 331.8 MB, free: 6.516 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.898/8.253, allocations: 2.553 GB / 2.877 GB, free: 78.08 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/8.254, allocations: 86.77 kB / 2.877 GB, free: 78.07 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.255/10.51, allocations: 490.9 MB / 3.357 GB, free: 14.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.845e-06/10.51, allocations: 4 kB / 3.357 GB, free: 14.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001485/10.51, allocations: 39.94 kB / 3.357 GB, free: 14.84 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.0154/10.52, allocations: 3.134 MB / 3.36 GB, free: 11.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/10.52, allocations: 8.031 kB / 3.36 GB, free: 11.66 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007393/10.53, allocations: 0.6961 MB / 3.361 GB, free: 10.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00633/10.54, allocations: 1.587 MB / 3.362 GB, free: 9.344 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002902/10.54, allocations: 170 kB / 3.362 GB, free: 9.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008477/10.54, allocations: 173.8 kB / 3.362 GB, free: 9.012 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/10.55, allocations: 3.596 MB / 3.366 GB, free: 5.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.9e-05/10.55, allocations: 4 kB / 3.366 GB, free: 5.266 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003908/10.55, allocations: 74.73 kB / 3.366 GB, free: 5.195 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002236/10.55, allocations: 183.5 kB / 3.366 GB, free: 5.016 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01313/10.57, allocations: 3.511 MB / 3.37 GB, free: 1.5 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.3751/10.94, allocations: 14.12 MB / 3.383 GB, free: 24.73 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00918/10.95, allocations: 2.283 MB / 3.386 GB, free: 24.61 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2043/11.15, allocations: 63.35 MB / 3.447 GB, free: 17.67 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006713/11.16, allocations: 1.739 MB / 3.449 GB, free: 17.53 MB / 474.7 MB Notification: Performance of pre-optimization done (n=154): time 5.3e-06/11.16, allocations: 0 / 3.449 GB, free: 17.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=174): time 0.034/11.2, allocations: 9.459 MB / 3.458 GB, free: 15.93 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001713/11.2, allocations: 282.6 kB / 3.459 GB, free: 15.61 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002581/11.2, allocations: 1.332 MB / 3.46 GB, free: 15.45 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006128/11.2, allocations: 55.86 kB / 3.46 GB, free: 15.41 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001283/11.2, allocations: 0.8205 MB / 3.461 GB, free: 31.03 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008949/11.2, allocations: 0.5942 MB / 3.461 GB, free: 30.73 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002421/11.2, allocations: 48.69 kB / 3.461 GB, free: 30.73 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002029/11.2, allocations: 397.5 kB / 3.462 GB, free: 30.42 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003946/11.21, allocations: 1.28 MB / 3.463 GB, free: 30.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004758/11.21, allocations: 1.843 MB / 3.465 GB, free: 29.76 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004871/11.21, allocations: 1.512 MB / 3.466 GB, free: 29.71 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.308e-05/11.21, allocations: 6.875 kB / 3.466 GB, free: 29.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01382/11.23, allocations: 4.257 MB / 3.471 GB, free: 29.55 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003805/11.23, allocations: 0.5502 MB / 3.471 GB, free: 28.87 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.099e-05/11.23, allocations: 20.36 kB / 3.471 GB, free: 28.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02785/11.26, allocations: 3.658 MB / 3.475 GB, free: 28.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002434/11.26, allocations: 337 kB / 3.475 GB, free: 28.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/11.27, allocations: 4.051 MB / 3.479 GB, free: 28.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004372/11.28, allocations: 279.7 kB / 3.479 GB, free: 28.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006795/11.28, allocations: 102.6 kB / 3.479 GB, free: 28.13 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/11.28, allocations: 3.938 kB / 3.479 GB, free: 28.13 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01384/11.29, allocations: 3.942 MB / 3.483 GB, free: 28.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.389e-05/11.29, allocations: 16.84 kB / 3.483 GB, free: 28.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0162/11.31, allocations: 2.353 MB / 3.485 GB, free: 27.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/11.31, allocations: 366.7 kB / 3.486 GB, free: 27.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008842/11.32, allocations: 3.329 MB / 3.489 GB, free: 27.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003513/11.32, allocations: 269 kB / 3.489 GB, free: 27.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004235/11.32, allocations: 104.1 kB / 3.489 GB, free: 27.35 MB / 490.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.002154/11.33, allocations: 0.7004 MB / 3.49 GB, free: 27.16 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005651/11.33, allocations: 162.8 kB / 3.49 GB, free: 27.08 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01617/11.34, allocations: 6.855 MB / 3.497 GB, free: 26.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.16e-05/11.34, allocations: 75.55 kB / 3.497 GB, free: 26.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/11.34, allocations: 10.14 kB / 3.497 GB, free: 26.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01234/11.35, allocations: 5.497 MB / 3.502 GB, free: 25.78 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02217/11.38, allocations: 9.576 MB / 3.512 GB, free: 24.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.519e-05/11.38, allocations: 4 kB / 3.512 GB, free: 24.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003792/11.38, allocations: 436 kB / 3.512 GB, free: 24.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002974/11.38, allocations: 475.1 kB / 3.513 GB, free: 24.37 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005751/11.38, allocations: 72.02 kB / 3.513 GB, free: 24.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00296/11.39, allocations: 3.214 MB / 3.516 GB, free: 21.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/11.39, allocations: 4.094 kB / 3.516 GB, free: 21.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01741/11.4, allocations: 7.053 MB / 3.523 GB, free: 17.57 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00242/11.41, allocations: 0.7747 MB / 3.524 GB, free: 16.89 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007906/11.41, allocations: 48.92 kB / 3.524 GB, free: 16.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003302/11.41, allocations: 210 kB / 3.524 GB, free: 16.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005758/11.41, allocations: 183.3 kB / 3.524 GB, free: 16.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/11.41, allocations: 74.31 kB / 3.524 GB, free: 16.53 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002606/11.41, allocations: 1.24 MB / 3.525 GB, free: 15.49 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.42e-07/11.41, allocations: 0 / 3.525 GB, free: 15.49 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01084/11.43, allocations: 2.35 MB / 3.527 GB, free: 13.36 MB / 490.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.01218/11.44, allocations: 2.016 MB / 3.529 GB, free: 11.98 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01872/11.46, allocations: 5.482 MB / 3.535 GB, free: 7.379 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/11.46, allocations: 0 / 3.535 GB, free: 7.379 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006799/11.46, allocations: 2.371 MB / 3.537 GB, free: 5.332 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007438/11.47, allocations: 0.7875 MB / 3.538 GB, free: 4.758 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3962/11.87, allocations: 8.209 MB / 3.546 GB, free: 74.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003239/11.87, allocations: 2.048 MB / 3.548 GB, free: 73.94 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/11.87, allocations: 171.3 kB / 3.548 GB, free: 73.93 MB / 490.7 MB Notification: Performance of SimCode: time 2.024e-06/11.87, allocations: 2.312 kB / 3.548 GB, free: 73.93 MB / 490.7 MB Notification: Performance of Templates: time 0.17/12.04, allocations: 87.45 MB / 3.633 GB, free: 69.67 MB / 490.7 MB