Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients") Notification: Performance of loadModel(ModelicaTest): time 2.081/2.081, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004173/0.0004173, allocations: 8 kB / 283.1 MB, free: 9.684 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3486, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.064/7.413, allocations: 2.497 GB / 2.821 GB, free: 24.33 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003261/7.413, allocations: 93.69 kB / 2.821 GB, free: 24.28 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.367/10.78, allocations: 0.6205 GB / 3.442 GB, free: 32.35 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.895e-06/10.78, allocations: 3.188 kB / 3.442 GB, free: 32.35 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001227/10.78, allocations: 39.91 kB / 3.442 GB, free: 32.34 MB / 458.7 MB 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.01065/10.79, allocations: 2.494 MB / 3.444 GB, free: 31.11 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/10.79, allocations: 10.31 kB / 3.444 GB, free: 31.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01033/10.8, allocations: 0.9007 MB / 3.445 GB, free: 31.03 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003189/10.8, allocations: 1.06 MB / 3.446 GB, free: 30.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/10.8, allocations: 103.3 kB / 3.446 GB, free: 30.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002434/10.81, allocations: 115.1 kB / 3.446 GB, free: 30.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008106/10.81, allocations: 2.277 MB / 3.448 GB, free: 30.25 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.064e-05/10.81, allocations: 15.34 kB / 3.448 GB, free: 30.25 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002215/10.81, allocations: 60.06 kB / 3.448 GB, free: 30.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.361e-05/10.81, allocations: 30.28 kB / 3.449 GB, free: 30.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009013/10.82, allocations: 2.149 MB / 3.451 GB, free: 30.23 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01611/10.84, allocations: 10.07 MB / 3.46 GB, free: 23.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006888/10.85, allocations: 1.536 MB / 3.462 GB, free: 23.26 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06296/10.91, allocations: 17.01 MB / 3.479 GB, free: 14.55 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.713e-05/10.91, allocations: 44.81 kB / 3.479 GB, free: 14.51 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 3.907e-06/10.91, allocations: 0 / 3.479 GB, free: 14.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=80): time 0.01187/10.92, allocations: 2.54 MB / 3.481 GB, free: 14.36 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001148/10.92, allocations: 267.7 kB / 3.481 GB, free: 14.05 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/10.92, allocations: 0.9787 MB / 3.482 GB, free: 13.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001337/10.92, allocations: 42.92 kB / 3.482 GB, free: 13.84 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004836/10.92, allocations: 0.682 MB / 3.483 GB, free: 13.42 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000277/10.92, allocations: 276.5 kB / 3.483 GB, free: 13.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.621e-05/10.92, allocations: 25.25 kB / 3.483 GB, free: 13.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/10.92, allocations: 359.4 kB / 3.484 GB, free: 12.94 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001778/10.93, allocations: 469.7 kB / 3.484 GB, free: 12.93 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002085/10.93, allocations: 1.067 MB / 3.485 GB, free: 12.16 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002012/10.93, allocations: 0.5936 MB / 3.486 GB, free: 12.11 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/10.93, allocations: 3.875 kB / 3.486 GB, free: 12.11 MB / 458.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.00498/10.93, allocations: 1.533 MB / 3.487 GB, free: 11.9 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003853/10.94, allocations: 0.6322 MB / 3.488 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/10.94, allocations: 19.38 kB / 3.488 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.439e-05/10.94, allocations: 31.81 kB / 3.488 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002344/10.94, allocations: 395.8 kB / 3.488 GB, free: 11.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.916e-05/10.94, allocations: 36 kB / 3.488 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002346/10.94, allocations: 268.8 kB / 3.489 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001695/10.94, allocations: 87.44 kB / 3.489 GB, free: 10.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/10.94, allocations: 3.656 kB / 3.489 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004668/10.94, allocations: 1.443 MB / 3.49 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/10.95, allocations: 18.59 kB / 3.49 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.297e-05/10.95, allocations: 30.31 kB / 3.49 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/10.95, allocations: 389.1 kB / 3.49 GB, free: 10.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.886e-05/10.95, allocations: 39.88 kB / 3.49 GB, free: 10.79 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/10.95, allocations: 212.3 kB / 3.491 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/10.95, allocations: 85.2 kB / 3.491 GB, free: 10.73 MB / 458.7 MB 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.00137/10.95, allocations: 413.7 kB / 3.491 GB, free: 26.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003552/10.95, allocations: 123.5 kB / 3.491 GB, free: 26.44 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00982/10.96, allocations: 5.933 MB / 3.497 GB, free: 25.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.289e-05/10.96, allocations: 91.39 kB / 3.497 GB, free: 25.79 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/10.96, allocations: 0 / 3.497 GB, free: 25.79 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.957e-05/10.96, allocations: 6.844 kB / 3.497 GB, free: 25.79 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004224/10.97, allocations: 2.771 MB / 3.5 GB, free: 25.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/10.97, allocations: 0 / 3.5 GB, free: 25.41 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/10.97, allocations: 258.4 kB / 3.5 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.211e-05/10.97, allocations: 3.75 kB / 3.5 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.757e-05/10.97, allocations: 23.36 kB / 3.5 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.687e-06/10.97, allocations: 7.531 kB / 3.5 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/10.97, allocations: 0 / 3.5 GB, free: 25.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005179/10.97, allocations: 2.834 MB / 3.503 GB, free: 24.18 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/10.97, allocations: 0.536 MB / 3.503 GB, free: 23.79 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003016/10.97, allocations: 19.59 kB / 3.503 GB, free: 23.78 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/10.98, allocations: 125.3 kB / 3.504 GB, free: 23.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/10.98, allocations: 83.09 kB / 3.504 GB, free: 23.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-05/10.98, allocations: 37 kB / 3.504 GB, free: 23.72 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001574/10.98, allocations: 0.7536 MB / 3.504 GB, free: 23.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.81e-07/10.98, allocations: 3.062 kB / 3.504 GB, free: 23.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008254/10.99, allocations: 1.725 MB / 3.506 GB, free: 23.08 MB / 474.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: 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.01083/11, allocations: 1.931 MB / 3.508 GB, free: 22.58 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007499/11, allocations: 2.611 MB / 3.511 GB, free: 21.72 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.969e-06/11, allocations: 0 / 3.511 GB, free: 21.72 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/11.01, allocations: 1.437 MB / 3.512 GB, free: 21.06 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005451/11.01, allocations: 0.5866 MB / 3.513 GB, free: 20.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6944/11.71, allocations: 125.4 MB / 3.635 GB, free: 33.43 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/11.71, allocations: 1.653 MB / 3.637 GB, free: 32.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006306/11.71, allocations: 136.4 kB / 3.637 GB, free: 32.66 MB / 474.7 MB Notification: Performance of SimCode: time 8.81e-07/11.71, allocations: 0 / 3.637 GB, free: 32.66 MB / 474.7 MB Notification: Performance of Templates: time 0.09319/11.8, allocations: 45.74 MB / 3.681 GB, free: 22.81 MB / 474.7 MB