Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.514/2.514, allocations: 234.9 MB / 251.1 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004523/0.0004523, allocations: 12 kB / 314.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3474, allocations: 54.88 MB / 369.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.559/7.906, allocations: 2.608 GB / 2.969 GB, free: 89.71 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/7.906, allocations: 86.7 kB / 2.969 GB, free: 89.66 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.191/11.1, allocations: 0.6344 GB / 3.603 GB, free: 31.39 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.484e-06/11.1, allocations: 2.969 kB / 3.603 GB, free: 31.39 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001162/11.1, allocations: 44.86 kB / 3.603 GB, free: 31.38 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.0112/11.11, allocations: 2.58 MB / 3.606 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/11.11, allocations: 7.875 kB / 3.606 GB, free: 29.66 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01097/11.12, allocations: 0.9469 MB / 3.607 GB, free: 28.75 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003421/11.12, allocations: 1.067 MB / 3.608 GB, free: 27.66 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/11.12, allocations: 101.8 kB / 3.608 GB, free: 27.56 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003406/11.12, allocations: 119.9 kB / 3.608 GB, free: 27.44 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008846/11.13, allocations: 2.278 MB / 3.61 GB, free: 25.02 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.777e-05/11.13, allocations: 7.938 kB / 3.61 GB, free: 25.01 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002628/11.13, allocations: 56 kB / 3.61 GB, free: 24.96 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.987e-05/11.13, allocations: 32 kB / 3.61 GB, free: 24.93 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00999/11.14, allocations: 2.144 MB / 3.612 GB, free: 22.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01598/11.16, allocations: 10.07 MB / 3.622 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006961/11.17, allocations: 1.53 MB / 3.624 GB, free: 10.53 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06572/11.23, allocations: 17.03 MB / 3.64 GB, free: 8.109 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.462e-05/11.23, allocations: 47.16 kB / 3.64 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=80): time 4.148e-06/11.23, allocations: 0 / 3.64 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of matching and sorting (n=80): time 0.0139/11.25, allocations: 2.53 MB / 3.643 GB, free: 5.516 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/11.25, allocations: 269.7 kB / 3.643 GB, free: 5.191 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00232/11.25, allocations: 0.9805 MB / 3.644 GB, free: 4.195 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002534/11.25, allocations: 37.7 kB / 3.644 GB, free: 4.152 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007079/11.25, allocations: 0.6893 MB / 3.645 GB, free: 3.461 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004979/11.25, allocations: 269.6 kB / 3.645 GB, free: 3.199 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/11.25, allocations: 24 kB / 3.645 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002067/11.25, allocations: 366.7 kB / 3.645 GB, free: 2.809 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002236/11.25, allocations: 471.7 kB / 3.646 GB, free: 2.348 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002839/11.26, allocations: 1.067 MB / 3.647 GB, free: 1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/11.26, allocations: 0.5837 MB / 3.647 GB, free: 432 kB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.401e-05/11.26, allocations: 4 kB / 3.647 GB, free: 428 kB / 0.5105 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.4089/11.67, allocations: 1.531 MB / 3.649 GB, free: 56.05 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004893/11.67, allocations: 0.6327 MB / 3.65 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.92e-05/11.67, allocations: 19.2 kB / 3.65 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.482e-05/11.67, allocations: 29.16 kB / 3.65 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002745/11.67, allocations: 396 kB / 3.65 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.919e-05/11.67, allocations: 40.06 kB / 3.65 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002744/11.67, allocations: 272 kB / 3.65 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003178/11.67, allocations: 84.22 kB / 3.65 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/11.67, allocations: 4.438 kB / 3.65 GB, free: 55.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005693/11.68, allocations: 1.446 MB / 3.652 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.317e-05/11.68, allocations: 18.78 kB / 3.652 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.367e-05/11.68, allocations: 31 kB / 3.652 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002479/11.68, allocations: 390.9 kB / 3.652 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-05/11.68, allocations: 40.67 kB / 3.652 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/11.68, allocations: 208.4 kB / 3.652 GB, free: 55.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/11.68, allocations: 84.44 kB / 3.653 GB, free: 55.29 MB / 0.5105 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.001071/11.69, allocations: 412 kB / 3.653 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003885/11.69, allocations: 122.9 kB / 3.653 GB, free: 55.11 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/11.7, allocations: 5.936 MB / 3.659 GB, free: 54.62 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.25e-05/11.7, allocations: 84.36 kB / 3.659 GB, free: 54.62 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/11.7, allocations: 6.469 kB / 3.659 GB, free: 54.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-05/11.7, allocations: 7.391 kB / 3.659 GB, free: 54.62 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00452/11.7, allocations: 2.768 MB / 3.662 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.118e-05/11.7, allocations: 3.312 kB / 3.662 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/11.7, allocations: 259.4 kB / 3.662 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.307e-05/11.7, allocations: 3.812 kB / 3.662 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/11.7, allocations: 25.08 kB / 3.662 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/11.7, allocations: 3.812 kB / 3.662 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/11.7, allocations: 4.125 kB / 3.662 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0056/11.71, allocations: 2.836 MB / 3.665 GB, free: 53.89 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00119/11.71, allocations: 0.5274 MB / 3.665 GB, free: 53.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003719/11.71, allocations: 20.75 kB / 3.665 GB, free: 53.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/11.71, allocations: 128.9 kB / 3.665 GB, free: 53.64 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/11.71, allocations: 85.06 kB / 3.665 GB, free: 53.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.114e-05/11.71, allocations: 36.34 kB / 3.665 GB, free: 53.64 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001555/11.71, allocations: 0.7486 MB / 3.666 GB, free: 53.53 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.21e-07/11.71, allocations: 0 / 3.666 GB, free: 53.53 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008558/11.72, allocations: 1.73 MB / 3.668 GB, free: 53.42 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.0173/11.74, allocations: 1.938 MB / 3.67 GB, free: 53.23 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01448/11.75, allocations: 2.603 MB / 3.672 GB, free: 53.19 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/11.75, allocations: 0 / 3.672 GB, free: 53.19 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005371/11.76, allocations: 1.436 MB / 3.674 GB, free: 53.18 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006894/11.77, allocations: 0.5883 MB / 3.674 GB, free: 53.16 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3544/12.12, allocations: 127.4 MB / 3.799 GB, free: 23.85 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/12.12, allocations: 1.653 MB / 3.8 GB, free: 22.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006458/12.12, allocations: 134.6 kB / 3.8 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of SimCode: time 1.443e-06/12.12, allocations: 0 / 3.8 GB, free: 22.39 MB / 0.5105 GB Notification: Performance of Templates: time 0.5129/12.64, allocations: 45.9 MB / 3.845 GB, free: 63.5 MB / 0.5261 GB