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.TestDensity.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestDensity") Notification: Performance of loadModel(ModelicaTest): time 2.194/2.194, allocations: 234.9 MB / 250.5 MB, free: 9.469 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004332, allocations: 16 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2768, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.095/6.372, allocations: 2.597 GB / 2.958 GB, free: 119 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/6.372, allocations: 86.2 kB / 2.958 GB, free: 119 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 .... [/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 2.606/8.978, allocations: 0.663 GB / 3.621 GB, free: 6.918 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.999e-06/8.978, allocations: 0 / 3.621 GB, free: 6.918 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.914e-05/8.978, allocations: 22.11 kB / 3.621 GB, free: 6.898 MB / 490.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.007192/8.986, allocations: 2.275 MB / 3.623 GB, free: 4.586 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/8.986, allocations: 12.03 kB / 3.623 GB, free: 4.574 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006139/8.992, allocations: 0.5651 MB / 3.624 GB, free: 4.012 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001754/8.994, allocations: 0.703 MB / 3.624 GB, free: 3.277 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.052e-05/8.994, allocations: 70 kB / 3.625 GB, free: 3.211 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/8.994, allocations: 72 kB / 3.625 GB, free: 3.141 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003905/8.998, allocations: 1.364 MB / 3.626 GB, free: 1.688 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.025e-05/8.998, allocations: 7.922 kB / 3.626 GB, free: 1.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/8.998, allocations: 36 kB / 3.626 GB, free: 1.645 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/8.998, allocations: 20 kB / 3.626 GB, free: 1.625 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004081/9.002, allocations: 1.236 MB / 3.627 GB, free: 392 kB / 490.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.00896/9.011, allocations: 5.465 MB / 3.633 GB, free: 10.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003754/9.015, allocations: 0.8621 MB / 3.633 GB, free: 9.715 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4766/9.491, allocations: 60.18 MB / 3.692 GB, free: 19.67 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/9.492, allocations: 40.72 kB / 3.692 GB, free: 19.63 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009387/9.492, allocations: 126.2 kB / 3.692 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=58): time 3.492e-06/9.492, allocations: 0 / 3.692 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=58): time 0.007039/9.5, allocations: 1.581 MB / 3.694 GB, free: 19.37 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/9.5, allocations: 193 kB / 3.694 GB, free: 19.15 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/9.5, allocations: 479.1 kB / 3.694 GB, free: 19.03 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 6.943e-05/9.5, allocations: 36.98 kB / 3.695 GB, free: 19 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/9.501, allocations: 466.4 kB / 3.695 GB, free: 18.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/9.501, allocations: 199.2 kB / 3.695 GB, free: 18.65 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-05/9.501, allocations: 14.25 kB / 3.695 GB, free: 18.65 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.772e-05/9.501, allocations: 344.8 kB / 3.695 GB, free: 18.34 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008006/9.502, allocations: 224.6 kB / 3.696 GB, free: 18.33 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009216/9.503, allocations: 0.5441 MB / 3.696 GB, free: 17.93 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009183/9.504, allocations: 302 kB / 3.697 GB, free: 17.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.043e-06/9.504, allocations: 0 / 3.697 GB, free: 17.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002505/9.506, allocations: 0.852 MB / 3.697 GB, free: 17.83 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001739/9.508, allocations: 3.844 MB / 3.701 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/9.508, allocations: 9.938 kB / 3.701 GB, free: 29.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00383/9.512, allocations: 383.5 kB / 3.701 GB, free: 29.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009571/9.513, allocations: 203 kB / 3.702 GB, free: 29.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/9.514, allocations: 1.139 MB / 3.703 GB, free: 28.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/9.515, allocations: 57.27 kB / 3.703 GB, free: 28.73 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/9.515, allocations: 55.14 kB / 3.703 GB, free: 28.73 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/9.515, allocations: 3.125 kB / 3.703 GB, free: 28.73 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002194/9.517, allocations: 0.7447 MB / 3.704 GB, free: 28.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/9.517, allocations: 13.84 kB / 3.704 GB, free: 28.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/9.517, allocations: 19.05 kB / 3.704 GB, free: 28.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/9.519, allocations: 220.3 kB / 3.704 GB, free: 28.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.168e-05/9.519, allocations: 21.27 kB / 3.704 GB, free: 28.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008041/9.519, allocations: 64.67 kB / 3.704 GB, free: 28.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.274e-05/9.52, allocations: 46.81 kB / 3.704 GB, free: 28.7 MB / 0.5105 GB 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.0006447/9.52, allocations: 318.7 kB / 3.704 GB, free: 28.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/9.52, allocations: 70.22 kB / 3.704 GB, free: 28.47 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005252/9.526, allocations: 3.566 MB / 3.708 GB, free: 28.08 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.584e-05/9.526, allocations: 53.84 kB / 3.708 GB, free: 28.08 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/9.526, allocations: 0 / 3.708 GB, free: 28.08 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/9.526, allocations: 9.75 kB / 3.708 GB, free: 28.08 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00232/9.528, allocations: 1.691 MB / 3.71 GB, free: 27.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.191e-06/9.528, allocations: 1.875 kB / 3.71 GB, free: 27.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007367/9.529, allocations: 127.8 kB / 3.71 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002729/9.532, allocations: 0.7733 MB / 3.71 GB, free: 27.78 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/9.532, allocations: 14.5 kB / 3.71 GB, free: 27.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00141/9.533, allocations: 1.537 MB / 3.712 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.934e-06/9.533, allocations: 3.953 kB / 3.712 GB, free: 26.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003228/9.536, allocations: 2.062 MB / 3.714 GB, free: 26.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000629/9.537, allocations: 418.4 kB / 3.714 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001525/9.537, allocations: 10.94 kB / 3.714 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007041/9.538, allocations: 56.19 kB / 3.714 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/9.538, allocations: 55.38 kB / 3.714 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-05/9.538, allocations: 26.36 kB / 3.715 GB, free: 26.06 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0008465/9.539, allocations: 0.5255 MB / 3.715 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.45e-07/9.539, allocations: 3.391 kB / 3.715 GB, free: 25.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005307/9.544, allocations: 1.327 MB / 3.716 GB, free: 25.89 MB / 0.5105 GB 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.007314/9.552, allocations: 1.754 MB / 3.718 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003554/9.555, allocations: 1.415 MB / 3.719 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.151e-06/9.555, allocations: 0 / 3.719 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001513/9.557, allocations: 0.8262 MB / 3.72 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/9.559, allocations: 353 kB / 3.721 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.466/11.03, allocations: 425.7 MB / 4.136 GB, free: 66.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007833/11.03, allocations: 1.285 MB / 4.138 GB, free: 65.33 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/11.03, allocations: 84.25 kB / 4.138 GB, free: 65.32 MB / 0.5261 GB Notification: Performance of SimCode: time 1.652e-06/11.03, allocations: 0 / 4.138 GB, free: 65.32 MB / 0.5261 GB Notification: Performance of Templates: time 0.06085/11.09, allocations: 45.8 MB / 4.182 GB, free: 44.7 MB / 0.5261 GB