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.TestDensity.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.Sensors.TestDensity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|density2_1.d|density2_2.d|density1_1.d|density1_2.d|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadModel(ModelicaTest): time 1.832/1.832, allocations: 209.3 MB / 224.9 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004437/0.0004438, allocations: 16 kB / 282.6 MB, free: 9.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2854, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.876/6.162, allocations: 2.486 GB / 2.81 GB, free: 52.53 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/6.162, allocations: 85.55 kB / 2.81 GB, free: 52.45 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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/OpenModelica/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 .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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/OpenModelica/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 2.781/8.943, allocations: 0.6455 GB / 3.456 GB, free: 41.09 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.633e-06/8.943, allocations: 1.312 kB / 3.456 GB, free: 41.09 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.273e-05/8.943, allocations: 28.33 kB / 3.456 GB, free: 41.08 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007103/8.95, allocations: 2.195 MB / 3.458 GB, free: 39.98 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/8.95, allocations: 9.062 kB / 3.458 GB, free: 39.98 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006081/8.956, allocations: 0.5286 MB / 3.458 GB, free: 39.93 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/8.958, allocations: 0.7022 MB / 3.459 GB, free: 39.66 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.408e-05/8.958, allocations: 62.59 kB / 3.459 GB, free: 39.66 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/8.959, allocations: 75.28 kB / 3.459 GB, free: 39.66 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004177/8.963, allocations: 1.367 MB / 3.46 GB, free: 39.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.408e-05/8.963, allocations: 5 kB / 3.46 GB, free: 39.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001312/8.963, allocations: 38.66 kB / 3.46 GB, free: 39.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/8.963, allocations: 21.86 kB / 3.46 GB, free: 39.37 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004399/8.967, allocations: 1.234 MB / 3.462 GB, free: 39.37 MB / 458.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.007575/8.975, allocations: 5.469 MB / 3.467 GB, free: 35.78 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003528/8.979, allocations: 0.8492 MB / 3.468 GB, free: 35.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1581/9.137, allocations: 60.13 MB / 3.527 GB, free: 17.94 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/9.137, allocations: 40.31 kB / 3.527 GB, free: 17.89 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000876/9.138, allocations: 123.8 kB / 3.527 GB, free: 17.81 MB / 474.7 MB Notification: Performance of pre-optimization done (n=58): time 3.737e-06/9.138, allocations: 3.938 kB / 3.527 GB, free: 17.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=58): time 0.006635/9.144, allocations: 1.578 MB / 3.528 GB, free: 16.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/9.145, allocations: 199 kB / 3.528 GB, free: 16.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007211/9.145, allocations: 483.3 kB / 3.529 GB, free: 16.22 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.978e-05/9.145, allocations: 38.2 kB / 3.529 GB, free: 16.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000273/9.146, allocations: 460.2 kB / 3.529 GB, free: 15.85 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/9.146, allocations: 202.4 kB / 3.53 GB, free: 15.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/9.146, allocations: 14.31 kB / 3.53 GB, free: 15.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/9.146, allocations: 344.5 kB / 3.53 GB, free: 15.37 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007219/9.147, allocations: 228.7 kB / 3.53 GB, free: 15.25 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008326/9.148, allocations: 0.5409 MB / 3.531 GB, free: 14.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008368/9.149, allocations: 299.3 kB / 3.531 GB, free: 14.53 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.321e-06/9.149, allocations: 0 / 3.531 GB, free: 14.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002336/9.151, allocations: 0.846 MB / 3.532 GB, free: 13.97 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001796/9.153, allocations: 3.837 MB / 3.536 GB, free: 9.918 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/9.153, allocations: 12.75 kB / 3.536 GB, free: 9.906 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003738/9.156, allocations: 387.7 kB / 3.536 GB, free: 9.645 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009997/9.158, allocations: 198.4 kB / 3.536 GB, free: 9.492 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/9.159, allocations: 1.141 MB / 3.537 GB, free: 8.363 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009961/9.16, allocations: 54.31 kB / 3.537 GB, free: 8.332 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.547e-05/9.16, allocations: 53.8 kB / 3.537 GB, free: 8.293 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/9.16, allocations: 4 kB / 3.537 GB, free: 8.289 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002029/9.162, allocations: 0.7513 MB / 3.538 GB, free: 7.828 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/9.162, allocations: 12.75 kB / 3.538 GB, free: 7.816 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/9.162, allocations: 16 kB / 3.538 GB, free: 7.801 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009399/9.163, allocations: 222.1 kB / 3.538 GB, free: 7.629 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.855e-05/9.163, allocations: 15.94 kB / 3.538 GB, free: 7.613 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007292/9.164, allocations: 71.88 kB / 3.538 GB, free: 7.566 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.792e-05/9.164, allocations: 49.78 kB / 3.538 GB, free: 7.531 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 8 (boundary_fixed1.medium.phase,boundary_fixed.medium.phase,massFlowRate1.medium.phase,massFlowRate2.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006396/9.164, allocations: 311.5 kB / 3.539 GB, free: 7.281 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000208/9.165, allocations: 71.16 kB / 3.539 GB, free: 7.211 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005587/9.17, allocations: 3.567 MB / 3.542 GB, free: 4.316 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.174e-05/9.17, allocations: 54.75 kB / 3.542 GB, free: 4.281 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.995e-06/9.17, allocations: 0 / 3.542 GB, free: 4.281 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/9.17, allocations: 7.656 kB / 3.542 GB, free: 4.277 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002926/9.173, allocations: 1.698 MB / 3.544 GB, free: 2.797 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/9.173, allocations: 4 kB / 3.544 GB, free: 2.793 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007412/9.174, allocations: 126.4 kB / 3.544 GB, free: 2.691 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002745/9.177, allocations: 0.7743 MB / 3.545 GB, free: 2.039 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-05/9.177, allocations: 18.88 kB / 3.545 GB, free: 2.027 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/9.179, allocations: 1.529 MB / 3.546 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.288e-06/9.179, allocations: 4.031 kB / 3.546 GB, free: 0.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2922/9.471, allocations: 2.059 MB / 3.548 GB, free: 56.65 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006988/9.472, allocations: 415 kB / 3.549 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/9.472, allocations: 17.81 kB / 3.549 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007533/9.473, allocations: 46.17 kB / 3.549 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/9.473, allocations: 66.92 kB / 3.549 GB, free: 56.53 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-05/9.473, allocations: 19.62 kB / 3.549 GB, free: 56.53 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008992/9.474, allocations: 0.5368 MB / 3.549 GB, free: 56.42 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.8e-07/9.474, allocations: 0 / 3.549 GB, free: 56.42 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005447/9.479, allocations: 1.318 MB / 3.551 GB, free: 56.39 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 28 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,$cse13.phase,$cse13.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse22.region3boundary,$cse23.region3boundary,$cse24.phase,$cse24.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.008038/9.487, allocations: 1.756 MB / 3.552 GB, free: 56.26 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0039/9.491, allocations: 1.406 MB / 3.554 GB, free: 56.23 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.759e-06/9.491, allocations: 0 / 3.554 GB, free: 56.23 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/9.493, allocations: 0.8303 MB / 3.555 GB, free: 56.22 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/9.495, allocations: 348.4 kB / 3.555 GB, free: 56.21 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.37/10.87, allocations: 416.9 MB / 3.962 GB, free: 51.34 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007721/10.87, allocations: 1.292 MB / 3.963 GB, free: 50.61 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003072/10.87, allocations: 81.53 kB / 3.964 GB, free: 50.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.98e-06/10.87, allocations: 0 / 3.964 GB, free: 50.6 MB / 474.7 MB Notification: Performance of Templates: time 0.06195/10.93, allocations: 45.72 MB / 4.008 GB, free: 47.18 MB / 474.7 MB