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.LumpedPipeInitialization.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.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 1.788/1.788, allocations: 209.3 MB / 224.9 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004407, allocations: 12 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2852, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.299/6.584, allocations: 2.542 GB / 2.865 GB, free: 73.37 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/6.584, allocations: 81.52 kB / 2.865 GB, free: 73.37 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.231/9.815, allocations: 0.7248 GB / 3.59 GB, free: 30.19 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.417e-06/9.815, allocations: 3.75 kB / 3.59 GB, free: 30.19 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001388/9.815, allocations: 34.27 kB / 3.59 GB, free: 30.19 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.01072/9.826, allocations: 2.818 MB / 3.593 GB, free: 28.91 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/9.826, allocations: 12.97 kB / 3.593 GB, free: 28.91 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004329/9.831, allocations: 458.4 kB / 3.593 GB, free: 28.84 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003551/9.834, allocations: 1.139 MB / 3.595 GB, free: 28.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002119/9.834, allocations: 148.2 kB / 3.595 GB, free: 28.46 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003893/9.835, allocations: 93.56 kB / 3.595 GB, free: 28.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007361/9.842, allocations: 1.886 MB / 3.597 GB, free: 28.12 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.172e-05/9.842, allocations: 3.375 kB / 3.597 GB, free: 28.12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002069/9.842, allocations: 44.45 kB / 3.597 GB, free: 28.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/9.843, allocations: 81.86 kB / 3.597 GB, free: 28.11 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005978/9.849, allocations: 1.773 MB / 3.599 GB, free: 28.11 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.01501/9.864, allocations: 8.55 MB / 3.607 GB, free: 23.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004352/9.868, allocations: 1.406 MB / 3.608 GB, free: 22.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1496/10.02, allocations: 63.2 MB / 3.67 GB, free: 15.46 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003298/10.02, allocations: 0.8891 MB / 3.671 GB, free: 15.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=82): time 5.419e-06/10.02, allocations: 4 kB / 3.671 GB, free: 15.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=86): time 0.01671/10.04, allocations: 4.63 MB / 3.675 GB, free: 14.08 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002659/10.04, allocations: 403 kB / 3.676 GB, free: 13.61 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001812/10.04, allocations: 0.9359 MB / 3.677 GB, free: 13.45 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002775/10.04, allocations: 40.42 kB / 3.677 GB, free: 13.42 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005169/10.04, allocations: 0.5601 MB / 3.677 GB, free: 13.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004186/10.04, allocations: 304.7 kB / 3.678 GB, free: 12.91 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/10.04, allocations: 25.62 kB / 3.678 GB, free: 12.91 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002285/10.04, allocations: 368.9 kB / 3.678 GB, free: 12.59 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/10.04, allocations: 0.5372 MB / 3.678 GB, free: 12.58 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002114/10.05, allocations: 1.006 MB / 3.679 GB, free: 12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002108/10.05, allocations: 0.6965 MB / 3.68 GB, free: 11.96 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-05/10.05, allocations: 3.594 kB / 3.68 GB, free: 11.96 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.006633/10.05, allocations: 1.864 MB / 3.682 GB, free: 11.86 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003977/10.06, allocations: 5.402 MB / 3.687 GB, free: 22.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-05/10.06, allocations: 18.97 kB / 3.687 GB, free: 22.19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01099/10.07, allocations: 1.107 MB / 3.688 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/10.07, allocations: 246.9 kB / 3.689 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003141/10.07, allocations: 1.504 MB / 3.69 GB, free: 21.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002188/10.08, allocations: 120.4 kB / 3.69 GB, free: 21.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003452/10.08, allocations: 71.12 kB / 3.69 GB, free: 21.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/10.08, allocations: 10.56 kB / 3.69 GB, free: 21.59 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005494/10.08, allocations: 1.678 MB / 3.692 GB, free: 21.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.071e-05/10.08, allocations: 13.41 kB / 3.692 GB, free: 21.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001962/10.08, allocations: 374.4 kB / 3.692 GB, free: 21.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001529/10.09, allocations: 281.4 kB / 3.692 GB, free: 21.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/10.09, allocations: 1.064 MB / 3.693 GB, free: 20.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/10.09, allocations: 132.3 kB / 3.694 GB, free: 20.97 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/10.09, allocations: 66.52 kB / 3.694 GB, free: 20.97 MB / 0.4948 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: 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.00122/10.09, allocations: 476.5 kB / 3.694 GB, free: 20.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003475/10.09, allocations: 122.8 kB / 3.694 GB, free: 20.71 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007608/10.1, allocations: 4.062 MB / 3.698 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.829e-05/10.1, allocations: 41.55 kB / 3.698 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/10.1, allocations: 3.375 kB / 3.698 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-05/10.1, allocations: 6.25 kB / 3.698 GB, free: 20.26 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01578/10.12, allocations: 5.551 MB / 3.704 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.629e-05/10.12, allocations: 3.375 kB / 3.704 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/10.12, allocations: 178.6 kB / 3.704 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01097/10.13, allocations: 1.533 MB / 3.705 GB, free: 19.52 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002299/10.13, allocations: 31.45 kB / 3.705 GB, free: 19.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002463/10.13, allocations: 2.088 MB / 3.707 GB, free: 18.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/10.13, allocations: 0 / 3.707 GB, free: 18.46 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00709/10.14, allocations: 3.994 MB / 3.711 GB, free: 17.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/10.14, allocations: 0.5321 MB / 3.712 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003023/10.14, allocations: 21.62 kB / 3.712 GB, free: 17.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/10.14, allocations: 91.8 kB / 3.712 GB, free: 17.61 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/10.14, allocations: 87.17 kB / 3.712 GB, free: 17.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/10.14, allocations: 39.38 kB / 3.712 GB, free: 17.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00195/10.14, allocations: 1.054 MB / 3.713 GB, free: 17.49 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.8e-07/10.14, allocations: 0 / 3.713 GB, free: 17.49 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008876/10.15, allocations: 2.043 MB / 3.715 GB, free: 15.67 MB / 0.4948 GB 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.01089/10.16, allocations: 2.357 MB / 3.717 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00642/10.17, allocations: 2.467 MB / 3.72 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/10.17, allocations: 0 / 3.72 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002088/10.17, allocations: 1.048 MB / 3.721 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003978/10.18, allocations: 0.6299 MB / 3.721 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008665/10.18, allocations: 4.478 MB / 3.726 GB, free: 6.918 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001657/10.19, allocations: 1.474 MB / 3.727 GB, free: 5.684 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005831/10.19, allocations: 115 kB / 3.727 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of SimCode: time 1.769e-06/10.19, allocations: 0 / 3.727 GB, free: 5.578 MB / 0.4948 GB Notification: Performance of Templates: time 0.4379/10.62, allocations: 59.03 MB / 3.785 GB, free: 69.61 MB / 0.4948 GB