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.TestValveIncompressible.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,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",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadModel(ModelicaTest): time 2.162/2.162, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.435e-05/2.448e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2797, allocations: 54.86 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.051/6.331, allocations: 2.607 GB / 2.956 GB, free: 12.68 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/6.331, allocations: 83.95 kB / 2.957 GB, free: 12.6 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.443/8.774, allocations: 0.4932 GB / 3.45 GB, free: 45.39 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.721e-06/8.774, allocations: 0 / 3.45 GB, free: 45.39 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.828e-05/8.774, allocations: 35 kB / 3.45 GB, free: 45.38 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.007715/8.782, allocations: 2.054 MB / 3.452 GB, free: 44.23 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/8.782, allocations: 14.53 kB / 3.452 GB, free: 44.23 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007686/8.79, allocations: 0.7081 MB / 3.452 GB, free: 44.12 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002284/8.792, allocations: 0.8531 MB / 3.453 GB, free: 43.62 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/8.792, allocations: 45.36 kB / 3.453 GB, free: 43.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002062/8.792, allocations: 50.72 kB / 3.453 GB, free: 43.61 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002152/8.794, allocations: 0.9069 MB / 3.454 GB, free: 43.29 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002176/8.797, allocations: 1.083 MB / 3.455 GB, free: 42.68 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.497e-05/8.797, allocations: 7.406 kB / 3.455 GB, free: 42.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/8.797, allocations: 3.969 kB / 3.455 GB, free: 42.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/8.797, allocations: 25.12 kB / 3.455 GB, free: 42.68 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8685/9.665, allocations: 201.4 MB / 3.652 GB, free: 29.98 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008298/9.666, allocations: 414.9 kB / 3.652 GB, free: 29.95 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003472/9.667, allocations: 190 kB / 3.653 GB, free: 29.94 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04711/9.714, allocations: 16.29 MB / 3.669 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/9.714, allocations: 38.19 kB / 3.669 GB, free: 20.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=43): time 4.096e-06/9.714, allocations: 0 / 3.669 GB, free: 20.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=43): time 0.006056/9.72, allocations: 1.264 MB / 3.67 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/9.72, allocations: 209.6 kB / 3.67 GB, free: 19.31 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/9.721, allocations: 0.6552 MB / 3.671 GB, free: 18.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001016/9.722, allocations: 25.7 kB / 3.671 GB, free: 18.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000407/9.722, allocations: 0.6111 MB / 3.671 GB, free: 18.47 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/9.722, allocations: 155.1 kB / 3.671 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.588e-05/9.722, allocations: 0 / 3.671 GB, free: 18.38 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001906/9.722, allocations: 353.8 kB / 3.672 GB, free: 18.05 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005057/9.723, allocations: 238.5 kB / 3.672 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006637/9.724, allocations: 0.6505 MB / 3.673 GB, free: 17.25 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003128/9.727, allocations: 0.5574 MB / 3.673 GB, free: 16.94 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.706e-05/9.727, allocations: 8 kB / 3.673 GB, free: 16.93 MB / 0.5261 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00493/9.732, allocations: 1.091 MB / 3.674 GB, free: 16.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002448/9.734, allocations: 5.055 MB / 3.679 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.933e-05/9.734, allocations: 18.42 kB / 3.679 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.12e-05/9.734, allocations: 20 kB / 3.679 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/9.736, allocations: 298.5 kB / 3.68 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.573e-05/9.736, allocations: 29.61 kB / 3.68 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/9.738, allocations: 266.4 kB / 3.68 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002436/9.738, allocations: 61.17 kB / 3.68 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/9.738, allocations: 5.031 kB / 3.68 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003934/9.742, allocations: 0.9357 MB / 3.681 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/9.742, allocations: 12 kB / 3.681 GB, free: 9.871 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/9.742, allocations: 20 kB / 3.681 GB, free: 9.852 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/9.743, allocations: 300.6 kB / 3.681 GB, free: 9.633 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.548e-05/9.743, allocations: 27.5 kB / 3.681 GB, free: 9.613 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001261/9.745, allocations: 174.7 kB / 3.681 GB, free: 9.488 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/9.745, allocations: 59.03 kB / 3.681 GB, free: 9.445 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.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 (127): * Single equations (assignments): 127 * 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.0003322/9.745, allocations: 151.4 kB / 3.681 GB, free: 9.324 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002754/9.745, allocations: 98.83 kB / 3.682 GB, free: 9.227 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002769/9.748, allocations: 1.437 MB / 3.683 GB, free: 8.422 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.525e-06/9.748, allocations: 4 kB / 3.683 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.56e-06/9.748, allocations: 0 / 3.683 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.288e-06/9.748, allocations: 0 / 3.683 GB, free: 8.418 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001839/9.75, allocations: 1.071 MB / 3.684 GB, free: 7.898 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.055e-06/9.75, allocations: 1.531 kB / 3.684 GB, free: 7.898 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005247/9.751, allocations: 95.84 kB / 3.684 GB, free: 7.828 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/9.751, allocations: 4 kB / 3.684 GB, free: 7.824 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.212e-05/9.751, allocations: 11.84 kB / 3.684 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.154e-06/9.751, allocations: 4 kB / 3.684 GB, free: 7.812 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.074e-06/9.751, allocations: 0 / 3.684 GB, free: 7.812 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/9.752, allocations: 0.6118 MB / 3.685 GB, free: 7.336 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009244/9.753, allocations: 488.7 kB / 3.685 GB, free: 7.035 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002542/9.754, allocations: 0 / 3.685 GB, free: 7.035 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009084/9.755, allocations: 87.39 kB / 3.685 GB, free: 6.969 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.465e-05/9.755, allocations: 25.33 kB / 3.685 GB, free: 6.953 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.988e-05/9.755, allocations: 15.03 kB / 3.685 GB, free: 6.945 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001826/9.757, allocations: 1.085 MB / 3.686 GB, free: 6.309 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.712e-06/9.757, allocations: 0 / 3.686 GB, free: 6.309 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006847/9.764, allocations: 1.556 MB / 3.688 GB, free: 4.961 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * 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 Backend phase and start with SimCode phase: time 0.008644/9.772, allocations: 1.892 MB / 3.69 GB, free: 3.633 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002093/9.774, allocations: 0.9589 MB / 3.691 GB, free: 3.059 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/9.774, allocations: 0 / 3.691 GB, free: 3.059 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003033/9.775, allocations: 153.7 kB / 3.691 GB, free: 2.961 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002334/9.777, allocations: 369.4 kB / 3.691 GB, free: 2.773 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/9.78, allocations: 1.371 MB / 3.693 GB, free: 1.609 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009945/9.781, allocations: 1.177 MB / 3.694 GB, free: 0.6055 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004497/9.782, allocations: 106.3 kB / 3.694 GB, free: 0.5234 MB / 0.5261 GB Notification: Performance of SimCode: time 1.77e-06/9.782, allocations: 4 kB / 3.694 GB, free: 0.5195 MB / 0.5261 GB Notification: Performance of Templates: time 0.3993/10.18, allocations: 38.24 MB / 3.731 GB, free: 107.8 MB / 0.5417 GB