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/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.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.835/1.835, allocations: 209.2 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004393/0.0004395, allocations: 8 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2853, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.837/6.122, allocations: 2.477 GB / 2.8 GB, free: 63.09 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/6.123, allocations: 83.95 kB / 2.8 GB, free: 63.01 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8429/6.966, allocations: 212.3 MB / 3.008 GB, free: 16.56 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.56e-06/6.966, allocations: 0 / 3.008 GB, free: 16.56 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.022e-05/6.966, allocations: 11.98 kB / 3.008 GB, free: 16.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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004355/6.97, allocations: 1.198 MB / 3.009 GB, free: 15.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/6.97, allocations: 12.03 kB / 3.009 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002175/6.972, allocations: 207.7 kB / 3.009 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007324/6.973, allocations: 394.7 kB / 3.009 GB, free: 14.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.408e-05/6.973, allocations: 28.59 kB / 3.009 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/6.973, allocations: 28 kB / 3.009 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/6.975, allocations: 0.6104 MB / 3.01 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/6.975, allocations: 0 / 3.01 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.596e-05/6.975, allocations: 15.98 kB / 3.01 GB, free: 13.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.952e-06/6.975, allocations: 8 kB / 3.01 GB, free: 13.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001975/6.977, allocations: 0.5836 MB / 3.011 GB, free: 13.35 MB / 426.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.002721/6.98, allocations: 2.539 MB / 3.013 GB, free: 10.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001788/6.982, allocations: 466.2 kB / 3.014 GB, free: 10.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3706/7.353, allocations: 51.3 MB / 3.064 GB, free: 33.19 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/7.353, allocations: 35.47 kB / 3.064 GB, free: 33.15 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 3.587e-06/7.353, allocations: 2.969 kB / 3.064 GB, free: 33.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.003464/7.356, allocations: 0.8282 MB / 3.065 GB, free: 33.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/7.356, allocations: 109.2 kB / 3.065 GB, free: 32.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003525/7.357, allocations: 249 kB / 3.065 GB, free: 32.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/7.357, allocations: 32.23 kB / 3.065 GB, free: 32.85 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/7.357, allocations: 272.2 kB / 3.065 GB, free: 32.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.072e-05/7.357, allocations: 89.58 kB / 3.065 GB, free: 32.63 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/7.357, allocations: 6.906 kB / 3.065 GB, free: 32.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.026e-05/7.357, allocations: 329.7 kB / 3.066 GB, free: 32.31 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004896/7.357, allocations: 155.8 kB / 3.066 GB, free: 32.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005743/7.358, allocations: 277.9 kB / 3.066 GB, free: 32.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005707/7.359, allocations: 176.9 kB / 3.066 GB, free: 32.15 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.923e-06/7.359, allocations: 8.219 kB / 3.066 GB, free: 32.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001379/7.36, allocations: 463.2 kB / 3.067 GB, free: 32.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/7.36, allocations: 9.344 kB / 3.067 GB, free: 32.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.563e-06/7.36, allocations: 3.969 kB / 3.067 GB, free: 32.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/7.36, allocations: 15.09 kB / 3.067 GB, free: 32.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/7.361, allocations: 104.7 kB / 3.067 GB, free: 32.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/7.361, allocations: 6.25 kB / 3.067 GB, free: 32.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005048/7.361, allocations: 72.53 kB / 3.067 GB, free: 32.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/7.361, allocations: 22.23 kB / 3.067 GB, free: 32.07 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 () * 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.000236/7.361, allocations: 164 kB / 3.067 GB, free: 31.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.918e-05/7.362, allocations: 29.81 kB / 3.067 GB, free: 31.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002906/7.364, allocations: 1.93 MB / 3.069 GB, free: 31.74 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.18e-05/7.365, allocations: 33.86 kB / 3.069 GB, free: 31.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.865e-06/7.365, allocations: 1.641 kB / 3.069 GB, free: 31.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.118e-06/7.365, allocations: 3.516 kB / 3.069 GB, free: 31.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/7.366, allocations: 0.9782 MB / 3.07 GB, free: 31.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.117e-06/7.366, allocations: 0 / 3.07 GB, free: 31.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004631/7.366, allocations: 88.97 kB / 3.07 GB, free: 31.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.2e-06/7.366, allocations: 3.906 kB / 3.07 GB, free: 31.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/7.366, allocations: 11.5 kB / 3.07 GB, free: 31.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.792e-06/7.366, allocations: 10.62 kB / 3.07 GB, free: 31.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/7.366, allocations: 3.953 kB / 3.07 GB, free: 31.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/7.368, allocations: 1.106 MB / 3.071 GB, free: 31.26 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/7.368, allocations: 209.5 kB / 3.071 GB, free: 31.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.826e-05/7.368, allocations: 7.219 kB / 3.071 GB, free: 31.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004383/7.369, allocations: 49.61 kB / 3.071 GB, free: 31.12 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.782e-05/7.369, allocations: 29.67 kB / 3.071 GB, free: 31.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-05/7.369, allocations: 18.64 kB / 3.071 GB, free: 31.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003349/7.369, allocations: 264.5 kB / 3.072 GB, free: 31.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.09e-07/7.369, allocations: 0 / 3.072 GB, free: 31.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003973/7.373, allocations: 0.9964 MB / 3.073 GB, free: 31.03 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: 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.006782/7.38, allocations: 1.363 MB / 3.074 GB, free: 30.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001439/7.382, allocations: 0.6216 MB / 3.075 GB, free: 30.86 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.693e-06/7.382, allocations: 0 / 3.075 GB, free: 30.86 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000808/7.383, allocations: 0.5264 MB / 3.075 GB, free: 30.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/7.384, allocations: 178.1 kB / 3.075 GB, free: 30.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1761/7.56, allocations: 75.86 MB / 3.149 GB, free: 14.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/7.56, allocations: 0.9772 MB / 3.15 GB, free: 13.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/7.56, allocations: 43.12 kB / 3.15 GB, free: 13.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/7.56, allocations: 0 / 3.15 GB, free: 13.25 MB / 426.7 MB Notification: Performance of Templates: time 0.04373/7.604, allocations: 26.27 MB / 3.176 GB, free: 11.14 MB / 442.7 MB