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.TestValveCompressible.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.TestValveCompressible,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") Notification: Performance of loadModel(ModelicaTest): time 1.892/1.892, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.113e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08466/0.08471, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.336/6.42, allocations: 2.496 GB / 2.815 GB, free: 60.64 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/6.421, allocations: 87.12 kB / 2.815 GB, free: 60.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.202/7.622, allocations: 231.2 MB / 3.041 GB, free: 49.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.091e-06/7.622, allocations: 5.188 kB / 3.041 GB, free: 49.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.192e-05/7.622, allocations: 8.25 kB / 3.041 GB, free: 49.64 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.005104/7.628, allocations: 1.261 MB / 3.042 GB, free: 49.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/7.628, allocations: 9.922 kB / 3.042 GB, free: 49.22 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002683/7.63, allocations: 241.3 kB / 3.043 GB, free: 49.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/7.631, allocations: 434.2 kB / 3.043 GB, free: 48.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.104e-05/7.632, allocations: 32.28 kB / 3.043 GB, free: 48.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.75e-05/7.632, allocations: 31.75 kB / 3.043 GB, free: 48.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002076/7.634, allocations: 0.6178 MB / 3.044 GB, free: 48.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/7.634, allocations: 2.062 kB / 3.044 GB, free: 48.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/7.634, allocations: 19.06 kB / 3.044 GB, free: 48.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.016e-05/7.634, allocations: 8.906 kB / 3.044 GB, free: 48.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001875/7.636, allocations: 0.5325 MB / 3.044 GB, free: 48.83 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.003225/7.639, allocations: 2.649 MB / 3.047 GB, free: 46.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/7.641, allocations: 0.4941 MB / 3.047 GB, free: 46.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002712/7.641, allocations: 134.8 kB / 3.047 GB, free: 46.91 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1372/7.779, allocations: 55.1 MB / 3.101 GB, free: 32.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/7.779, allocations: 40.12 kB / 3.101 GB, free: 31.98 MB / 442.7 MB Notification: Performance of pre-optimization done (n=28): time 4.506e-06/7.779, allocations: 0 / 3.101 GB, free: 31.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=28): time 0.002577/7.781, allocations: 0.649 MB / 3.102 GB, free: 31.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.493e-05/7.781, allocations: 110.2 kB / 3.102 GB, free: 31.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000453/7.782, allocations: 316.8 kB / 3.102 GB, free: 31.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.03e-05/7.782, allocations: 29.2 kB / 3.102 GB, free: 31.66 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/7.782, allocations: 286 kB / 3.103 GB, free: 31.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.281e-05/7.782, allocations: 98.62 kB / 3.103 GB, free: 31.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.726e-05/7.782, allocations: 10.88 kB / 3.103 GB, free: 31.42 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/7.782, allocations: 329.6 kB / 3.103 GB, free: 31.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/7.783, allocations: 109.5 kB / 3.103 GB, free: 31.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002999/7.783, allocations: 263.4 kB / 3.103 GB, free: 30.91 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/7.783, allocations: 146.4 kB / 3.104 GB, free: 30.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.883e-06/7.783, allocations: 0 / 3.104 GB, free: 30.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008815/7.784, allocations: 403.1 kB / 3.104 GB, free: 30.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008995/7.785, allocations: 1.843 MB / 3.106 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/7.785, allocations: 3.812 kB / 3.106 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/7.785, allocations: 7.562 kB / 3.106 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/7.786, allocations: 121.3 kB / 3.106 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.783e-05/7.786, allocations: 10.53 kB / 3.106 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006403/7.786, allocations: 81.41 kB / 3.106 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.958e-05/7.787, allocations: 17.94 kB / 3.106 GB, free: 28.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/7.787, allocations: 7.344 kB / 3.106 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000803/7.787, allocations: 366.3 kB / 3.106 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/7.787, allocations: 7.094 kB / 3.106 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/7.787, allocations: 9.969 kB / 3.106 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004961/7.788, allocations: 102.8 kB / 3.106 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/7.788, allocations: 14.69 kB / 3.106 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004006/7.788, allocations: 64.19 kB / 3.106 GB, free: 28.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-05/7.788, allocations: 27.67 kB / 3.107 GB, free: 28.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * 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.0001778/7.789, allocations: 137.3 kB / 3.107 GB, free: 28.78 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/7.789, allocations: 42.25 kB / 3.107 GB, free: 28.76 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002453/7.791, allocations: 1.91 MB / 3.109 GB, free: 28.53 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-05/7.791, allocations: 29.77 kB / 3.109 GB, free: 28.53 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.715e-06/7.791, allocations: 3.5 kB / 3.109 GB, free: 28.53 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.514e-06/7.791, allocations: 3.797 kB / 3.109 GB, free: 28.53 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001294/7.793, allocations: 1.032 MB / 3.11 GB, free: 28.28 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.608e-06/7.793, allocations: 0 / 3.11 GB, free: 28.28 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004694/7.793, allocations: 79.78 kB / 3.11 GB, free: 28.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.401e-06/7.793, allocations: 7.688 kB / 3.11 GB, free: 28.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/7.793, allocations: 15.19 kB / 3.11 GB, free: 28.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.399e-06/7.793, allocations: 0 / 3.11 GB, free: 28.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.36e-06/7.793, allocations: 0 / 3.11 GB, free: 28.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/7.795, allocations: 1.032 MB / 3.111 GB, free: 28.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/7.795, allocations: 260.7 kB / 3.111 GB, free: 27.86 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.427e-05/7.795, allocations: 6.562 kB / 3.111 GB, free: 27.86 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004757/7.796, allocations: 37.56 kB / 3.111 GB, free: 27.85 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.691e-05/7.796, allocations: 37.25 kB / 3.111 GB, free: 27.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.468e-05/7.796, allocations: 10.31 kB / 3.111 GB, free: 27.85 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004508/7.796, allocations: 311.8 kB / 3.111 GB, free: 27.76 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-07/7.796, allocations: 4 kB / 3.111 GB, free: 27.76 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004687/7.801, allocations: 1.153 MB / 3.112 GB, free: 27.58 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,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 31 * 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.007829/7.809, allocations: 1.425 MB / 3.114 GB, free: 27.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001342/7.81, allocations: 0.7347 MB / 3.115 GB, free: 27.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.686e-06/7.81, allocations: 4.578 kB / 3.115 GB, free: 27.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006237/7.811, allocations: 491.2 kB / 3.115 GB, free: 27.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/7.812, allocations: 194.6 kB / 3.115 GB, free: 27.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1904/8.003, allocations: 80.02 MB / 3.193 GB, free: 4.555 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007972/8.004, allocations: 1.006 MB / 3.194 GB, free: 3.633 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/8.004, allocations: 50.86 kB / 3.194 GB, free: 3.586 MB / 442.7 MB Notification: Performance of SimCode: time 1.965e-06/8.004, allocations: 0 / 3.194 GB, free: 3.586 MB / 442.7 MB Notification: Performance of Templates: time 0.3136/8.317, allocations: 27.33 MB / 3.221 GB, free: 58.46 MB / 442.7 MB