Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.061/2.061, allocations: 209.2 MB / 225.4 MB, free: 0.625 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006463/0.0006465, allocations: 8 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1115, allocations: 48.71 MB / 331.8 MB, free: 8.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.778/7.89, allocations: 2.486 GB / 2.81 GB, free: 33.86 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/7.89, allocations: 88.52 kB / 2.811 GB, free: 33.81 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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 3.44/11.33, allocations: 0.6455 GB / 3.456 GB, free: 27.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.775e-06/11.33, allocations: 0 / 3.456 GB, free: 27.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.394e-05/11.33, allocations: 28.72 kB / 3.456 GB, free: 27.77 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009902/11.34, allocations: 2.189 MB / 3.458 GB, free: 26.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/11.34, allocations: 10.34 kB / 3.458 GB, free: 26.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007105/11.35, allocations: 0.5305 MB / 3.459 GB, free: 26.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002376/11.35, allocations: 0.7019 MB / 3.459 GB, free: 25.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.844e-05/11.35, allocations: 65.12 kB / 3.46 GB, free: 25.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001602/11.35, allocations: 78.47 kB / 3.46 GB, free: 25.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0051/11.35, allocations: 1.368 MB / 3.461 GB, free: 25.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.889e-05/11.35, allocations: 0 / 3.461 GB, free: 25.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001533/11.36, allocations: 37.61 kB / 3.461 GB, free: 25.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.238e-05/11.36, allocations: 27.03 kB / 3.461 GB, free: 25.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005372/11.36, allocations: 1.237 MB / 3.462 GB, free: 24.98 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.009331/11.37, allocations: 5.478 MB / 3.468 GB, free: 20.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004304/11.37, allocations: 0.854 MB / 3.468 GB, free: 20.39 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6354/12.01, allocations: 60.12 MB / 3.527 GB, free: 62.3 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.06e-05/12.01, allocations: 47.23 kB / 3.527 GB, free: 62.27 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00116/12.01, allocations: 115.5 kB / 3.527 GB, free: 62.27 MB / 474.7 MB Notification: Performance of pre-optimization done (n=58): time 3.256e-06/12.01, allocations: 3 kB / 3.527 GB, free: 62.27 MB / 474.7 MB Notification: Performance of matching and sorting (n=58): time 0.008736/12.02, allocations: 1.585 MB / 3.529 GB, free: 62.02 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/12.02, allocations: 191.1 kB / 3.529 GB, free: 61.8 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/12.02, allocations: 0.5427 MB / 3.53 GB, free: 61.68 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/12.02, allocations: 38.48 kB / 3.53 GB, free: 61.65 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003217/12.02, allocations: 461.4 kB / 3.53 GB, free: 61.39 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/12.02, allocations: 203 kB / 3.53 GB, free: 61.29 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.159e-05/12.02, allocations: 15.25 kB / 3.53 GB, free: 61.29 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.636e-05/12.02, allocations: 345.1 kB / 3.531 GB, free: 60.98 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/12.02, allocations: 224 kB / 3.531 GB, free: 60.98 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/12.02, allocations: 0.5412 MB / 3.531 GB, free: 60.59 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/12.03, allocations: 303.1 kB / 3.532 GB, free: 60.59 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/12.03, allocations: 5.703 kB / 3.532 GB, free: 60.59 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003365/12.03, allocations: 0.8442 MB / 3.532 GB, free: 60.53 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002454/12.03, allocations: 386.8 kB / 3.533 GB, free: 60.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/12.03, allocations: 9.594 kB / 3.533 GB, free: 60.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005839/12.04, allocations: 386.5 kB / 3.533 GB, free: 60.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/12.04, allocations: 197.2 kB / 3.533 GB, free: 60.08 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/12.04, allocations: 1.14 MB / 3.534 GB, free: 59.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/12.04, allocations: 64.83 kB / 3.534 GB, free: 59.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001652/12.04, allocations: 49.81 kB / 3.535 GB, free: 59.04 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/12.04, allocations: 3.031 kB / 3.535 GB, free: 59.04 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003166/12.04, allocations: 0.7541 MB / 3.535 GB, free: 59.03 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/12.04, allocations: 11.53 kB / 3.535 GB, free: 59.03 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/12.04, allocations: 18.16 kB / 3.535 GB, free: 59.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/12.04, allocations: 212.8 kB / 3.536 GB, free: 59.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.985e-05/12.04, allocations: 25.12 kB / 3.536 GB, free: 59.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001095/12.05, allocations: 68.33 kB / 3.536 GB, free: 59.02 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/12.05, allocations: 50.05 kB / 3.536 GB, free: 59.02 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.0008589/12.05, allocations: 312.5 kB / 3.536 GB, free: 58.84 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002889/12.05, allocations: 72.03 kB / 3.536 GB, free: 58.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007686/12.05, allocations: 3.568 MB / 3.539 GB, free: 58.46 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.1e-05/12.05, allocations: 46.91 kB / 3.54 GB, free: 58.46 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/12.05, allocations: 1.25 kB / 3.54 GB, free: 58.46 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.498e-05/12.05, allocations: 6.062 kB / 3.54 GB, free: 58.46 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003273/12.06, allocations: 1.695 MB / 3.541 GB, free: 58.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.957e-05/12.06, allocations: 2.734 kB / 3.541 GB, free: 58.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/12.06, allocations: 125.2 kB / 3.541 GB, free: 58.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003548/12.06, allocations: 0.7799 MB / 3.542 GB, free: 58.17 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001781/12.06, allocations: 15.66 kB / 3.542 GB, free: 58.17 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/12.06, allocations: 1.53 MB / 3.544 GB, free: 57.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/12.06, allocations: 8.234 kB / 3.544 GB, free: 57.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004883/12.07, allocations: 2.045 MB / 3.546 GB, free: 56.68 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/12.07, allocations: 415.4 kB / 3.546 GB, free: 56.46 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002766/12.07, allocations: 15.06 kB / 3.546 GB, free: 56.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/12.07, allocations: 51.75 kB / 3.546 GB, free: 56.46 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/12.07, allocations: 65.86 kB / 3.546 GB, free: 56.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.173e-05/12.07, allocations: 22.73 kB / 3.546 GB, free: 56.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001252/12.07, allocations: 0.5363 MB / 3.547 GB, free: 56.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.41e-07/12.07, allocations: 0 / 3.547 GB, free: 56.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007742/12.08, allocations: 1.316 MB / 3.548 GB, free: 56.26 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.01127/12.09, allocations: 1.767 MB / 3.55 GB, free: 56.05 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005099/12.1, allocations: 1.399 MB / 3.551 GB, free: 56.02 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/12.1, allocations: 3.688 kB / 3.551 GB, free: 56.02 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/12.1, allocations: 0.83 MB / 3.552 GB, free: 56.01 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/12.1, allocations: 349.4 kB / 3.552 GB, free: 56 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.813/13.92, allocations: 416.6 MB / 3.959 GB, free: 53.86 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008511/13.92, allocations: 1.293 MB / 3.96 GB, free: 53.13 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000435/13.92, allocations: 83 kB / 3.96 GB, free: 53.12 MB / 474.7 MB Notification: Performance of SimCode: time 1.443e-06/13.92, allocations: 4 kB / 3.96 GB, free: 53.12 MB / 474.7 MB Notification: Performance of Templates: time 0.08502/14, allocations: 45.72 MB / 4.005 GB, free: 33.51 MB / 474.7 MB