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.Sensors.TestFlowRate.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|massFlowRate.m_flow|volumeFlowRate.V_flow|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadModel(ModelicaTest): time 2.018/2.018, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.476e-05/1.49e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2661, allocations: 48.69 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.89/6.157, allocations: 2.485 GB / 2.797 GB, free: 104.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/6.157, allocations: 84.47 kB / 2.797 GB, free: 104.9 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 1.582/7.739, allocations: 385.6 MB / 3.174 GB, free: 37.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.386e-06/7.739, allocations: 0 / 3.174 GB, free: 37.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.402e-05/7.739, allocations: 14.59 kB / 3.174 GB, free: 37.86 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005382/7.744, allocations: 1.5 MB / 3.175 GB, free: 36.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/7.744, allocations: 8.031 kB / 3.175 GB, free: 36.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00299/7.747, allocations: 278.4 kB / 3.175 GB, free: 36.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/7.748, allocations: 469 kB / 3.176 GB, free: 35.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.442e-05/7.748, allocations: 17.03 kB / 3.176 GB, free: 35.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.467e-05/7.749, allocations: 24 kB / 3.176 GB, free: 35.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008418/7.749, allocations: 368.6 kB / 3.176 GB, free: 35.6 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008326/7.75, allocations: 466.3 kB / 3.177 GB, free: 35.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/7.75, allocations: 0 / 3.177 GB, free: 35.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.924e-05/7.75, allocations: 352 / 3.177 GB, free: 35.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/7.75, allocations: 19.66 kB / 3.177 GB, free: 35.14 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.4256/8.176, allocations: 54.82 MB / 3.23 GB, free: 60.83 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006365/8.177, allocations: 250.5 kB / 3.231 GB, free: 60.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/8.177, allocations: 122.6 kB / 3.231 GB, free: 60.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1505/8.327, allocations: 64.91 MB / 3.294 GB, free: 23.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/8.328, allocations: 38.98 kB / 3.294 GB, free: 23.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 3.817e-06/8.328, allocations: 0 / 3.294 GB, free: 23.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=24): time 0.002945/8.331, allocations: 0.585 MB / 3.295 GB, free: 23.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/8.331, allocations: 105.3 kB / 3.295 GB, free: 22.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004492/8.331, allocations: 303.2 kB / 3.295 GB, free: 22.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/8.331, allocations: 25.7 kB / 3.295 GB, free: 22.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/8.331, allocations: 336.5 kB / 3.295 GB, free: 22.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.224e-05/8.331, allocations: 81.09 kB / 3.295 GB, free: 22.58 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.093e-05/8.331, allocations: 0 / 3.295 GB, free: 22.58 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.802e-05/8.332, allocations: 325.9 kB / 3.296 GB, free: 22.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002117/8.332, allocations: 104.4 kB / 3.296 GB, free: 22.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002737/8.332, allocations: 239.2 kB / 3.296 GB, free: 22.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001506/8.334, allocations: 256.8 kB / 3.296 GB, free: 22.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.917e-06/8.334, allocations: 0 / 3.296 GB, free: 22.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.002544/8.336, allocations: 0.4921 MB / 3.297 GB, free: 22.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003655/8.337, allocations: 1.744 MB / 3.299 GB, free: 20.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/8.337, allocations: 7.688 kB / 3.299 GB, free: 20.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002177/8.337, allocations: 44.03 kB / 3.299 GB, free: 20.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004618/8.337, allocations: 101.1 kB / 3.299 GB, free: 20.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009681/8.338, allocations: 0.6429 MB / 3.299 GB, free: 19.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006492/8.339, allocations: 62.8 kB / 3.299 GB, free: 19.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.368e-05/8.339, allocations: 17.25 kB / 3.299 GB, free: 19.66 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/8.339, allocations: 3.812 kB / 3.299 GB, free: 19.66 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001409/8.34, allocations: 377.1 kB / 3.3 GB, free: 19.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/8.341, allocations: 7.516 kB / 3.3 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/8.341, allocations: 7.562 kB / 3.3 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/8.341, allocations: 116.6 kB / 3.3 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.116e-06/8.341, allocations: 7.875 kB / 3.3 GB, free: 19.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004284/8.342, allocations: 49.36 kB / 3.3 GB, free: 19.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.713e-05/8.342, allocations: 23.5 kB / 3.3 GB, free: 19.64 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001685/8.342, allocations: 123.8 kB / 3.3 GB, free: 19.53 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001353/8.342, allocations: 42.22 kB / 3.3 GB, free: 19.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002829/8.345, allocations: 1.561 MB / 3.302 GB, free: 19.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-05/8.345, allocations: 23.48 kB / 3.302 GB, free: 19.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/8.345, allocations: 4.078 kB / 3.302 GB, free: 19.34 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.694e-06/8.345, allocations: 0 / 3.302 GB, free: 19.34 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003533/8.348, allocations: 2.163 MB / 3.304 GB, free: 18.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/8.348, allocations: 3.953 kB / 3.304 GB, free: 18.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/8.349, allocations: 58.59 kB / 3.304 GB, free: 18.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007445/8.35, allocations: 0.6033 MB / 3.304 GB, free: 18.92 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.645e-05/8.35, allocations: 0 / 3.304 GB, free: 18.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/8.351, allocations: 1.09 MB / 3.305 GB, free: 18.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.953e-06/8.351, allocations: 6.766 kB / 3.306 GB, free: 18.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/8.353, allocations: 1.204 MB / 3.307 GB, free: 18.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003037/8.353, allocations: 189.9 kB / 3.307 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.321e-05/8.354, allocations: 3.375 kB / 3.307 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000437/8.354, allocations: 30.25 kB / 3.307 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.714e-05/8.354, allocations: 34.23 kB / 3.307 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.264e-05/8.354, allocations: 10.62 kB / 3.307 GB, free: 17.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000303/8.354, allocations: 227.5 kB / 3.307 GB, free: 17.87 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.49e-07/8.354, allocations: 0 / 3.307 GB, free: 17.87 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00486/8.359, allocations: 1.151 MB / 3.308 GB, free: 17.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.008507/8.368, allocations: 1.703 MB / 3.31 GB, free: 17.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001364/8.369, allocations: 0.6302 MB / 3.311 GB, free: 17.64 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.448e-06/8.369, allocations: 0.75 kB / 3.311 GB, free: 17.64 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005968/8.37, allocations: 400.8 kB / 3.311 GB, free: 17.63 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/8.371, allocations: 178.2 kB / 3.311 GB, free: 17.62 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/8.373, allocations: 0.9987 MB / 3.312 GB, free: 17.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/8.374, allocations: 0.9499 MB / 3.313 GB, free: 16.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001635/8.374, allocations: 49 kB / 3.313 GB, free: 16.59 MB / 442.7 MB Notification: Performance of SimCode: time 1.869e-06/8.374, allocations: 0 / 3.313 GB, free: 16.59 MB / 442.7 MB Notification: Performance of Templates: time 0.05031/8.424, allocations: 30.98 MB / 3.343 GB, free: 13.5 MB / 442.7 MB