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.814/1.814, allocations: 209.3 MB / 222.4 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.698e-05/2.71e-05, allocations: 4 kB / 277.8 MB, free: 12.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08937/0.08942, allocations: 48.71 MB / 326.5 MB, free: 11.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.936/6.025, allocations: 2.497 GB / 2.816 GB, free: 122.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/6.026, allocations: 85.36 kB / 2.816 GB, free: 122.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.999/9.024, allocations: 0.6182 GB / 3.434 GB, free: 35.77 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.242e-06/9.025, allocations: 2.375 kB / 3.434 GB, free: 35.77 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000123/9.025, allocations: 44.05 kB / 3.434 GB, free: 35.77 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.008737/9.033, allocations: 2.36 MB / 3.436 GB, free: 34.83 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/9.033, allocations: 9.375 kB / 3.436 GB, free: 34.83 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01047/9.044, allocations: 0.8995 MB / 3.437 GB, free: 34.75 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002963/9.047, allocations: 1.061 MB / 3.438 GB, free: 34.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/9.047, allocations: 104 kB / 3.438 GB, free: 34.42 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000237/9.047, allocations: 118.4 kB / 3.438 GB, free: 34.42 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007253/9.055, allocations: 2.243 MB / 3.441 GB, free: 33.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.787e-05/9.055, allocations: 7.719 kB / 3.441 GB, free: 33.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002135/9.055, allocations: 61.22 kB / 3.441 GB, free: 33.98 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.052e-05/9.055, allocations: 31.25 kB / 3.441 GB, free: 33.98 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007205/9.062, allocations: 1.977 MB / 3.443 GB, free: 33.96 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01433/9.077, allocations: 10.08 MB / 3.453 GB, free: 27.03 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005322/9.082, allocations: 1.478 MB / 3.454 GB, free: 27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008579/9.083, allocations: 379.7 kB / 3.454 GB, free: 27 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04309/9.126, allocations: 17.1 MB / 3.471 GB, free: 18.53 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/9.126, allocations: 44.12 kB / 3.471 GB, free: 18.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 4.26e-06/9.126, allocations: 0 / 3.471 GB, free: 18.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=80): time 0.008772/9.135, allocations: 2.219 MB / 3.473 GB, free: 18.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.344e-05/9.135, allocations: 268 kB / 3.474 GB, free: 18.06 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/9.136, allocations: 0.8125 MB / 3.474 GB, free: 17.89 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/9.137, allocations: 41.11 kB / 3.474 GB, free: 17.86 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003804/9.137, allocations: 0.6886 MB / 3.475 GB, free: 17.44 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002403/9.137, allocations: 281.5 kB / 3.475 GB, free: 17.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.169e-05/9.137, allocations: 25.06 kB / 3.475 GB, free: 17.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/9.137, allocations: 363 kB / 3.476 GB, free: 16.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007209/9.138, allocations: 336.7 kB / 3.476 GB, free: 16.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009528/9.139, allocations: 0.9216 MB / 3.477 GB, free: 16.21 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009034/9.14, allocations: 470.6 kB / 3.477 GB, free: 16.2 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/9.14, allocations: 10.66 kB / 3.477 GB, free: 16.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=167) (initialization): time 0.002772/9.143, allocations: 1.264 MB / 3.479 GB, free: 16.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002721/9.146, allocations: 7.323 MB / 3.486 GB, free: 24.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-05/9.146, allocations: 16.56 kB / 3.486 GB, free: 24.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.692e-05/9.146, allocations: 28.06 kB / 3.486 GB, free: 24.45 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/9.148, allocations: 394.6 kB / 3.486 GB, free: 24.44 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.467e-05/9.148, allocations: 44.58 kB / 3.486 GB, free: 24.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001997/9.15, allocations: 257.7 kB / 3.486 GB, free: 24.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001963/9.15, allocations: 87.09 kB / 3.487 GB, free: 24.35 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/9.15, allocations: 3.656 kB / 3.487 GB, free: 24.35 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002606/9.153, allocations: 1.184 MB / 3.488 GB, free: 24.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.773e-05/9.153, allocations: 19.16 kB / 3.488 GB, free: 24.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.561e-05/9.153, allocations: 32.47 kB / 3.488 GB, free: 24.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/9.154, allocations: 387 kB / 3.488 GB, free: 24.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.026e-05/9.154, allocations: 42.45 kB / 3.488 GB, free: 24.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/9.156, allocations: 213.5 kB / 3.488 GB, free: 24.26 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001564/9.156, allocations: 80.88 kB / 3.488 GB, free: 24.26 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 () * 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.0004204/9.157, allocations: 201.1 kB / 3.489 GB, free: 24.14 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003095/9.157, allocations: 123.5 kB / 3.489 GB, free: 24.08 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006906/9.164, allocations: 5.759 MB / 3.494 GB, free: 23.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.226e-05/9.164, allocations: 88.3 kB / 3.494 GB, free: 23.45 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/9.164, allocations: 0 / 3.494 GB, free: 23.45 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.547e-05/9.164, allocations: 7.5 kB / 3.494 GB, free: 23.45 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003575/9.168, allocations: 2.765 MB / 3.497 GB, free: 23.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.994e-06/9.168, allocations: 0 / 3.497 GB, free: 23.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/9.169, allocations: 259.6 kB / 3.497 GB, free: 23.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/9.169, allocations: 3.656 kB / 3.497 GB, free: 23.06 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.018e-05/9.169, allocations: 26.77 kB / 3.497 GB, free: 23.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.063e-05/9.169, allocations: 7.766 kB / 3.497 GB, free: 23.06 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.473e-06/9.169, allocations: 0.8438 kB / 3.497 GB, free: 23.06 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003714/9.173, allocations: 2.62 MB / 3.5 GB, free: 22.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/9.174, allocations: 0.5277 MB / 3.5 GB, free: 22.33 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002364/9.174, allocations: 27.38 kB / 3.501 GB, free: 22.33 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/9.175, allocations: 129.7 kB / 3.501 GB, free: 22.31 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/9.175, allocations: 85.27 kB / 3.501 GB, free: 22.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.43e-05/9.175, allocations: 31.31 kB / 3.501 GB, free: 22.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001309/9.177, allocations: 0.7161 MB / 3.501 GB, free: 22.19 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.58e-07/9.177, allocations: 0 / 3.501 GB, free: 22.19 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007265/9.184, allocations: 1.721 MB / 3.503 GB, free: 21.96 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 () * 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.008854/9.193, allocations: 1.956 MB / 3.505 GB, free: 21.52 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004262/9.197, allocations: 2.227 MB / 3.507 GB, free: 21.48 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.473e-06/9.197, allocations: 384 / 3.507 GB, free: 21.48 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001935/9.199, allocations: 1.334 MB / 3.509 GB, free: 21.46 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004109/9.203, allocations: 0.5775 MB / 3.509 GB, free: 21.43 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5726/9.776, allocations: 123.2 MB / 3.629 GB, free: 61.06 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001413/9.777, allocations: 1.648 MB / 3.631 GB, free: 60.32 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005619/9.778, allocations: 136.1 kB / 3.631 GB, free: 60.32 MB / 490.7 MB Notification: Performance of SimCode: time 1.825e-06/9.778, allocations: 0 / 3.631 GB, free: 60.32 MB / 490.7 MB Notification: Performance of Templates: time 0.07457/9.853, allocations: 45.49 MB / 3.676 GB, free: 57.63 MB / 490.7 MB