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.TestCheckValve.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.TestCheckValve,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|downstreamPressure.y|const.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve") Notification: Performance of loadModel(ModelicaTest): time 1.864/1.864, allocations: 209.2 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004488/0.000449, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2822, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.176/6.458, allocations: 2.496 GB / 2.819 GB, free: 51.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/6.458, allocations: 84.14 kB / 2.819 GB, free: 51.22 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9196/7.378, allocations: 229 MB / 3.043 GB, free: 8.371 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.374e-06/7.378, allocations: 0 / 3.043 GB, free: 8.371 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.384e-05/7.378, allocations: 12 kB / 3.043 GB, free: 8.359 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00487/7.383, allocations: 1.302 MB / 3.044 GB, free: 7.004 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/7.383, allocations: 8.031 kB / 3.044 GB, free: 6.996 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002628/7.385, allocations: 231.2 kB / 3.044 GB, free: 6.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009968/7.386, allocations: 423.2 kB / 3.045 GB, free: 6.316 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.695e-05/7.387, allocations: 28.66 kB / 3.045 GB, free: 6.289 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/7.387, allocations: 32 kB / 3.045 GB, free: 6.258 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/7.389, allocations: 0.6205 MB / 3.046 GB, free: 5.598 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/7.389, allocations: 0 / 3.046 GB, free: 5.598 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.872e-05/7.389, allocations: 12.34 kB / 3.046 GB, free: 5.586 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/7.389, allocations: 11.95 kB / 3.046 GB, free: 5.574 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/7.391, allocations: 0.5992 MB / 3.046 GB, free: 4.977 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00305/7.394, allocations: 2.551 MB / 3.049 GB, free: 2.176 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/7.395, allocations: 454.1 kB / 3.049 GB, free: 1.723 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3808/7.776, allocations: 51.3 MB / 3.099 GB, free: 31.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/7.776, allocations: 36.28 kB / 3.099 GB, free: 31.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 3.295e-06/7.776, allocations: 0 / 3.099 GB, free: 31.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.003567/7.78, allocations: 0.8068 MB / 3.1 GB, free: 31.88 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/7.78, allocations: 108.8 kB / 3.1 GB, free: 31.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004788/7.781, allocations: 312.4 kB / 3.1 GB, free: 31.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/7.781, allocations: 31.22 kB / 3.1 GB, free: 31.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/7.781, allocations: 288.4 kB / 3.101 GB, free: 31.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.888e-05/7.781, allocations: 79.69 kB / 3.101 GB, free: 31.39 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.608e-05/7.781, allocations: 6.781 kB / 3.101 GB, free: 31.39 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.6e-05/7.781, allocations: 330.8 kB / 3.101 GB, free: 31.08 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004832/7.781, allocations: 163.5 kB / 3.101 GB, free: 31.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005351/7.782, allocations: 287.1 kB / 3.102 GB, free: 30.92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005988/7.783, allocations: 191.4 kB / 3.102 GB, free: 30.91 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.416e-06/7.783, allocations: 4 kB / 3.102 GB, free: 30.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001477/7.784, allocations: 493.4 kB / 3.102 GB, free: 30.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000322/7.784, allocations: 1.482 MB / 3.104 GB, free: 29.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/7.784, allocations: 3.781 kB / 3.104 GB, free: 29.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/7.784, allocations: 7.812 kB / 3.104 GB, free: 29.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005662/7.785, allocations: 116.1 kB / 3.104 GB, free: 29.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/7.785, allocations: 9.656 kB / 3.104 GB, free: 29.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006534/7.786, allocations: 76.48 kB / 3.104 GB, free: 29.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.532e-05/7.786, allocations: 24.62 kB / 3.104 GB, free: 29.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/7.786, allocations: 3.969 kB / 3.104 GB, free: 29.29 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00138/7.787, allocations: 439 kB / 3.104 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.97e-06/7.787, allocations: 3.844 kB / 3.104 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/7.787, allocations: 13.06 kB / 3.104 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005947/7.788, allocations: 113.9 kB / 3.104 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/7.788, allocations: 6.062 kB / 3.104 GB, free: 29.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005099/7.788, allocations: 72.98 kB / 3.104 GB, free: 29.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.072e-05/7.789, allocations: 24.33 kB / 3.105 GB, free: 29.25 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0003444/7.789, allocations: 246.8 kB / 3.105 GB, free: 29.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/7.789, allocations: 34.66 kB / 3.105 GB, free: 29.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003118/7.792, allocations: 1.964 MB / 3.107 GB, free: 28.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.468e-05/7.792, allocations: 32.2 kB / 3.107 GB, free: 28.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.81e-06/7.792, allocations: 3.609 kB / 3.107 GB, free: 28.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/7.792, allocations: 4.516 kB / 3.107 GB, free: 28.81 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/7.794, allocations: 1.022 MB / 3.108 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/7.794, allocations: 0 / 3.108 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/7.794, allocations: 91.16 kB / 3.108 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.391e-06/7.794, allocations: 3.719 kB / 3.108 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.927e-05/7.794, allocations: 7.188 kB / 3.108 GB, free: 28.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.936e-06/7.794, allocations: 4 kB / 3.108 GB, free: 28.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.096e-06/7.794, allocations: 0 / 3.108 GB, free: 28.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/7.796, allocations: 1.122 MB / 3.109 GB, free: 28.33 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003765/7.796, allocations: 249.7 kB / 3.109 GB, free: 28.19 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.963e-05/7.797, allocations: 4.312 kB / 3.109 GB, free: 28.19 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000516/7.797, allocations: 47.41 kB / 3.109 GB, free: 28.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.366e-05/7.797, allocations: 31.41 kB / 3.109 GB, free: 28.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/7.797, allocations: 9.75 kB / 3.109 GB, free: 28.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004867/7.798, allocations: 315.7 kB / 3.11 GB, free: 28.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.6e-07/7.798, allocations: 3.75 kB / 3.11 GB, free: 28.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004998/7.803, allocations: 1.174 MB / 3.111 GB, free: 28.09 MB / 442.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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.008529/7.811, allocations: 1.472 MB / 3.112 GB, free: 27.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00215/7.814, allocations: 0.86 MB / 3.113 GB, free: 27.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.184e-06/7.814, allocations: 0.5 kB / 3.113 GB, free: 27.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008204/7.814, allocations: 0.5343 MB / 3.114 GB, free: 27.89 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/7.816, allocations: 198.8 kB / 3.114 GB, free: 27.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1847/8, allocations: 75.96 MB / 3.188 GB, free: 13.58 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004409/8.001, allocations: 0.9968 MB / 3.189 GB, free: 12.67 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/8.001, allocations: 52.47 kB / 3.189 GB, free: 12.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.58e-06/8.001, allocations: 0 / 3.189 GB, free: 12.63 MB / 442.7 MB Notification: Performance of Templates: time 0.04704/8.048, allocations: 27.79 MB / 3.216 GB, free: 12.07 MB / 458.7 MB