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.TestComponents.Fittings.TestPressureLossDerivatives.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadModel(ModelicaTest): time 1.939/1.939, allocations: 209.4 MB / 217.3 MB, free: 4.148 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.325e-05/2.333e-05, allocations: 7.984 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2615, allocations: 48.69 MB / 320 MB, free: 14.43 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1131/0.3747, allocations: 75.13 MB / 395.1 MB, free: 5.344 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.375, allocations: 75.95 kB / 395.2 MB, free: 5.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02113/0.3961, allocations: 5.176 MB / 400.4 MB, free: 92 kB / 330.7 MB Notification: Performance of FrontEnd: time 2.387e-06/0.3962, allocations: 3.938 kB / 400.4 MB, free: 88 kB / 330.7 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.3962, allocations: 4 kB / 400.4 MB, free: 84 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005323/0.3967, allocations: 398.2 kB / 400.8 MB, free: 15.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.3968, allocations: 8.031 kB / 400.8 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.355e-05/0.3968, allocations: 7.906 kB / 400.8 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.397, allocations: 183 kB / 401 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.397, allocations: 0 / 401 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.3971, allocations: 0 / 401 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001434/0.3972, allocations: 63.91 kB / 401 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.3973, allocations: 53.69 kB / 401.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3974, allocations: 0 / 401.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.762e-06/0.3974, allocations: 0 / 401.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.3974, allocations: 4 kB / 401.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002231/0.3976, allocations: 170.1 kB / 401.3 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001041/0.3978, allocations: 58.56 kB / 401.3 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.664e-05/0.3978, allocations: 36.84 kB / 401.4 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.797e-05/0.3979, allocations: 23.98 kB / 401.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.398, allocations: 30.56 kB / 401.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 2.23e-06/0.398, allocations: 7.938 kB / 401.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.02142/0.4194, allocations: 1.611 MB / 403 MB, free: 13.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.4195, allocations: 63.34 kB / 403.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.4196, allocations: 111.8 kB / 403.2 MB, free: 13.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.4197, allocations: 25.7 kB / 403.2 MB, free: 13.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.821e-05/0.4198, allocations: 154.8 kB / 403.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.567e-05/0.4199, allocations: 35.47 kB / 403.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.918e-05/0.4199, allocations: 0 / 403.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.4201, allocations: 318.8 kB / 403.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.4203, allocations: 67.98 kB / 403.8 MB, free: 12.47 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.4205, allocations: 71.98 kB / 403.9 MB, free: 12.4 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001738/0.4222, allocations: 223.8 kB / 404.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.761e-06/0.4222, allocations: 3.938 kB / 404.1 MB, free: 12.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.002057/0.4243, allocations: 349.3 kB / 404.4 MB, free: 11.83 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.4244, allocations: 4 kB / 404.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7e-06/0.4244, allocations: 0 / 404.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.4244, allocations: 8 kB / 404.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003871/0.4248, allocations: 39.91 kB / 404.5 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.667e-06/0.4248, allocations: 0 / 404.5 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/0.4251, allocations: 15.98 kB / 404.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.4251, allocations: 7.984 kB / 404.5 MB, free: 11.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001222/0.4253, allocations: 104.9 kB / 404.6 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.789e-05/0.4253, allocations: 7.906 kB / 404.6 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002202/0.4275, allocations: 382 kB / 405 MB, free: 11.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.4276, allocations: 7.984 kB / 405 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.369e-06/0.4276, allocations: 0 / 405 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.781e-06/0.4276, allocations: 4 kB / 405 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003238/0.4309, allocations: 0.7486 MB / 405.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.159e-06/0.4309, allocations: 0 / 405.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003639/0.4313, allocations: 43.91 kB / 405.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.158e-05/0.4313, allocations: 7.984 kB / 405.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/0.4313, allocations: 0 / 405.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.4314, allocations: 4 kB / 405.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.794e-06/0.4314, allocations: 3.984 kB / 405.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002082/0.4335, allocations: 487.5 kB / 406.3 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.4336, allocations: 108.9 kB / 406.4 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/0.4337, allocations: 96 / 406.4 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003042/0.434, allocations: 23.92 kB / 406.4 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.4341, allocations: 11.98 kB / 406.4 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.138e-05/0.4341, allocations: 4 kB / 406.4 MB, free: 9.707 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.795e-05/0.4342, allocations: 100.8 kB / 406.5 MB, free: 9.609 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.59e-07/0.4342, allocations: 0 / 406.5 MB, free: 9.609 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007238/0.4349, allocations: 171.7 kB / 406.7 MB, free: 9.441 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008057/0.4358, allocations: 258.9 kB / 406.9 MB, free: 9.176 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004606/0.4362, allocations: 163.9 kB / 407.1 MB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.989e-06/0.4363, allocations: 0 / 407.1 MB, free: 9.016 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002109/0.4365, allocations: 83.92 kB / 407.2 MB, free: 8.934 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.4368, allocations: 20.17 kB / 407.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.4382, allocations: 280.4 kB / 407.5 MB, free: 8.602 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.4386, allocations: 0.7002 MB / 408.2 MB, free: 7.875 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.4388, allocations: 23.42 kB / 408.2 MB, free: 7.852 MB / 346.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4388, allocations: 0 / 408.2 MB, free: 7.852 MB / 346.7 MB Notification: Performance of Templates: time 0.009591/0.4484, allocations: 4.474 MB / 412.7 MB, free: 3.367 MB / 346.7 MB