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.LumpedPipeInitialization.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.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.095/2.095, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004197/0.0004198, allocations: 8 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3397, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.629/7.969, allocations: 2.542 GB / 2.866 GB, free: 90.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/7.969, allocations: 81.88 kB / 2.866 GB, free: 90.27 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837/11.81, allocations: 0.7248 GB / 3.591 GB, free: 30.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.474e-06/11.81, allocations: 0 / 3.591 GB, free: 30.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001495/11.81, allocations: 28.86 kB / 3.591 GB, free: 30.49 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01293/11.82, allocations: 2.826 MB / 3.594 GB, free: 29.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/11.82, allocations: 13.41 kB / 3.594 GB, free: 29.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005161/11.82, allocations: 456.5 kB / 3.594 GB, free: 29.03 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00419/11.83, allocations: 1.142 MB / 3.595 GB, free: 28.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002191/11.83, allocations: 146.2 kB / 3.595 GB, free: 28.64 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005236/11.83, allocations: 97.3 kB / 3.595 GB, free: 28.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006749/11.84, allocations: 1.898 MB / 3.597 GB, free: 28.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.76e-05/11.84, allocations: 3.938 kB / 3.597 GB, free: 28.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002337/11.84, allocations: 43.58 kB / 3.597 GB, free: 28.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001545/11.84, allocations: 74.75 kB / 3.597 GB, free: 28.3 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00696/11.84, allocations: 1.779 MB / 3.599 GB, free: 28.29 MB / 458.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.01848/11.86, allocations: 8.532 MB / 3.607 GB, free: 23.38 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005276/11.87, allocations: 1.407 MB / 3.609 GB, free: 23.06 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2047/12.07, allocations: 63.19 MB / 3.67 GB, free: 15.34 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003391/12.08, allocations: 0.8905 MB / 3.671 GB, free: 15.21 MB / 490.7 MB Notification: Performance of pre-optimization done (n=82): time 3.797e-06/12.08, allocations: 0 / 3.671 GB, free: 15.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=86): time 0.01907/12.1, allocations: 4.633 MB / 3.676 GB, free: 13.97 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002835/12.1, allocations: 408.2 kB / 3.676 GB, free: 13.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002079/12.1, allocations: 1.058 MB / 3.677 GB, free: 13.32 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002848/12.1, allocations: 41.45 kB / 3.677 GB, free: 13.29 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005222/12.1, allocations: 0.564 MB / 3.678 GB, free: 12.97 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003703/12.1, allocations: 305.7 kB / 3.678 GB, free: 12.78 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/12.1, allocations: 28.41 kB / 3.678 GB, free: 12.78 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001907/12.1, allocations: 357.2 kB / 3.679 GB, free: 12.46 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001839/12.1, allocations: 0.5347 MB / 3.679 GB, free: 12.46 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00208/12.1, allocations: 1.022 MB / 3.68 GB, free: 11.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002202/12.11, allocations: 0.7016 MB / 3.681 GB, free: 11.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/12.11, allocations: 3.875 kB / 3.681 GB, free: 11.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006139/12.11, allocations: 1.857 MB / 3.683 GB, free: 11.74 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003877/12.11, allocations: 498.8 kB / 3.683 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/12.11, allocations: 19.38 kB / 3.683 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01015/12.12, allocations: 1.117 MB / 3.684 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00181/12.12, allocations: 247.4 kB / 3.684 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003619/12.13, allocations: 1.5 MB / 3.686 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002519/12.13, allocations: 128.9 kB / 3.686 GB, free: 9.996 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002624/12.13, allocations: 67.75 kB / 3.686 GB, free: 9.945 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/12.13, allocations: 8 kB / 3.686 GB, free: 9.938 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005987/12.14, allocations: 1.682 MB / 3.688 GB, free: 9.016 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-05/12.14, allocations: 15.42 kB / 3.688 GB, free: 9.004 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002419/12.14, allocations: 372.2 kB / 3.688 GB, free: 8.781 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/12.14, allocations: 280.1 kB / 3.688 GB, free: 8.555 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002168/12.14, allocations: 1.061 MB / 3.689 GB, free: 7.742 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/12.15, allocations: 125.2 kB / 3.689 GB, free: 7.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/12.15, allocations: 74.53 kB / 3.69 GB, free: 7.609 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: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.001277/12.15, allocations: 468.3 kB / 3.69 GB, free: 7.289 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003877/12.15, allocations: 133.8 kB / 3.69 GB, free: 7.16 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008254/12.16, allocations: 4.06 MB / 3.694 GB, free: 4.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.342e-05/12.16, allocations: 41.25 kB / 3.694 GB, free: 4.227 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/12.16, allocations: 4 kB / 3.694 GB, free: 4.223 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.437e-05/12.16, allocations: 3.656 kB / 3.694 GB, free: 4.223 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3965/12.55, allocations: 5.616 MB / 3.7 GB, free: 59.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.1e-05/12.55, allocations: 1.344 kB / 3.7 GB, free: 59.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/12.55, allocations: 173.1 kB / 3.7 GB, free: 59.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01103/12.57, allocations: 1.54 MB / 3.701 GB, free: 59.86 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002782/12.57, allocations: 27.73 kB / 3.701 GB, free: 59.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/12.57, allocations: 2.092 MB / 3.703 GB, free: 58.82 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/12.57, allocations: 3.844 kB / 3.703 GB, free: 58.82 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008746/12.58, allocations: 3.887 MB / 3.707 GB, free: 58.5 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/12.58, allocations: 0.529 MB / 3.708 GB, free: 58.41 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000393/12.58, allocations: 23.95 kB / 3.708 GB, free: 58.41 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001626/12.58, allocations: 96.75 kB / 3.708 GB, free: 58.41 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002424/12.58, allocations: 84.8 kB / 3.708 GB, free: 58.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/12.58, allocations: 34.2 kB / 3.708 GB, free: 58.41 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002532/12.58, allocations: 1.052 MB / 3.709 GB, free: 58.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.12e-07/12.58, allocations: 0.9688 kB / 3.709 GB, free: 58.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01034/12.59, allocations: 2.048 MB / 3.711 GB, free: 58.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].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 (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01405/12.61, allocations: 2.346 MB / 3.713 GB, free: 58.17 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007895/12.62, allocations: 2.465 MB / 3.716 GB, free: 58.13 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/12.62, allocations: 0 / 3.716 GB, free: 58.13 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002534/12.62, allocations: 1.046 MB / 3.717 GB, free: 58.13 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005847/12.62, allocations: 0.6253 MB / 3.717 GB, free: 58.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008649/12.63, allocations: 4.494 MB / 3.722 GB, free: 56.26 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/12.63, allocations: 1.473 MB / 3.723 GB, free: 55.55 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006692/12.63, allocations: 105.6 kB / 3.723 GB, free: 55.54 MB / 490.7 MB Notification: Performance of SimCode: time 1.613e-06/12.63, allocations: 0 / 3.723 GB, free: 55.54 MB / 490.7 MB Notification: Performance of Templates: time 0.1131/12.75, allocations: 59.05 MB / 3.781 GB, free: 52.09 MB / 490.7 MB