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.Sensors.TestFlowRate.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate") Notification: Performance of loadModel(ModelicaTest): time 2.162/2.162, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.973e-05/2.993e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.316, allocations: 54.85 MB / 364.5 MB, free: 5.383 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.817/6.133, allocations: 2.596 GB / 2.952 GB, free: 3.996 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/6.133, allocations: 86.61 kB / 2.952 GB, free: 3.953 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.624/7.758, allocations: 399.2 MB / 3.342 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.078e-06/7.758, allocations: 0 / 3.342 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.085e-05/7.758, allocations: 8 kB / 3.342 GB, free: 496 kB / 490.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.2904/8.048, allocations: 1.534 MB / 3.344 GB, free: 54.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/8.048, allocations: 10.22 kB / 3.344 GB, free: 54.36 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002999/8.051, allocations: 297.7 kB / 3.344 GB, free: 54.33 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/8.052, allocations: 472.7 kB / 3.344 GB, free: 54.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.56e-05/8.052, allocations: 37.62 kB / 3.344 GB, free: 54.11 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.423e-05/8.053, allocations: 37.22 kB / 3.344 GB, free: 54.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001938/8.055, allocations: 0.686 MB / 3.345 GB, free: 53.95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/8.055, allocations: 3.25 kB / 3.345 GB, free: 53.95 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.992e-05/8.055, allocations: 18.78 kB / 3.345 GB, free: 53.95 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/8.055, allocations: 10.55 kB / 3.345 GB, free: 53.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/8.057, allocations: 0.5639 MB / 3.346 GB, free: 53.95 MB / 490.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.003613/8.06, allocations: 2.865 MB / 3.348 GB, free: 52.04 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/8.062, allocations: 450.5 kB / 3.349 GB, free: 52.01 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/8.062, allocations: 154.7 kB / 3.349 GB, free: 52 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2485/8.311, allocations: 96.35 MB / 3.443 GB, free: 33.36 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/8.311, allocations: 41.12 kB / 3.443 GB, free: 33.32 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=30): time 3.088e-06/8.311, allocations: 0 / 3.443 GB, free: 33.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=30): time 0.002776/8.313, allocations: 0.681 MB / 3.444 GB, free: 33.24 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.696e-05/8.314, allocations: 106.6 kB / 3.444 GB, free: 33.12 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/8.314, allocations: 303.3 kB / 3.444 GB, free: 33 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/8.314, allocations: 32.89 kB / 3.444 GB, free: 32.97 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/8.314, allocations: 308.9 kB / 3.444 GB, free: 32.77 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.388e-05/8.314, allocations: 101 kB / 3.445 GB, free: 32.72 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.636e-05/8.314, allocations: 5.75 kB / 3.445 GB, free: 32.72 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001585/8.315, allocations: 332.2 kB / 3.445 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002299/8.315, allocations: 108.9 kB / 3.445 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003093/8.315, allocations: 250 kB / 3.445 GB, free: 32.23 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/8.315, allocations: 144.2 kB / 3.445 GB, free: 32.22 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.835e-06/8.315, allocations: 4 kB / 3.445 GB, free: 32.22 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009425/8.316, allocations: 419.1 kB / 3.446 GB, free: 32.17 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000804/8.317, allocations: 1.749 MB / 3.447 GB, free: 30.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/8.317, allocations: 4.281 kB / 3.447 GB, free: 30.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001946/8.319, allocations: 204 kB / 3.448 GB, free: 30.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005163/8.32, allocations: 100.2 kB / 3.448 GB, free: 30.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006258/8.32, allocations: 0.5853 MB / 3.448 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005243/8.321, allocations: 63.91 kB / 3.448 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.348e-05/8.321, allocations: 25.34 kB / 3.448 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/8.321, allocations: 3.844 kB / 3.448 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007704/8.322, allocations: 352.3 kB / 3.449 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.021e-06/8.322, allocations: 3.969 kB / 3.449 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/8.322, allocations: 7.344 kB / 3.449 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000536/8.322, allocations: 111.1 kB / 3.449 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/8.322, allocations: 13.91 kB / 3.449 GB, free: 29.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/8.323, allocations: 57.5 kB / 3.449 GB, free: 29.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/8.323, allocations: 20.81 kB / 3.449 GB, free: 29.77 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.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.0001704/8.323, allocations: 134.2 kB / 3.449 GB, free: 29.66 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/8.323, allocations: 43.98 kB / 3.449 GB, free: 29.64 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002456/8.326, allocations: 1.98 MB / 3.451 GB, free: 29.43 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.944e-05/8.326, allocations: 24.92 kB / 3.451 GB, free: 29.43 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.274e-06/8.326, allocations: 8.344 kB / 3.451 GB, free: 29.42 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.615e-06/8.326, allocations: 0 / 3.451 GB, free: 29.42 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/8.327, allocations: 0.9938 MB / 3.452 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.163e-06/8.327, allocations: 0 / 3.452 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004119/8.327, allocations: 72.16 kB / 3.452 GB, free: 29.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001628/8.329, allocations: 0.7043 MB / 3.453 GB, free: 29.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.106e-05/8.329, allocations: 2.938 kB / 3.453 GB, free: 29.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009644/8.33, allocations: 0.9977 MB / 3.454 GB, free: 28.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.759e-06/8.33, allocations: 3.953 kB / 3.454 GB, free: 28.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/8.332, allocations: 1.245 MB / 3.455 GB, free: 28.35 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003365/8.332, allocations: 241 kB / 3.455 GB, free: 28.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.104e-05/8.332, allocations: 7.406 kB / 3.455 GB, free: 28.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/8.333, allocations: 35.17 kB / 3.455 GB, free: 28.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.266e-05/8.333, allocations: 41.81 kB / 3.455 GB, free: 28.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.354e-05/8.333, allocations: 11.7 kB / 3.455 GB, free: 28.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004291/8.333, allocations: 300.1 kB / 3.456 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.14e-07/8.333, allocations: 0 / 3.456 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004698/8.338, allocations: 1.208 MB / 3.457 GB, free: 28.05 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.007586/8.346, allocations: 1.595 MB / 3.458 GB, free: 27.75 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0015/8.347, allocations: 0.7071 MB / 3.459 GB, free: 27.74 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.519e-06/8.347, allocations: 4.312 kB / 3.459 GB, free: 27.74 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006398/8.348, allocations: 460.7 kB / 3.46 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/8.349, allocations: 199.8 kB / 3.46 GB, free: 27.71 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6342/8.983, allocations: 152.2 MB / 3.608 GB, free: 80.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004721/8.984, allocations: 0.9998 MB / 3.609 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/8.984, allocations: 43.19 kB / 3.609 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of SimCode: time 1.879e-06/8.984, allocations: 0 / 3.609 GB, free: 79.84 MB / 0.5105 GB Notification: Performance of Templates: time 0.04829/9.032, allocations: 31.57 MB / 3.64 GB, free: 76.98 MB / 0.5105 GB