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.Pipes.StaticPipe.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.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.1_cpp_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadModel(ModelicaTest): time 1.878/1.878, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004524/0.0004524, allocations: 19.94 kB / 282.6 MB, free: 9.566 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2866, allocations: 48.69 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8154/1.102, allocations: 304.9 MB / 0.6212 GB, free: 110.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/1.102, allocations: 91.66 kB / 0.6213 GB, free: 110.1 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.297/1.399, allocations: 96.62 MB / 0.7157 GB, free: 62.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.354e-06/1.399, allocations: 0 / 0.7157 GB, free: 62.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.157e-05/1.399, allocations: 15.94 kB / 0.7157 GB, free: 62.55 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001744/1.401, allocations: 0.8826 MB / 0.7165 GB, free: 61.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/1.401, allocations: 8.031 kB / 0.7166 GB, free: 61.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003076/1.402, allocations: 55.44 kB / 0.7166 GB, free: 61.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009201/1.402, allocations: 481.2 kB / 0.7171 GB, free: 61.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/1.403, allocations: 20.56 kB / 0.7171 GB, free: 61.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.033e-05/1.403, allocations: 31.98 kB / 0.7171 GB, free: 60.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009076/1.404, allocations: 0.5077 MB / 0.7176 GB, free: 60.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/1.404, allocations: 0 / 0.7176 GB, free: 60.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-05/1.404, allocations: 12 kB / 0.7176 GB, free: 60.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.254e-05/1.404, allocations: 36.53 kB / 0.7177 GB, free: 60.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008395/1.405, allocations: 437.9 kB / 0.7181 GB, free: 59.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003384/1.408, allocations: 2.25 MB / 0.7203 GB, free: 57.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004411/1.408, allocations: 206.7 kB / 0.7205 GB, free: 57.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001282/1.41, allocations: 0.9945 MB / 0.7214 GB, free: 56.24 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/1.41, allocations: 141 kB / 0.7216 GB, free: 56.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 2.866e-06/1.41, allocations: 0 / 0.7216 GB, free: 56.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006324/1.411, allocations: 355.9 kB / 0.7219 GB, free: 55.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/1.411, allocations: 166.2 kB / 0.7221 GB, free: 55.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005839/1.411, allocations: 433 kB / 0.7225 GB, free: 55.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/1.411, allocations: 25.7 kB / 0.7225 GB, free: 55.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/1.412, allocations: 353.4 kB / 0.7228 GB, free: 54.69 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.787e-05/1.412, allocations: 47.39 kB / 0.7229 GB, free: 54.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.44e-05/1.412, allocations: 8 kB / 0.7229 GB, free: 54.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.19e-05/1.412, allocations: 322.8 kB / 0.7232 GB, free: 54.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/1.412, allocations: 108.8 kB / 0.7233 GB, free: 54.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/1.412, allocations: 318.4 kB / 0.7236 GB, free: 53.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/1.413, allocations: 197.5 kB / 0.7238 GB, free: 53.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.248e-06/1.413, allocations: 4 kB / 0.7238 GB, free: 53.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009129/1.414, allocations: 490.5 kB / 0.7243 GB, free: 53.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005348/1.414, allocations: 2.814 MB / 0.727 GB, free: 50.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/1.414, allocations: 8 kB / 0.727 GB, free: 50.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.585e-05/1.414, allocations: 12 kB / 0.727 GB, free: 50.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003714/1.415, allocations: 83.83 kB / 0.7271 GB, free: 49.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.487e-05/1.415, allocations: 16 kB / 0.7271 GB, free: 49.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005402/1.415, allocations: 59.42 kB / 0.7272 GB, free: 49.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.954e-05/1.415, allocations: 31.98 kB / 0.7272 GB, free: 49.85 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.892e-06/1.415, allocations: 4 kB / 0.7272 GB, free: 49.84 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008235/1.416, allocations: 449.7 kB / 0.7277 GB, free: 49.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/1.416, allocations: 8 kB / 0.7277 GB, free: 49.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/1.416, allocations: 16.06 kB / 0.7277 GB, free: 49.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/1.416, allocations: 87.83 kB / 0.7278 GB, free: 49.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/1.416, allocations: 15.94 kB / 0.7278 GB, free: 49.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003381/1.417, allocations: 43.61 kB / 0.7278 GB, free: 49.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.587e-05/1.417, allocations: 24 kB / 0.7278 GB, free: 49.21 MB / 426.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * Number of discrete states: 0 () * Number of clocked 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.0003401/1.417, allocations: 310.5 kB / 0.7281 GB, free: 48.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.677e-05/1.417, allocations: 43.53 kB / 0.7282 GB, free: 48.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005956/1.418, allocations: 287.5 kB / 0.7285 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.197e-06/1.418, allocations: 4.047 kB / 0.7285 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.953e-06/1.418, allocations: 3.984 kB / 0.7285 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.816e-06/1.418, allocations: 0 / 0.7285 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004496/1.418, allocations: 377.2 kB / 0.7288 GB, free: 48.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.974e-06/1.418, allocations: 8 kB / 0.7288 GB, free: 48.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/1.419, allocations: 15.98 kB / 0.7288 GB, free: 48.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.632e-06/1.419, allocations: 0 / 0.7288 GB, free: 48.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/1.419, allocations: 7.938 kB / 0.7289 GB, free: 48.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.162e-06/1.419, allocations: 0 / 0.7289 GB, free: 48.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.787e-06/1.419, allocations: 4 kB / 0.7289 GB, free: 48.09 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004832/1.419, allocations: 279.7 kB / 0.7291 GB, free: 47.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/1.419, allocations: 128.5 kB / 0.7292 GB, free: 47.65 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-05/1.419, allocations: 12 kB / 0.7293 GB, free: 47.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002897/1.42, allocations: 15.92 kB / 0.7293 GB, free: 47.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/1.42, allocations: 11.98 kB / 0.7293 GB, free: 47.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/1.42, allocations: 8 kB / 0.7293 GB, free: 47.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004327/1.42, allocations: 330.9 kB / 0.7296 GB, free: 47.29 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.23e-07/1.42, allocations: 3.938 kB / 0.7296 GB, free: 47.28 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001592/1.422, allocations: 451.3 kB / 0.73 GB, free: 46.84 MB / 426.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: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * 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.001293/1.423, allocations: 0.4918 MB / 0.7305 GB, free: 46.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009781/1.424, allocations: 0.5718 MB / 0.7311 GB, free: 45.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.41e-06/1.424, allocations: 320 / 0.7311 GB, free: 45.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001583/1.424, allocations: 139.6 kB / 0.7312 GB, free: 45.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008082/1.425, allocations: 152.3 kB / 0.7314 GB, free: 45.46 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/1.427, allocations: 1.011 MB / 0.7323 GB, free: 44.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/1.427, allocations: 0.8428 MB / 0.7332 GB, free: 43.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/1.427, allocations: 35.44 kB / 0.7332 GB, free: 43.5 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/1.427, allocations: 4 kB / 0.7332 GB, free: 43.5 MB / 426.7 MB Notification: Performance of Templates: time 0.01542/1.443, allocations: 9.387 MB / 0.7424 GB, free: 34.13 MB / 426.7 MB