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.TestValveIncompressible.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.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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadModel(ModelicaTest): time 1.861/1.861, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.535e-05/2.551e-05, allocations: 4 kB / 277.8 MB, free: 15.28 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08576/0.08581, allocations: 48.7 MB / 326.5 MB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.108/6.194, allocations: 2.497 GB / 2.816 GB, free: 60.18 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/6.194, allocations: 84.27 kB / 2.816 GB, free: 60.14 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.126/8.321, allocations: 499.1 MB / 3.303 GB, free: 36.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.218e-06/8.321, allocations: 3.062 kB / 3.303 GB, free: 36.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.995e-05/8.321, allocations: 33.77 kB / 3.303 GB, free: 36.49 MB / 442.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.006814/8.328, allocations: 1.993 MB / 3.305 GB, free: 35.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/8.328, allocations: 7.781 kB / 3.305 GB, free: 35.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007527/8.335, allocations: 0.6818 MB / 3.306 GB, free: 35.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/8.337, allocations: 0.8454 MB / 3.307 GB, free: 34.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/8.338, allocations: 80.59 kB / 3.307 GB, free: 34.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/8.338, allocations: 87.62 kB / 3.307 GB, free: 34.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005229/8.343, allocations: 1.708 MB / 3.308 GB, free: 33.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.535e-05/8.343, allocations: 7.281 kB / 3.308 GB, free: 33.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000185/8.343, allocations: 42.62 kB / 3.308 GB, free: 33.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.389e-05/8.343, allocations: 23.72 kB / 3.308 GB, free: 33.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005369/8.349, allocations: 1.489 MB / 3.31 GB, free: 33.47 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009235/8.358, allocations: 7.371 MB / 3.317 GB, free: 27.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003935/8.362, allocations: 1.123 MB / 3.318 GB, free: 27.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006276/8.363, allocations: 311.6 kB / 3.319 GB, free: 27.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04477/8.407, allocations: 17.68 MB / 3.336 GB, free: 17.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/8.407, allocations: 44.97 kB / 3.336 GB, free: 17.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=67): time 4.199e-06/8.407, allocations: 0 / 3.336 GB, free: 17.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=67): time 0.006889/8.414, allocations: 1.706 MB / 3.338 GB, free: 17.07 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/8.414, allocations: 219.6 kB / 3.338 GB, free: 16.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/8.416, allocations: 0.5986 MB / 3.338 GB, free: 16.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000148/8.416, allocations: 37.48 kB / 3.338 GB, free: 16.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000306/8.416, allocations: 0.5477 MB / 3.339 GB, free: 16.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/8.416, allocations: 232.4 kB / 3.339 GB, free: 15.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.299e-05/8.416, allocations: 19.84 kB / 3.339 GB, free: 15.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.964e-05/8.416, allocations: 349 kB / 3.339 GB, free: 15.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005851/8.417, allocations: 252.8 kB / 3.34 GB, free: 15.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007839/8.418, allocations: 0.6732 MB / 3.34 GB, free: 14.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007117/8.419, allocations: 356.5 kB / 3.341 GB, free: 14.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/8.419, allocations: 3.844 kB / 3.341 GB, free: 14.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002186/8.421, allocations: 0.958 MB / 3.342 GB, free: 14.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001049/8.422, allocations: 5.059 MB / 3.347 GB, free: 8.836 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-05/8.422, allocations: 11.62 kB / 3.347 GB, free: 8.836 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.347e-05/8.422, allocations: 21.66 kB / 3.347 GB, free: 8.836 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001497/8.424, allocations: 300.4 kB / 3.347 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.824e-05/8.424, allocations: 27.14 kB / 3.347 GB, free: 8.797 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/8.425, allocations: 179.7 kB / 3.347 GB, free: 8.719 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/8.425, allocations: 62.06 kB / 3.347 GB, free: 8.707 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/8.425, allocations: 9.75 kB / 3.347 GB, free: 8.703 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001898/8.427, allocations: 0.8777 MB / 3.348 GB, free: 8.371 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/8.427, allocations: 14.59 kB / 3.348 GB, free: 8.371 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.624e-05/8.427, allocations: 24.66 kB / 3.348 GB, free: 8.367 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/8.429, allocations: 300 kB / 3.348 GB, free: 8.328 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.8e-05/8.429, allocations: 26.12 kB / 3.348 GB, free: 8.324 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/8.43, allocations: 157.6 kB / 3.349 GB, free: 8.266 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/8.43, allocations: 61.03 kB / 3.349 GB, free: 8.25 MB / 442.7 MB 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.0003115/8.43, allocations: 183.5 kB / 3.349 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/8.431, allocations: 93.38 kB / 3.349 GB, free: 8.039 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005683/8.436, allocations: 4.433 MB / 3.353 GB, free: 5.129 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.233e-05/8.436, allocations: 66.14 kB / 3.353 GB, free: 5.094 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/8.436, allocations: 0 / 3.353 GB, free: 5.094 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/8.436, allocations: 3.844 kB / 3.353 GB, free: 5.094 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002962/8.439, allocations: 2.159 MB / 3.355 GB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/8.439, allocations: 0 / 3.355 GB, free: 3.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/8.441, allocations: 222.7 kB / 3.356 GB, free: 3.055 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.43e-05/8.441, allocations: 4 kB / 3.356 GB, free: 3.051 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.886e-05/8.441, allocations: 16 kB / 3.356 GB, free: 3.035 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.179e-06/8.441, allocations: 7.938 kB / 3.356 GB, free: 3.027 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.84e-06/8.441, allocations: 0 / 3.356 GB, free: 3.027 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002956/8.444, allocations: 2.051 MB / 3.358 GB, free: 1.109 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007978/8.444, allocations: 456.8 kB / 3.358 GB, free: 0.6953 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/8.445, allocations: 19.61 kB / 3.358 GB, free: 0.6797 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009098/8.446, allocations: 100.5 kB / 3.358 GB, free: 0.5977 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001732/8.446, allocations: 73.52 kB / 3.358 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.951e-05/8.446, allocations: 20 kB / 3.358 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009465/8.447, allocations: 0.5648 MB / 3.359 GB, free: 12 kB / 442.7 MB Notification: Performance of sort global known variables: time 8.44e-07/8.447, allocations: 4 kB / 3.359 GB, free: 8 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.007471/8.454, allocations: 1.58 MB / 3.36 GB, free: 14.58 MB / 458.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: 42 ($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,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.0103/8.465, allocations: 1.768 MB / 3.362 GB, free: 13.22 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006087/8.471, allocations: 1.706 MB / 3.364 GB, free: 11.62 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.396e-06/8.471, allocations: 3.938 kB / 3.364 GB, free: 11.61 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002942/8.474, allocations: 1.025 MB / 3.365 GB, free: 10.64 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005295/8.479, allocations: 446.5 kB / 3.365 GB, free: 10.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5674/9.047, allocations: 122.3 MB / 3.485 GB, free: 39.25 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008752/9.048, allocations: 1.426 MB / 3.486 GB, free: 38.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004025/9.048, allocations: 106.6 kB / 3.486 GB, free: 38.49 MB / 458.7 MB Notification: Performance of SimCode: time 1.764e-06/9.048, allocations: 4 kB / 3.486 GB, free: 38.49 MB / 458.7 MB Notification: Performance of Templates: time 0.06124/9.109, allocations: 39.19 MB / 3.524 GB, free: 12.48 MB / 458.7 MB