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.TestValveCoefficients.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.TestValveCoefficients,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|SourceP4.ports.1..m_flow|SourceP4.ports.1..p|SourceP4.ports.1..h_outflow|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|SinkP4.ports.1..m_flow|SinkP4.ports.1..p|SinkP4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadModel(ModelicaTest): time 2.116/2.116, allocations: 234.9 MB / 250.5 MB, free: 9.656 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004399/0.00044, allocations: 12 kB / 314.4 MB, free: 9.664 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2945, allocations: 54.85 MB / 369.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.306/6.6, allocations: 2.608 GB / 2.968 GB, free: 121.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/6.6, allocations: 87.78 kB / 2.968 GB, free: 121.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.801/9.401, allocations: 0.6344 GB / 3.603 GB, free: 43.66 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.155e-06/9.401, allocations: 0 / 3.603 GB, free: 43.66 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001226/9.402, allocations: 42.23 kB / 3.603 GB, free: 43.65 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.009051/9.411, allocations: 2.579 MB / 3.605 GB, free: 42.24 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/9.411, allocations: 7.625 kB / 3.605 GB, free: 42.24 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0105/9.421, allocations: 0.9519 MB / 3.606 GB, free: 42.09 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002867/9.424, allocations: 1.064 MB / 3.607 GB, free: 41.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001442/9.424, allocations: 113.9 kB / 3.607 GB, free: 41.45 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002402/9.425, allocations: 109.7 kB / 3.607 GB, free: 41.41 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007412/9.432, allocations: 2.266 MB / 3.61 GB, free: 40.46 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.339e-05/9.432, allocations: 7.906 kB / 3.61 GB, free: 40.45 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002238/9.432, allocations: 61.8 kB / 3.61 GB, free: 40.41 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.05e-05/9.432, allocations: 33.36 kB / 3.61 GB, free: 40.41 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008038/9.44, allocations: 2.142 MB / 3.612 GB, free: 39.9 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01267/9.453, allocations: 10.07 MB / 3.622 GB, free: 31.73 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006006/9.459, allocations: 1.533 MB / 3.623 GB, free: 31.37 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04526/9.504, allocations: 17.03 MB / 3.64 GB, free: 21.79 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/9.505, allocations: 54.12 kB / 3.64 GB, free: 21.74 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=80): time 4.796e-06/9.505, allocations: 0 / 3.64 GB, free: 21.74 MB / 0.4948 GB Notification: Performance of matching and sorting (n=80): time 0.01015/9.515, allocations: 2.529 MB / 3.642 GB, free: 21.14 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.085e-05/9.515, allocations: 269.5 kB / 3.643 GB, free: 20.82 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/9.516, allocations: 0.8539 MB / 3.643 GB, free: 20.46 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001548/9.517, allocations: 41.61 kB / 3.643 GB, free: 20.42 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/9.517, allocations: 0.686 MB / 3.644 GB, free: 19.84 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002681/9.517, allocations: 271.7 kB / 3.644 GB, free: 19.63 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.236e-05/9.517, allocations: 27.19 kB / 3.644 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001049/9.517, allocations: 365.4 kB / 3.645 GB, free: 19.27 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00147/9.519, allocations: 472.8 kB / 3.645 GB, free: 19.14 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/9.52, allocations: 1.061 MB / 3.646 GB, free: 18.08 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/9.522, allocations: 0.5769 MB / 3.647 GB, free: 17.56 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-05/9.522, allocations: 4 kB / 3.647 GB, free: 17.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.003893/9.526, allocations: 1.542 MB / 3.648 GB, free: 16.19 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00141/9.527, allocations: 7.317 MB / 3.655 GB, free: 8.328 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.141e-05/9.527, allocations: 23.73 kB / 3.655 GB, free: 8.309 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.749e-05/9.527, allocations: 31.52 kB / 3.656 GB, free: 8.281 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/9.529, allocations: 393.6 kB / 3.656 GB, free: 7.949 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.741e-05/9.529, allocations: 42.2 kB / 3.656 GB, free: 7.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/9.531, allocations: 259.8 kB / 3.656 GB, free: 7.688 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/9.532, allocations: 86.33 kB / 3.656 GB, free: 7.609 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/9.532, allocations: 4 kB / 3.656 GB, free: 7.605 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003917/9.535, allocations: 1.446 MB / 3.658 GB, free: 6.336 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.323e-05/9.536, allocations: 19.94 kB / 3.658 GB, free: 6.316 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.287e-05/9.536, allocations: 34.53 kB / 3.658 GB, free: 6.285 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/9.537, allocations: 390.6 kB / 3.658 GB, free: 5.957 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.578e-05/9.537, allocations: 35.67 kB / 3.658 GB, free: 5.926 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001519/9.539, allocations: 210.4 kB / 3.658 GB, free: 5.746 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002162/9.539, allocations: 79.23 kB / 3.658 GB, free: 5.672 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.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 (167): * Single equations (assignments): 167 * 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.0009439/9.54, allocations: 413 kB / 3.659 GB, free: 5.266 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003315/9.54, allocations: 125.4 kB / 3.659 GB, free: 5.145 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007989/9.548, allocations: 5.945 MB / 3.665 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000112/9.548, allocations: 86.97 kB / 3.665 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.752e-06/9.548, allocations: 0 / 3.665 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.059e-05/9.549, allocations: 6.469 kB / 3.665 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004599/9.553, allocations: 2.767 MB / 3.668 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/9.553, allocations: 0 / 3.668 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/9.554, allocations: 250.8 kB / 3.668 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.317e-05/9.554, allocations: 11.94 kB / 3.668 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.372e-05/9.555, allocations: 31.94 kB / 3.668 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.043e-05/9.555, allocations: 7.703 kB / 3.668 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.935e-06/9.555, allocations: 0 / 3.668 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005299/9.56, allocations: 2.834 MB / 3.671 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/9.561, allocations: 0.5322 MB / 3.671 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000298/9.561, allocations: 20 kB / 3.671 GB, free: 10.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/9.563, allocations: 126.5 kB / 3.671 GB, free: 9.977 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/9.563, allocations: 82.28 kB / 3.671 GB, free: 9.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.377e-05/9.563, allocations: 39.8 kB / 3.671 GB, free: 9.895 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001608/9.564, allocations: 0.7493 MB / 3.672 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.8e-07/9.565, allocations: 0 / 3.672 GB, free: 9.273 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007707/9.572, allocations: 1.727 MB / 3.674 GB, free: 7.574 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * 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.009114/9.581, allocations: 1.936 MB / 3.676 GB, free: 6.121 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006647/9.588, allocations: 2.611 MB / 3.678 GB, free: 3.816 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/9.588, allocations: 448 / 3.678 GB, free: 3.816 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002589/9.591, allocations: 1.434 MB / 3.68 GB, free: 2.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003845/9.595, allocations: 0.5903 MB / 3.68 GB, free: 1.945 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6599/10.25, allocations: 127.4 MB / 3.805 GB, free: 42.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/10.26, allocations: 1.653 MB / 3.806 GB, free: 40.95 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005264/10.26, allocations: 136.3 kB / 3.806 GB, free: 40.84 MB / 0.5105 GB Notification: Performance of SimCode: time 2.768e-06/10.26, allocations: 0 / 3.806 GB, free: 40.84 MB / 0.5105 GB Notification: Performance of Templates: time 0.0722/10.33, allocations: 45.9 MB / 3.851 GB, free: 10.11 MB / 0.5105 GB