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.Valves.TestValveLinear.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear") Notification: Performance of loadModel(ModelicaTest): time 2.085/2.085, allocations: 234.9 MB / 250.5 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004416/0.0004418, allocations: 12 kB / 314.4 MB, free: 9.582 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2938, allocations: 54.85 MB / 369.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.156/6.45, allocations: 2.587 GB / 2.948 GB, free: 119.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/6.45, allocations: 82.81 kB / 2.948 GB, free: 119.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8889/7.339, allocations: 216.2 MB / 3.159 GB, free: 85.62 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.904e-06/7.339, allocations: 0 / 3.159 GB, free: 85.62 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.767e-05/7.339, allocations: 6.812 kB / 3.159 GB, free: 85.62 MB / 490.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.0043/7.343, allocations: 1.217 MB / 3.16 GB, free: 84.95 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/7.343, allocations: 10.88 kB / 3.16 GB, free: 84.95 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002136/7.346, allocations: 223.7 kB / 3.161 GB, free: 84.92 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006448/7.346, allocations: 395.7 kB / 3.161 GB, free: 84.62 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.05e-05/7.346, allocations: 25.7 kB / 3.161 GB, free: 84.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.855e-05/7.346, allocations: 29.88 kB / 3.161 GB, free: 84.6 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001809/7.348, allocations: 0.6111 MB / 3.162 GB, free: 84.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/7.348, allocations: 2.781 kB / 3.162 GB, free: 84.34 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.242e-05/7.348, allocations: 11.09 kB / 3.162 GB, free: 84.33 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/7.348, allocations: 8.719 kB / 3.162 GB, free: 84.33 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001949/7.35, allocations: 0.5855 MB / 3.162 GB, free: 84.2 MB / 490.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.002735/7.353, allocations: 2.537 MB / 3.165 GB, free: 82.03 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001897/7.355, allocations: 477.3 kB / 3.165 GB, free: 81.91 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1277/7.483, allocations: 51.35 MB / 3.215 GB, free: 52.24 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/7.483, allocations: 30.56 kB / 3.215 GB, free: 52.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.234e-06/7.483, allocations: 0 / 3.215 GB, free: 52.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.003595/7.486, allocations: 0.8343 MB / 3.216 GB, free: 51.99 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/7.486, allocations: 110.6 kB / 3.216 GB, free: 51.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/7.487, allocations: 250 kB / 3.217 GB, free: 51.72 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/7.487, allocations: 29.7 kB / 3.217 GB, free: 51.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/7.487, allocations: 280.1 kB / 3.217 GB, free: 51.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.909e-05/7.487, allocations: 85.97 kB / 3.217 GB, free: 51.37 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/7.487, allocations: 8 kB / 3.217 GB, free: 51.36 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.807e-05/7.487, allocations: 325.8 kB / 3.217 GB, free: 51.04 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000546/7.488, allocations: 159 kB / 3.217 GB, free: 51 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005823/7.488, allocations: 269.5 kB / 3.218 GB, free: 50.81 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005659/7.489, allocations: 183.8 kB / 3.218 GB, free: 50.75 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.6e-06/7.489, allocations: 0 / 3.218 GB, free: 50.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001362/7.49, allocations: 466.8 kB / 3.218 GB, free: 50.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/7.49, allocations: 6.469 kB / 3.218 GB, free: 50.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/7.49, allocations: 3.812 kB / 3.218 GB, free: 50.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/7.49, allocations: 11.59 kB / 3.218 GB, free: 50.58 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004431/7.491, allocations: 114.6 kB / 3.218 GB, free: 50.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/7.491, allocations: 3.812 kB / 3.218 GB, free: 50.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/7.491, allocations: 75.3 kB / 3.218 GB, free: 50.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/7.491, allocations: 19.59 kB / 3.219 GB, free: 50.53 MB / 490.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 () * Number of clocked 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.0002173/7.492, allocations: 163.5 kB / 3.219 GB, free: 50.38 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.482e-05/7.492, allocations: 31.06 kB / 3.219 GB, free: 50.37 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002598/7.494, allocations: 1.933 MB / 3.221 GB, free: 49.49 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.992e-05/7.494, allocations: 29.84 kB / 3.221 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.602e-06/7.494, allocations: 3.938 kB / 3.221 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.604e-06/7.494, allocations: 0 / 3.221 GB, free: 49.48 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/7.495, allocations: 0.9853 MB / 3.222 GB, free: 48.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/7.495, allocations: 0 / 3.222 GB, free: 48.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004418/7.496, allocations: 94.69 kB / 3.222 GB, free: 48.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.909e-06/7.496, allocations: 0 / 3.222 GB, free: 48.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/7.496, allocations: 11.16 kB / 3.222 GB, free: 48.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.381e-06/7.496, allocations: 0 / 3.222 GB, free: 48.89 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.932e-06/7.496, allocations: 3.969 kB / 3.222 GB, free: 48.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/7.498, allocations: 1.108 MB / 3.223 GB, free: 48.35 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/7.498, allocations: 215.4 kB / 3.223 GB, free: 48.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.597e-05/7.498, allocations: 4 kB / 3.223 GB, free: 48.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004486/7.499, allocations: 48.53 kB / 3.223 GB, free: 48.15 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.251e-05/7.499, allocations: 36.89 kB / 3.223 GB, free: 48.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/7.499, allocations: 11.59 kB / 3.223 GB, free: 48.14 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003138/7.499, allocations: 263.2 kB / 3.223 GB, free: 48 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.45e-07/7.499, allocations: 0 / 3.223 GB, free: 48 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003848/7.503, allocations: 1.009 MB / 3.224 GB, free: 47.79 MB / 490.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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.00622/7.509, allocations: 1.365 MB / 3.226 GB, free: 47.46 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001408/7.511, allocations: 0.6262 MB / 3.226 GB, free: 47.25 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.16e-06/7.511, allocations: 3.219 kB / 3.226 GB, free: 47.25 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000777/7.511, allocations: 0.52 MB / 3.227 GB, free: 47.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/7.513, allocations: 173.7 kB / 3.227 GB, free: 46.97 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4438/7.956, allocations: 77.13 MB / 3.302 GB, free: 76.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/7.957, allocations: 0.9812 MB / 3.303 GB, free: 75.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/7.957, allocations: 41.58 kB / 3.303 GB, free: 75.49 MB / 490.7 MB Notification: Performance of SimCode: time 1.517e-06/7.957, allocations: 0 / 3.303 GB, free: 75.49 MB / 490.7 MB Notification: Performance of Templates: time 0.04284/8, allocations: 26.42 MB / 3.329 GB, free: 74.26 MB / 490.7 MB