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.Valves.TestValveLinear.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.Valves.TestValveLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadModel(ModelicaTest): time 1.982/1.982, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.619e-05/1.623e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2651, allocations: 48.68 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.876/6.142, allocations: 2.476 GB / 2.789 GB, free: 114.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/6.142, allocations: 91.94 kB / 2.789 GB, free: 114 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8574/6.999, allocations: 209 MB / 2.993 GB, free: 56.33 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.021e-06/6.999, allocations: 0 / 2.993 GB, free: 56.33 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.963e-05/6.999, allocations: 11.22 kB / 2.993 GB, free: 56.33 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004326/7.004, allocations: 1.154 MB / 2.994 GB, free: 55.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/7.004, allocations: 11.66 kB / 2.994 GB, free: 55.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002287/7.006, allocations: 212.7 kB / 2.994 GB, free: 55.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007584/7.007, allocations: 390.3 kB / 2.994 GB, free: 55.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/7.007, allocations: 14.28 kB / 2.994 GB, free: 55.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.026e-05/7.007, allocations: 21.84 kB / 2.994 GB, free: 55.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000678/7.008, allocations: 300.7 kB / 2.995 GB, free: 55.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007055/7.008, allocations: 380.3 kB / 2.995 GB, free: 54.92 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/7.008, allocations: 3.406 kB / 2.995 GB, free: 54.92 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.966e-05/7.008, allocations: 0 / 2.995 GB, free: 54.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/7.008, allocations: 9.844 kB / 2.995 GB, free: 54.92 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.005804/7.014, allocations: 3.871 MB / 2.999 GB, free: 51.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/7.015, allocations: 225 kB / 2.999 GB, free: 51.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/7.015, allocations: 115.7 kB / 2.999 GB, free: 51.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1129/7.128, allocations: 50.2 MB / 3.048 GB, free: 4.301 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/7.128, allocations: 34.52 kB / 3.048 GB, free: 4.258 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 4.232e-06/7.128, allocations: 0 / 3.048 GB, free: 4.258 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.002125/7.13, allocations: 0.5046 MB / 3.049 GB, free: 3.746 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/7.13, allocations: 110.8 kB / 3.049 GB, free: 3.613 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002946/7.131, allocations: 237.1 kB / 3.049 GB, free: 3.383 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.079e-05/7.131, allocations: 25.7 kB / 3.049 GB, free: 3.352 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/7.131, allocations: 282 kB / 3.049 GB, free: 3.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.638e-05/7.131, allocations: 74.84 kB / 3.049 GB, free: 2.996 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.858e-05/7.131, allocations: 0 / 3.049 GB, free: 2.996 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.936e-05/7.131, allocations: 330.8 kB / 3.05 GB, free: 2.664 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/7.131, allocations: 84.64 kB / 3.05 GB, free: 2.578 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/7.131, allocations: 205.6 kB / 3.05 GB, free: 2.324 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008338/7.132, allocations: 171.9 kB / 3.05 GB, free: 2.156 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.454e-06/7.132, allocations: 0 / 3.05 GB, free: 2.156 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001313/7.134, allocations: 369.3 kB / 3.051 GB, free: 1.789 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/7.134, allocations: 4 kB / 3.051 GB, free: 1.785 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.509e-06/7.134, allocations: 4 kB / 3.051 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.586e-05/7.134, allocations: 11.95 kB / 3.051 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/7.134, allocations: 103.9 kB / 3.051 GB, free: 1.668 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/7.134, allocations: 16.09 kB / 3.051 GB, free: 1.652 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/7.135, allocations: 63.62 kB / 3.051 GB, free: 1.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.531e-05/7.135, allocations: 24 kB / 3.051 GB, free: 1.566 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001051/7.135, allocations: 112 kB / 3.051 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.48e-05/7.135, allocations: 35.56 kB / 3.051 GB, free: 1.418 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/7.137, allocations: 1.624 MB / 3.053 GB, free: 15.78 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.916e-05/7.137, allocations: 27.95 kB / 3.053 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.031e-06/7.137, allocations: 3.953 kB / 3.053 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.743e-06/7.137, allocations: 3.984 kB / 3.053 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001312/7.139, allocations: 0.8154 MB / 3.053 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.631e-06/7.139, allocations: 0 / 3.053 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/7.139, allocations: 87.88 kB / 3.053 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.496e-06/7.139, allocations: 0 / 3.053 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.74e-05/7.139, allocations: 11.98 kB / 3.053 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.42e-06/7.139, allocations: 0 / 3.053 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.243e-06/7.139, allocations: 4 kB / 3.053 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/7.141, allocations: 0.9226 MB / 3.054 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002719/7.141, allocations: 207.7 kB / 3.055 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.262e-05/7.142, allocations: 0 / 3.055 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004356/7.142, allocations: 43.88 kB / 3.055 GB, free: 13.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001149/7.142, allocations: 36.22 kB / 3.055 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.655e-05/7.142, allocations: 8 kB / 3.055 GB, free: 13.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000424/7.143, allocations: 263 kB / 3.055 GB, free: 13.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.32e-07/7.143, allocations: 0 / 3.055 GB, free: 13.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004262/7.147, allocations: 0.9794 MB / 3.056 GB, free: 12.32 MB / 442.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: 16 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.007852/7.155, allocations: 1.434 MB / 3.057 GB, free: 10.97 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001005/7.156, allocations: 470.2 kB / 3.058 GB, free: 10.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.648e-06/7.156, allocations: 0 / 3.058 GB, free: 10.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006358/7.157, allocations: 421.1 kB / 3.058 GB, free: 10.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/7.158, allocations: 173.7 kB / 3.058 GB, free: 9.938 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3958/7.554, allocations: 54.36 MB / 3.111 GB, free: 75.67 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/7.554, allocations: 0.9647 MB / 3.112 GB, free: 74.96 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/7.554, allocations: 42.2 kB / 3.112 GB, free: 74.95 MB / 442.7 MB Notification: Performance of SimCode: time 1.931e-06/7.554, allocations: 0 / 3.112 GB, free: 74.95 MB / 442.7 MB Notification: Performance of Templates: time 0.04403/7.598, allocations: 26.51 MB / 3.138 GB, free: 72.06 MB / 442.7 MB