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.849/1.849, allocations: 209.3 MB / 224.8 MB, free: 284 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004293/0.0004294, allocations: 8 kB / 282.5 MB, free: 9.66 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2759, allocations: 48.71 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.07869/0.3546, allocations: 53.93 MB / 385.1 MB, free: 8.512 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0479/0.4025, allocations: 26.61 MB / 411.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001939/0.4045, allocations: 43.62 kB / 411.8 MB, free: 13.8 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002011/0.4065, allocations: 0.5987 MB / 412.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01913/0.4257, allocations: 5.231 MB / 417.6 MB, free: 7.957 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01608/0.4418, allocations: 4.528 MB / 422.1 MB, free: 3.418 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004538/0.4464, allocations: 2.253 MB / 424.4 MB, free: 1.164 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001507/0.4479, allocations: 0.7107 MB / 425.1 MB, free: 448 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3472/0.7951, allocations: 49.82 MB / 474.9 MB, free: 55.89 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0411/0.8363, allocations: 25.15 MB / 0.4883 GB, free: 48.1 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003275/0.8367, allocations: 67.56 kB / 0.4884 GB, free: 48.04 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01753/0.8542, allocations: 8.742 MB / 0.4969 GB, free: 43.34 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006254/0.8549, allocations: 361.9 kB / 0.4973 GB, free: 43.21 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004952/0.8554, allocations: 309.8 kB / 0.4976 GB, free: 43.04 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008916/0.8643, allocations: 4.895 MB / 0.5024 GB, free: 39.45 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.585e-06/0.8644, allocations: 0 / 0.5024 GB, free: 39.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.193e-06/0.8644, allocations: 0 / 0.5024 GB, free: 39.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.8644, allocations: 0 / 0.5024 GB, free: 39.45 MB / 394.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.006639/0.8711, allocations: 2.329 MB / 0.5046 GB, free: 37.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.8711, allocations: 8.031 kB / 0.5046 GB, free: 37.22 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003789/0.8749, allocations: 466.1 kB / 0.5051 GB, free: 36.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001829/0.8768, allocations: 0.9378 MB / 0.506 GB, free: 36.13 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/0.8769, allocations: 147.2 kB / 0.5061 GB, free: 36.01 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/0.8772, allocations: 92.39 kB / 0.5062 GB, free: 35.95 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004838/0.882, allocations: 1.888 MB / 0.5081 GB, free: 34.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.2e-05/0.8821, allocations: 4.922 kB / 0.5081 GB, free: 34.51 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/0.8823, allocations: 45.52 kB / 0.5081 GB, free: 34.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.8824, allocations: 76.97 kB / 0.5082 GB, free: 34.44 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005574/0.888, allocations: 1.796 MB / 0.51 GB, free: 33.21 MB / 394.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.01205/0.9001, allocations: 8.546 MB / 0.5183 GB, free: 25.66 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00413/0.9042, allocations: 1.412 MB / 0.5197 GB, free: 24.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1471/1.051, allocations: 64.09 MB / 0.5823 GB, free: 2.137 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003162/1.055, allocations: 0.8961 MB / 0.5831 GB, free: 1.426 MB / 442.7 MB Notification: Performance of pre-optimization done (n=82): time 5.332e-06/1.055, allocations: 0 / 0.5831 GB, free: 1.426 MB / 442.7 MB Notification: Performance of matching and sorting (n=86): time 0.01573/1.07, allocations: 4.608 MB / 0.5876 GB, free: 13.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002622/1.071, allocations: 408.5 kB / 0.588 GB, free: 13.21 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/1.073, allocations: 1.053 MB / 0.5891 GB, free: 12.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001947/1.073, allocations: 48.61 kB / 0.5891 GB, free: 12.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005411/1.073, allocations: 0.5692 MB / 0.5897 GB, free: 11.99 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003951/1.074, allocations: 298.6 kB / 0.5899 GB, free: 11.74 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/1.074, allocations: 33 kB / 0.59 GB, free: 11.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002164/1.074, allocations: 361.3 kB / 0.5903 GB, free: 11.39 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/1.076, allocations: 0.5378 MB / 0.5908 GB, free: 11.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001972/1.078, allocations: 1.025 MB / 0.5918 GB, free: 10.05 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001777/1.079, allocations: 0.7115 MB / 0.5925 GB, free: 9.625 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/1.079, allocations: 4 kB / 0.5925 GB, free: 9.621 MB / 458.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.004961/1.084, allocations: 1.88 MB / 0.5944 GB, free: 8.414 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004734/1.085, allocations: 0.5071 MB / 0.5949 GB, free: 7.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.129e-05/1.085, allocations: 19.95 kB / 0.5949 GB, free: 7.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007712/1.093, allocations: 1.135 MB / 0.596 GB, free: 6.742 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/1.094, allocations: 254.4 kB / 0.5962 GB, free: 6.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003089/1.097, allocations: 1.5 MB / 0.5977 GB, free: 5.391 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/1.099, allocations: 130.9 kB / 0.5978 GB, free: 5.285 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001754/1.099, allocations: 65.73 kB / 0.5979 GB, free: 5.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/1.099, allocations: 4 kB / 0.5979 GB, free: 5.227 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004632/1.104, allocations: 1.708 MB / 0.5996 GB, free: 4.137 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.962e-05/1.104, allocations: 16.38 kB / 0.5996 GB, free: 4.121 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001888/1.106, allocations: 388.4 kB / 0.6 GB, free: 3.816 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/1.107, allocations: 287.3 kB / 0.6002 GB, free: 3.566 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001908/1.109, allocations: 1.068 MB / 0.6013 GB, free: 2.691 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/1.11, allocations: 122 kB / 0.6014 GB, free: 2.594 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001621/1.111, allocations: 73.28 kB / 0.6015 GB, free: 2.531 MB / 458.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: 64 * 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.heatTransfer.states[1].phase,pipe.volume.inFlow[2],pipe.volume.inFlow[1],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 (125): * Single equations (assignments): 124 * 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.001012/1.112, allocations: 476.3 kB / 0.6019 GB, free: 2.203 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003229/1.112, allocations: 126.5 kB / 0.602 GB, free: 2.078 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007284/1.119, allocations: 4.049 MB / 0.606 GB, free: 15.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.739e-05/1.119, allocations: 44.06 kB / 0.606 GB, free: 15.38 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/1.119, allocations: 7.625 kB / 0.606 GB, free: 15.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.172e-05/1.119, allocations: 7.984 kB / 0.606 GB, free: 15.37 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009495/1.129, allocations: 5.543 MB / 0.6115 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/1.129, allocations: 0 / 0.6115 GB, free: 11.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009199/1.13, allocations: 174.2 kB / 0.6116 GB, free: 11.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007592/1.138, allocations: 1.567 MB / 0.6132 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001747/1.138, allocations: 31.55 kB / 0.6132 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002502/1.14, allocations: 2.072 MB / 0.6152 GB, free: 8.523 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.54e-06/1.14, allocations: 4.031 kB / 0.6152 GB, free: 8.52 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007154/1.147, allocations: 3.881 MB / 0.619 GB, free: 6.004 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/1.149, allocations: 0.5222 MB / 0.6195 GB, free: 5.578 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002717/1.149, allocations: 27.17 kB / 0.6195 GB, free: 5.566 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/1.15, allocations: 93.86 kB / 0.6196 GB, free: 5.488 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/1.15, allocations: 77.03 kB / 0.6197 GB, free: 5.422 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/1.15, allocations: 39.67 kB / 0.6197 GB, free: 5.391 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001948/1.152, allocations: 1.052 MB / 0.6208 GB, free: 4.656 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.93e-07/1.152, allocations: 0 / 0.6208 GB, free: 4.656 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006152/1.159, allocations: 1.855 MB / 0.6226 GB, free: 2.906 MB / 474.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,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.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.007232/1.166, allocations: 1.666 MB / 0.6242 GB, free: 1.426 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006468/1.172, allocations: 2.472 MB / 0.6266 GB, free: 15.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.448e-06/1.172, allocations: 0 / 0.6266 GB, free: 15.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002179/1.175, allocations: 1.044 MB / 0.6276 GB, free: 15.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003648/1.178, allocations: 0.6298 MB / 0.6283 GB, free: 14.68 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007954/1.186, allocations: 4.494 MB / 0.6326 GB, free: 10.72 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001529/1.188, allocations: 1.473 MB / 0.6341 GB, free: 9.262 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004999/1.188, allocations: 108.6 kB / 0.6342 GB, free: 9.16 MB / 490.7 MB Notification: Performance of SimCode: time 1.641e-06/1.188, allocations: 0 / 0.6342 GB, free: 9.16 MB / 490.7 MB Notification: Performance of Templates: time 0.3149/1.503, allocations: 56.82 MB / 0.6897 GB, free: 177.7 MB / 490.7 MB