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.TestValveCoefficients.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.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 1.818/1.818, allocations: 209.3 MB / 224.8 MB, free: 436 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004396, allocations: 8 kB / 282.6 MB, free: 9.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2852, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.768/6.053, allocations: 2.497 GB / 2.82 GB, free: 38.99 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/6.053, allocations: 87.95 kB / 2.821 GB, free: 38.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.919/8.972, allocations: 0.6205 GB / 3.441 GB, free: 35.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.281e-06/8.972, allocations: 1.594 kB / 3.441 GB, free: 35.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001647/8.972, allocations: 41.75 kB / 3.441 GB, free: 35.69 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.009802/8.982, allocations: 2.489 MB / 3.444 GB, free: 34.45 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/8.982, allocations: 12.78 kB / 3.444 GB, free: 34.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01037/8.992, allocations: 0.8994 MB / 3.444 GB, free: 34.37 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002993/8.995, allocations: 1.062 MB / 3.445 GB, free: 34.03 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/8.995, allocations: 104.7 kB / 3.446 GB, free: 34.03 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003604/8.996, allocations: 115.7 kB / 3.446 GB, free: 34.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00828/9.004, allocations: 2.271 MB / 3.448 GB, free: 33.58 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.501e-05/9.004, allocations: 8.875 kB / 3.448 GB, free: 33.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002672/9.004, allocations: 56.19 kB / 3.448 GB, free: 33.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.798e-05/9.004, allocations: 29.25 kB / 3.448 GB, free: 33.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008452/9.013, allocations: 2.149 MB / 3.45 GB, free: 33.56 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01327/9.026, allocations: 10.08 MB / 3.46 GB, free: 26.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005749/9.032, allocations: 1.528 MB / 3.461 GB, free: 26.55 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04361/9.076, allocations: 17 MB / 3.478 GB, free: 17.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/9.076, allocations: 43.75 kB / 3.478 GB, free: 17.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 4.071e-06/9.076, allocations: 0 / 3.478 GB, free: 17.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=80): time 0.01643/9.092, allocations: 2.541 MB / 3.481 GB, free: 17.55 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/9.092, allocations: 266.3 kB / 3.481 GB, free: 17.24 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/9.096, allocations: 0.8542 MB / 3.482 GB, free: 17.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002657/9.096, allocations: 44.98 kB / 3.482 GB, free: 17.03 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007846/9.097, allocations: 0.6793 MB / 3.482 GB, free: 16.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000491/9.097, allocations: 283.4 kB / 3.483 GB, free: 16.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/9.097, allocations: 28.06 kB / 3.483 GB, free: 16.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001881/9.098, allocations: 357.9 kB / 3.483 GB, free: 16.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00286/9.1, allocations: 470.2 kB / 3.483 GB, free: 16.12 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003358/9.104, allocations: 1.06 MB / 3.484 GB, free: 15.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00335/9.107, allocations: 0.5979 MB / 3.485 GB, free: 15.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-05/9.107, allocations: 3.969 kB / 3.485 GB, free: 15.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.008632/9.116, allocations: 1.528 MB / 3.487 GB, free: 15.08 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00472/9.121, allocations: 7.324 MB / 3.494 GB, free: 23.39 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.805e-05/9.121, allocations: 19.56 kB / 3.494 GB, free: 23.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.434e-05/9.121, allocations: 28.31 kB / 3.494 GB, free: 23.39 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003692/9.125, allocations: 395.3 kB / 3.494 GB, free: 23.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.251e-05/9.125, allocations: 38.91 kB / 3.494 GB, free: 23.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004537/9.129, allocations: 266.7 kB / 3.494 GB, free: 23.27 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004251/9.13, allocations: 85.3 kB / 3.494 GB, free: 23.26 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/9.13, allocations: 3.719 kB / 3.494 GB, free: 23.26 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007917/9.138, allocations: 1.445 MB / 3.496 GB, free: 23.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.956e-05/9.138, allocations: 22.08 kB / 3.496 GB, free: 23.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.219e-05/9.138, allocations: 32.84 kB / 3.496 GB, free: 23.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003349/9.142, allocations: 390.5 kB / 3.496 GB, free: 23.07 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.439e-05/9.142, allocations: 37.64 kB / 3.496 GB, free: 23.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003051/9.145, allocations: 207.3 kB / 3.497 GB, free: 23.01 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003356/9.145, allocations: 83.94 kB / 3.497 GB, free: 23.01 MB / 474.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.001799/9.147, allocations: 408 kB / 3.497 GB, free: 22.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006302/9.148, allocations: 121.4 kB / 3.497 GB, free: 22.72 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0173/9.165, allocations: 5.945 MB / 3.503 GB, free: 21.54 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001515/9.165, allocations: 86.41 kB / 3.503 GB, free: 21.51 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/9.165, allocations: 0 / 3.503 GB, free: 21.51 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-05/9.165, allocations: 6.609 kB / 3.503 GB, free: 21.51 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004228/9.169, allocations: 2.766 MB / 3.506 GB, free: 20.15 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/9.17, allocations: 0 / 3.506 GB, free: 20.15 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/9.171, allocations: 257.3 kB / 3.506 GB, free: 20.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.687e-05/9.171, allocations: 7.75 kB / 3.506 GB, free: 20.12 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/9.171, allocations: 26.33 kB / 3.506 GB, free: 20.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.647e-05/9.171, allocations: 11.42 kB / 3.506 GB, free: 20.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/9.171, allocations: 3.938 kB / 3.506 GB, free: 20.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005064/9.176, allocations: 2.832 MB / 3.509 GB, free: 18.82 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009796/9.177, allocations: 0.5253 MB / 3.509 GB, free: 18.45 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/9.178, allocations: 23.69 kB / 3.509 GB, free: 18.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/9.179, allocations: 121 kB / 3.509 GB, free: 18.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/9.179, allocations: 96.11 kB / 3.51 GB, free: 18.38 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.608e-05/9.179, allocations: 28.3 kB / 3.51 GB, free: 18.38 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00141/9.181, allocations: 0.7518 MB / 3.51 GB, free: 18.09 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.072e-06/9.181, allocations: 0 / 3.51 GB, free: 18.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006987/9.188, allocations: 1.726 MB / 3.512 GB, free: 17.74 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.008745/9.196, allocations: 1.934 MB / 3.514 GB, free: 17.23 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005491/9.202, allocations: 2.607 MB / 3.516 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.669e-06/9.202, allocations: 0.5 kB / 3.516 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002096/9.204, allocations: 1.437 MB / 3.518 GB, free: 14.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003466/9.208, allocations: 0.58 MB / 3.518 GB, free: 14.16 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6175/9.825, allocations: 125.2 MB / 3.641 GB, free: 35.65 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001166/9.826, allocations: 1.648 MB / 3.642 GB, free: 34.88 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005548/9.827, allocations: 140 kB / 3.642 GB, free: 34.88 MB / 474.7 MB Notification: Performance of SimCode: time 1.613e-06/9.827, allocations: 0 / 3.642 GB, free: 34.88 MB / 474.7 MB Notification: Performance of Templates: time 0.07255/9.899, allocations: 45.74 MB / 3.687 GB, free: 14.09 MB / 474.7 MB