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.Pipes.StaticPipe.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadModel(ModelicaTest): time 2.208/2.208, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.222e-05/2.23e-05, allocations: 7.938 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2754, allocations: 54.85 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8852/1.161, allocations: 310.6 MB / 0.6529 GB, free: 121.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/1.161, allocations: 88.5 kB / 0.653 GB, free: 121.1 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3097/1.471, allocations: 95.65 MB / 0.7464 GB, free: 65.89 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.993e-06/1.471, allocations: 0 / 0.7464 GB, free: 65.89 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.009e-05/1.471, allocations: 12 kB / 0.7464 GB, free: 65.88 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001578/1.472, allocations: 0.8282 MB / 0.7472 GB, free: 64.99 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/1.472, allocations: 8.031 kB / 0.7473 GB, free: 64.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002963/1.473, allocations: 55.44 kB / 0.7473 GB, free: 64.93 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009825/1.474, allocations: 483.7 kB / 0.7478 GB, free: 64.41 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/1.474, allocations: 8 kB / 0.7478 GB, free: 64.41 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.318e-05/1.474, allocations: 24 kB / 0.7478 GB, free: 64.38 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007391/1.475, allocations: 381.2 kB / 0.7482 GB, free: 64.01 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007787/1.475, allocations: 487.5 kB / 0.7486 GB, free: 63.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/1.475, allocations: 0 / 0.7486 GB, free: 63.5 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-05/1.475, allocations: 0 / 0.7486 GB, free: 63.5 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.077e-05/1.476, allocations: 32.48 kB / 0.7487 GB, free: 63.46 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003336/1.479, allocations: 2.186 MB / 0.7508 GB, free: 61.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/1.479, allocations: 188.3 kB / 0.751 GB, free: 60.95 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/1.48, allocations: 112.8 kB / 0.7511 GB, free: 60.84 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001365/1.481, allocations: 1.049 MB / 0.7521 GB, free: 59.67 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/1.481, allocations: 141 kB / 0.7522 GB, free: 59.51 MB / 474.7 MB Notification: Performance of pre-optimization done (n=15): time 3.237e-06/1.481, allocations: 0 / 0.7522 GB, free: 59.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007066/1.482, allocations: 213 kB / 0.7524 GB, free: 59.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.36e-05/1.482, allocations: 162.2 kB / 0.7526 GB, free: 59.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005029/1.482, allocations: 385 kB / 0.753 GB, free: 58.72 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/1.482, allocations: 29.7 kB / 0.753 GB, free: 58.68 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001786/1.483, allocations: 353.6 kB / 0.7533 GB, free: 58.33 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.914e-05/1.483, allocations: 47.44 kB / 0.7534 GB, free: 58.29 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.209e-05/1.483, allocations: 0 / 0.7534 GB, free: 58.29 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 6.554e-05/1.483, allocations: 330.8 kB / 0.7537 GB, free: 57.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/1.483, allocations: 100.8 kB / 0.7538 GB, free: 57.86 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002916/1.483, allocations: 325.4 kB / 0.7541 GB, free: 57.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003388/1.487, allocations: 0.612 MB / 0.7547 GB, free: 56.82 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.004e-05/1.487, allocations: 4 kB / 0.7547 GB, free: 56.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.004216/1.491, allocations: 0.8493 MB / 0.7555 GB, free: 55.97 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005713/1.492, allocations: 2.827 MB / 0.7583 GB, free: 52.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/1.492, allocations: 12 kB / 0.7583 GB, free: 52.91 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.746e-05/1.492, allocations: 16.03 kB / 0.7583 GB, free: 52.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/1.492, allocations: 83.89 kB / 0.7584 GB, free: 52.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.795e-05/1.492, allocations: 11.94 kB / 0.7584 GB, free: 52.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005648/1.493, allocations: 55.42 kB / 0.7585 GB, free: 52.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-05/1.493, allocations: 24 kB / 0.7585 GB, free: 52.72 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/1.493, allocations: 4 kB / 0.7585 GB, free: 52.72 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003625/1.496, allocations: 0.7936 MB / 0.7593 GB, free: 51.93 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/1.497, allocations: 8 kB / 0.7593 GB, free: 51.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/1.497, allocations: 15.94 kB / 0.7593 GB, free: 51.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003444/1.497, allocations: 75.91 kB / 0.7594 GB, free: 51.83 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/1.497, allocations: 15.92 kB / 0.7594 GB, free: 51.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003822/1.497, allocations: 39.69 kB / 0.7594 GB, free: 51.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/1.497, allocations: 27.94 kB / 0.7594 GB, free: 51.75 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * 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.0001681/1.498, allocations: 166.6 kB / 0.7596 GB, free: 51.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/1.498, allocations: 43.53 kB / 0.7596 GB, free: 51.53 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008048/1.499, allocations: 245.3 kB / 0.7599 GB, free: 51.29 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.607e-06/1.499, allocations: 15.89 kB / 0.7599 GB, free: 51.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.621e-06/1.499, allocations: 0 / 0.7599 GB, free: 51.27 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.587e-06/1.499, allocations: 0 / 0.7599 GB, free: 51.27 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004687/1.499, allocations: 337.8 kB / 0.7602 GB, free: 50.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.256e-06/1.499, allocations: 4 kB / 0.7602 GB, free: 50.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/1.499, allocations: 19.98 kB / 0.7602 GB, free: 50.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/1.499, allocations: 0 / 0.7602 GB, free: 50.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/1.499, allocations: 4 kB / 0.7602 GB, free: 50.88 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.315e-06/1.499, allocations: 0 / 0.7602 GB, free: 50.88 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.626e-06/1.499, allocations: 4 kB / 0.7602 GB, free: 50.87 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006484/1.5, allocations: 260.4 kB / 0.7605 GB, free: 50.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/1.5, allocations: 120.5 kB / 0.7606 GB, free: 50.46 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.08e-05/1.5, allocations: 4 kB / 0.7606 GB, free: 50.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/1.501, allocations: 19.88 kB / 0.7606 GB, free: 50.44 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-05/1.501, allocations: 11.98 kB / 0.7606 GB, free: 50.43 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.094e-05/1.501, allocations: 8 kB / 0.7606 GB, free: 50.42 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003728/1.501, allocations: 294.9 kB / 0.7609 GB, free: 50.13 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.76e-07/1.501, allocations: 0 / 0.7609 GB, free: 50.13 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001605/1.503, allocations: 447.2 kB / 0.7614 GB, free: 49.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 1 * 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.001314/1.504, allocations: 0.4933 MB / 0.7618 GB, free: 49.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0009988/1.505, allocations: 0.5839 MB / 0.7624 GB, free: 48.59 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.094e-06/1.505, allocations: 0 / 0.7624 GB, free: 48.59 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/1.505, allocations: 155.3 kB / 0.7626 GB, free: 48.43 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000783/1.506, allocations: 126.8 kB / 0.7627 GB, free: 48.31 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/1.507, allocations: 0.5782 MB / 0.7632 GB, free: 47.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/1.508, allocations: 0.8464 MB / 0.7641 GB, free: 46.82 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/1.508, allocations: 39.44 kB / 0.7641 GB, free: 46.78 MB / 474.7 MB Notification: Performance of SimCode: time 2.072e-06/1.508, allocations: 0 / 0.7641 GB, free: 46.78 MB / 474.7 MB Notification: Performance of Templates: time 0.01556/1.523, allocations: 9.396 MB / 0.7733 GB, free: 37.39 MB / 474.7 MB