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.183/2.183, allocations: 235 MB / 248.1 MB, free: 14.32 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.858e-05/2.874e-05, allocations: 4 kB / 309.7 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3276, allocations: 54.86 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.36/6.688, allocations: 2.608 GB / 2.964 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/6.688, allocations: 86.89 kB / 2.964 GB, free: 102.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.81/9.498, allocations: 0.632 GB / 3.596 GB, free: 39.99 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.122e-06/9.498, allocations: 0 / 3.596 GB, free: 39.99 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001203/9.498, allocations: 41 kB / 3.596 GB, free: 39.98 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.008929/9.507, allocations: 2.424 MB / 3.598 GB, free: 38.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/9.507, allocations: 10.47 kB / 3.598 GB, free: 38.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01029/9.517, allocations: 0.9556 MB / 3.599 GB, free: 38.78 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/9.52, allocations: 1.064 MB / 3.6 GB, free: 38.44 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/9.52, allocations: 109.5 kB / 3.6 GB, free: 38.43 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003063/9.521, allocations: 111.7 kB / 3.6 GB, free: 38.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00739/9.528, allocations: 2.251 MB / 3.602 GB, free: 37.99 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.323e-05/9.528, allocations: 12.27 kB / 3.602 GB, free: 37.99 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002548/9.528, allocations: 56.34 kB / 3.602 GB, free: 37.99 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.691e-05/9.529, allocations: 31.03 kB / 3.603 GB, free: 37.99 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007179/9.536, allocations: 1.967 MB / 3.604 GB, free: 37.98 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01348/9.549, allocations: 10.08 MB / 3.614 GB, free: 31.04 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005258/9.555, allocations: 1.488 MB / 3.616 GB, free: 30.99 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007771/9.555, allocations: 381.9 kB / 3.616 GB, free: 30.98 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08891/9.644, allocations: 17.14 MB / 3.633 GB, free: 22.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.967e-05/9.644, allocations: 45.23 kB / 3.633 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=80): time 7.875e-06/9.644, allocations: 0 / 3.633 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=80): time 0.01775/9.662, allocations: 2.214 MB / 3.635 GB, free: 22.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.451e-05/9.662, allocations: 271.1 kB / 3.635 GB, free: 21.72 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001432/9.664, allocations: 0.8132 MB / 3.636 GB, free: 21.55 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001825/9.664, allocations: 42.55 kB / 3.636 GB, free: 21.52 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004304/9.664, allocations: 0.6857 MB / 3.637 GB, free: 21.1 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003229/9.665, allocations: 273.8 kB / 3.637 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.93e-05/9.665, allocations: 26.72 kB / 3.637 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000108/9.665, allocations: 365.6 kB / 3.637 GB, free: 20.62 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007511/9.666, allocations: 338.7 kB / 3.638 GB, free: 20.61 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/9.667, allocations: 0.921 MB / 3.639 GB, free: 19.85 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/9.668, allocations: 478.5 kB / 3.639 GB, free: 19.81 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.319e-05/9.668, allocations: 3.719 kB / 3.639 GB, free: 19.81 MB / 0.4948 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.003009/9.671, allocations: 1.266 MB / 3.64 GB, free: 19.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002669/9.674, allocations: 7.319 MB / 3.647 GB, free: 27.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.781e-05/9.674, allocations: 17.47 kB / 3.648 GB, free: 27.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.098e-05/9.674, allocations: 32.75 kB / 3.648 GB, free: 27.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/9.676, allocations: 393.7 kB / 3.648 GB, free: 27.92 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.311e-05/9.676, allocations: 38.33 kB / 3.648 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002142/9.678, allocations: 265.5 kB / 3.648 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002594/9.678, allocations: 81.7 kB / 3.648 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/9.678, allocations: 5.281 kB / 3.648 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002669/9.681, allocations: 1.184 MB / 3.649 GB, free: 27.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.812e-05/9.681, allocations: 21.22 kB / 3.649 GB, free: 27.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.532e-05/9.681, allocations: 28.72 kB / 3.649 GB, free: 27.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001873/9.683, allocations: 392.1 kB / 3.65 GB, free: 27.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.889e-05/9.683, allocations: 36.98 kB / 3.65 GB, free: 27.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/9.685, allocations: 211.9 kB / 3.65 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002205/9.685, allocations: 81.08 kB / 3.65 GB, free: 27.59 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 () * 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.0004252/9.685, allocations: 206.6 kB / 3.65 GB, free: 27.44 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003656/9.686, allocations: 126 kB / 3.651 GB, free: 27.38 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007534/9.693, allocations: 5.753 MB / 3.656 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.36e-05/9.693, allocations: 83.22 kB / 3.656 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.48e-06/9.694, allocations: 3.938 kB / 3.656 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-05/9.694, allocations: 5.344 kB / 3.656 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003825/9.697, allocations: 2.777 MB / 3.659 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/9.697, allocations: 0 / 3.659 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/9.699, allocations: 258.3 kB / 3.659 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.38e-05/9.699, allocations: 3.688 kB / 3.659 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.929e-05/9.699, allocations: 21.12 kB / 3.659 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.591e-06/9.699, allocations: 3.875 kB / 3.659 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.118e-06/9.699, allocations: 3.25 kB / 3.659 GB, free: 26.34 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003671/9.703, allocations: 2.625 MB / 3.662 GB, free: 25.11 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009739/9.704, allocations: 0.526 MB / 3.662 GB, free: 24.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/9.704, allocations: 23.03 kB / 3.662 GB, free: 24.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/9.705, allocations: 126.3 kB / 3.662 GB, free: 24.68 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/9.705, allocations: 87.19 kB / 3.663 GB, free: 24.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.642e-05/9.705, allocations: 34.31 kB / 3.663 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001351/9.707, allocations: 0.7087 MB / 3.663 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.046e-06/9.707, allocations: 0 / 3.663 GB, free: 24.37 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00733/9.714, allocations: 1.732 MB / 3.665 GB, free: 24.02 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 () * 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.008766/9.723, allocations: 1.946 MB / 3.667 GB, free: 23.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005019/9.728, allocations: 2.236 MB / 3.669 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/9.728, allocations: 3.094 kB / 3.669 GB, free: 22.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00178/9.73, allocations: 1.331 MB / 3.67 GB, free: 22.01 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004088/9.734, allocations: 0.5848 MB / 3.671 GB, free: 21.85 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6149/10.35, allocations: 125.9 MB / 3.794 GB, free: 45.54 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/10.35, allocations: 1.647 MB / 3.795 GB, free: 44.77 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005463/10.35, allocations: 137.3 kB / 3.796 GB, free: 44.76 MB / 0.5105 GB Notification: Performance of SimCode: time 2.767e-06/10.35, allocations: 0 / 3.796 GB, free: 44.76 MB / 0.5105 GB Notification: Performance of Templates: time 0.07452/10.43, allocations: 45.65 MB / 3.84 GB, free: 39.89 MB / 0.5105 GB