Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|leftBoundary1.ports.1..m_flow|leftBoundary1.ports.1..p|leftBoundary1.ports.1..h_outflow|rightBoundary1.ports.1..m_flow|rightBoundary1.ports.1..p|rightBoundary1.ports.1..h_outflow|suddenExpansion1.port_b.m_flow|suddenExpansion1.port_b.p|suddenExpansion1.port_b.h_outflow|leftBoundary2.ports.1..m_flow|leftBoundary2.ports.1..p|leftBoundary2.ports.1..h_outflow|rightBoundary2.ports.1..m_flow|rightBoundary2.ports.1..p|rightBoundary2.ports.1..h_outflow|suddenExpansion2.port_b.m_flow|suddenExpansion2.port_b.p|suddenExpansion2.port_b.h_outflow|leftAdapter.port_b.m_flow|leftAdapter.port_b.p|leftAdapter.port_b.h_outflow|rightAdapter.port_b.m_flow|rightAdapter.port_b.p|rightAdapter.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") Notification: Performance of loadModel(ModelicaTest): time 2.143/2.143, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004417/0.0004419, allocations: 12 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2752, allocations: 54.86 MB / 369.2 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.07443/0.3496, allocations: 52.76 MB / 422 MB, free: 5.824 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03263/0.3823, allocations: 19.26 MB / 441.2 MB, free: 2.531 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/0.384, allocations: 39.69 kB / 441.2 MB, free: 2.492 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002046/0.386, allocations: 0.5715 MB / 441.8 MB, free: 1.918 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01705/0.4031, allocations: 4.866 MB / 446.7 MB, free: 13.04 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009485/0.4126, allocations: 2.731 MB / 449.4 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02503/0.4377, allocations: 12.75 MB / 462.2 MB, free: 13.54 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001284/0.439, allocations: 0.5693 MB / 462.7 MB, free: 12.96 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002144/0.4412, allocations: 0.8914 MB / 463.6 MB, free: 12.06 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001017/0.4422, allocations: 0.6107 MB / 464.2 MB, free: 11.45 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.4424, allocations: 44 kB / 464.3 MB, free: 11.41 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0183/0.4607, allocations: 7.425 MB / 471.7 MB, free: 3.973 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004301/0.4612, allocations: 215.1 kB / 471.9 MB, free: 3.762 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005805/0.4618, allocations: 281.1 kB / 472.2 MB, free: 3.48 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3252/0.787, allocations: 3.854 MB / 476 MB, free: 24.99 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.513e-06/0.787, allocations: 0.9375 kB / 476 MB, free: 24.99 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.111e-06/0.7871, allocations: 0 / 476 MB, free: 24.99 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.812e-05/0.7871, allocations: 0 / 476 MB, free: 24.99 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.007297/0.7944, allocations: 2.17 MB / 478.2 MB, free: 23.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.7945, allocations: 11.72 kB / 478.2 MB, free: 23.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005292/0.7998, allocations: 0.5565 MB / 478.8 MB, free: 23.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002173/0.802, allocations: 0.9498 MB / 479.7 MB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.257e-05/0.8021, allocations: 73.19 kB / 479.8 MB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.8023, allocations: 94.16 kB / 479.9 MB, free: 23.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00444/0.8068, allocations: 1.598 MB / 481.5 MB, free: 23.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.748e-05/0.8068, allocations: 6.062 kB / 481.5 MB, free: 23.28 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/0.807, allocations: 50.59 kB / 481.5 MB, free: 23.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-05/0.8071, allocations: 30.25 kB / 481.6 MB, free: 23.28 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005491/0.8126, allocations: 1.356 MB / 482.9 MB, free: 23.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01422/0.8268, allocations: 7.966 MB / 490.9 MB, free: 17.69 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006304/0.8332, allocations: 1.638 MB / 492.5 MB, free: 16.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2659/1.099, allocations: 81.43 MB / 0.5605 GB, free: 10.47 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.694e-05/1.099, allocations: 42.56 kB / 0.5606 GB, free: 10.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=69): time 5.144e-06/1.099, allocations: 0 / 0.5606 GB, free: 10.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=69): time 0.007513/1.107, allocations: 1.825 MB / 0.5623 GB, free: 8.953 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/1.107, allocations: 191.4 kB / 0.5625 GB, free: 8.727 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/1.108, allocations: 0.8207 MB / 0.5633 GB, free: 8.078 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001377/1.109, allocations: 39.02 kB / 0.5634 GB, free: 8.043 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005385/1.109, allocations: 0.6184 MB / 0.564 GB, free: 7.586 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003315/1.11, allocations: 247.7 kB / 0.5642 GB, free: 7.379 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.627e-05/1.11, allocations: 30.12 kB / 0.5642 GB, free: 7.367 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002197/1.11, allocations: 361.5 kB / 0.5646 GB, free: 7.027 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006193/1.111, allocations: 258.7 kB / 0.5648 GB, free: 6.863 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/1.112, allocations: 0.7809 MB / 0.5656 GB, free: 5.965 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008301/1.112, allocations: 389.8 kB / 0.566 GB, free: 5.738 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.208e-05/1.112, allocations: 4 kB / 0.566 GB, free: 5.734 MB / 458.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.00275/1.115, allocations: 1.157 MB / 0.5671 GB, free: 4.965 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.37e-05/1.115, allocations: 12 kB / 0.5671 GB, free: 4.953 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.02e-05/1.115, allocations: 18.62 kB / 0.5671 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00406/1.119, allocations: 0.5387 MB / 0.5676 GB, free: 4.441 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/1.121, allocations: 286.3 kB / 0.5679 GB, free: 4.191 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/1.122, allocations: 1.368 MB / 0.5693 GB, free: 2.883 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/1.124, allocations: 152.4 kB / 0.5694 GB, free: 2.754 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000144/1.124, allocations: 71.55 kB / 0.5695 GB, free: 2.695 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 20 (rightAdapter.state_b.phase,rightAdapter.state_a.phase,rightAdapter.state_a_nondes.phase,rightAdapter.state_b_des.phase,leftAdapter.state_b.phase,leftAdapter.state_a.phase,leftAdapter.state_a_nondes.phase,leftAdapter.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006507/1.124, allocations: 300.1 kB / 0.5697 GB, free: 2.492 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002976/1.125, allocations: 110.7 kB / 0.5699 GB, free: 2.383 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00657/1.131, allocations: 4.392 MB / 0.5741 GB, free: 15.63 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.176e-05/1.132, allocations: 43.55 kB / 0.5742 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/1.132, allocations: 4 kB / 0.5742 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.428e-05/1.132, allocations: 11.36 kB / 0.5742 GB, free: 15.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00739/1.139, allocations: 4.726 MB / 0.5788 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.488e-05/1.139, allocations: 0 / 0.5788 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009586/1.14, allocations: 148.7 kB / 0.579 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005139/1.145, allocations: 1.61 MB / 0.5805 GB, free: 10.62 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/1.145, allocations: 16.38 kB / 0.5805 GB, free: 10.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001994/1.147, allocations: 1.749 MB / 0.5823 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.169e-06/1.147, allocations: 4.094 kB / 0.5823 GB, free: 9.086 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003148/1.151, allocations: 1.901 MB / 0.5841 GB, free: 7.734 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006699/1.151, allocations: 324.1 kB / 0.5844 GB, free: 7.418 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002222/1.151, allocations: 15.31 kB / 0.5844 GB, free: 7.414 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007017/1.152, allocations: 59.39 kB / 0.5845 GB, free: 7.367 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.982e-05/1.152, allocations: 57.98 kB / 0.5846 GB, free: 7.316 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.485e-05/1.152, allocations: 26.38 kB / 0.5846 GB, free: 7.297 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001169/1.154, allocations: 0.6151 MB / 0.5852 GB, free: 6.82 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.154, allocations: 0 / 0.5852 GB, free: 6.82 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004458/1.158, allocations: 1.27 MB / 0.5864 GB, free: 5.617 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.006405/1.164, allocations: 1.262 MB / 0.5876 GB, free: 4.508 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003146/1.168, allocations: 1.176 MB / 0.5888 GB, free: 3.711 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.424e-06/1.168, allocations: 0 / 0.5888 GB, free: 3.711 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002065/1.17, allocations: 0.8578 MB / 0.5896 GB, free: 3.207 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003314/1.173, allocations: 0.5405 MB / 0.5902 GB, free: 2.77 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007108/1.18, allocations: 3.876 MB / 0.5939 GB, free: 15.36 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001338/1.182, allocations: 1.338 MB / 0.5953 GB, free: 13.99 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003698/1.182, allocations: 109.5 kB / 0.5954 GB, free: 13.89 MB / 490.7 MB Notification: Performance of SimCode: time 1.7e-06/1.182, allocations: 0 / 0.5954 GB, free: 13.89 MB / 490.7 MB Notification: Performance of Templates: time 0.08777/1.27, allocations: 50.32 MB / 0.6445 GB, free: 12.05 MB / 0.5261 GB