Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.465/2.465, allocations: 234.9 MB / 251.1 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004404, allocations: 12 kB / 315 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.357, allocations: 54.86 MB / 369.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.981/8.339, allocations: 2.597 GB / 2.958 GB, free: 102.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/8.339, allocations: 98.81 kB / 2.958 GB, free: 102.8 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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 3.318/11.66, allocations: 0.663 GB / 3.621 GB, free: 7.637 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.494e-06/11.66, allocations: 0 / 3.621 GB, free: 7.637 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.484e-05/11.66, allocations: 23.98 kB / 3.622 GB, free: 7.613 MB / 0.4948 GB 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.01001/11.67, allocations: 2.268 MB / 3.624 GB, free: 5.293 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/11.67, allocations: 8.031 kB / 3.624 GB, free: 5.285 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007354/11.68, allocations: 0.5686 MB / 3.624 GB, free: 4.715 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002486/11.68, allocations: 0.7132 MB / 3.625 GB, free: 3.957 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/11.68, allocations: 62 kB / 3.625 GB, free: 3.898 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001782/11.68, allocations: 72 kB / 3.625 GB, free: 3.828 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005342/11.68, allocations: 1.367 MB / 3.626 GB, free: 2.371 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.559e-05/11.68, allocations: 7.938 kB / 3.626 GB, free: 2.363 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/11.68, allocations: 36 kB / 3.626 GB, free: 2.328 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.595e-05/11.68, allocations: 16 kB / 3.626 GB, free: 2.312 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005665/11.69, allocations: 1.236 MB / 3.628 GB, free: 1.07 MB / 0.4948 GB 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.4188/12.11, allocations: 5.466 MB / 3.633 GB, free: 37.86 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004881/12.11, allocations: 0.849 MB / 3.634 GB, free: 37.81 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2443/12.36, allocations: 60.2 MB / 3.693 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.347e-05/12.36, allocations: 45.03 kB / 3.693 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001193/12.36, allocations: 119.4 kB / 3.693 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=58): time 3.287e-06/12.36, allocations: 4 kB / 3.693 GB, free: 25.17 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58): time 0.008197/12.37, allocations: 1.585 MB / 3.694 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/12.37, allocations: 195.1 kB / 3.695 GB, free: 24.66 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009324/12.37, allocations: 0.5348 MB / 3.695 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000162/12.37, allocations: 33.2 kB / 3.695 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003158/12.37, allocations: 461.2 kB / 3.696 GB, free: 24.23 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000218/12.37, allocations: 205.8 kB / 3.696 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.253e-05/12.37, allocations: 15.97 kB / 3.696 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000149/12.37, allocations: 344.4 kB / 3.696 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/12.37, allocations: 230.1 kB / 3.696 GB, free: 23.82 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/12.37, allocations: 0.546 MB / 3.697 GB, free: 23.42 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001196/12.37, allocations: 307.6 kB / 3.697 GB, free: 23.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.946e-06/12.37, allocations: 0 / 3.697 GB, free: 23.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003071/12.38, allocations: 0.8476 MB / 3.698 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002596/12.38, allocations: 384.8 kB / 3.698 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/12.38, allocations: 11.62 kB / 3.698 GB, free: 22.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005747/12.38, allocations: 382.3 kB / 3.699 GB, free: 22.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/12.38, allocations: 202.7 kB / 3.699 GB, free: 22.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/12.38, allocations: 1.142 MB / 3.7 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/12.39, allocations: 62.5 kB / 3.7 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/12.39, allocations: 48.16 kB / 3.7 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/12.39, allocations: 5.781 kB / 3.7 GB, free: 21.79 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002665/12.39, allocations: 0.7467 MB / 3.701 GB, free: 21.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/12.39, allocations: 10.47 kB / 3.701 GB, free: 21.77 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/12.39, allocations: 18.38 kB / 3.701 GB, free: 21.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/12.39, allocations: 217.3 kB / 3.701 GB, free: 21.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.156e-05/12.39, allocations: 22.78 kB / 3.701 GB, free: 21.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009495/12.39, allocations: 62.08 kB / 3.701 GB, free: 21.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.717e-05/12.39, allocations: 46.09 kB / 3.701 GB, free: 21.76 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.0007773/12.39, allocations: 321.6 kB / 3.702 GB, free: 21.57 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/12.39, allocations: 74.41 kB / 3.702 GB, free: 21.53 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006584/12.4, allocations: 3.557 MB / 3.705 GB, free: 21.15 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.323e-05/12.4, allocations: 47.59 kB / 3.705 GB, free: 21.15 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/12.4, allocations: 0 / 3.705 GB, free: 21.15 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.109e-05/12.4, allocations: 9.5 kB / 3.705 GB, free: 21.15 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/12.4, allocations: 1.702 MB / 3.707 GB, free: 20.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/12.4, allocations: 3.812 kB / 3.707 GB, free: 20.88 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/12.4, allocations: 122.8 kB / 3.707 GB, free: 20.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003257/12.41, allocations: 0.7757 MB / 3.708 GB, free: 20.84 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001537/12.41, allocations: 14.59 kB / 3.708 GB, free: 20.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/12.41, allocations: 1.536 MB / 3.709 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/12.41, allocations: 5.75 kB / 3.709 GB, free: 19.79 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003936/12.41, allocations: 2.044 MB / 3.711 GB, free: 19.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008841/12.41, allocations: 420.7 kB / 3.712 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000216/12.41, allocations: 13.16 kB / 3.712 GB, free: 19.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009423/12.41, allocations: 55.36 kB / 3.712 GB, free: 19.14 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/12.41, allocations: 55.55 kB / 3.712 GB, free: 19.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.666e-05/12.41, allocations: 23.41 kB / 3.712 GB, free: 19.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009925/12.42, allocations: 0.5311 MB / 3.712 GB, free: 19.04 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.51e-07/12.42, allocations: 2.625 kB / 3.712 GB, free: 19.04 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006702/12.42, allocations: 1.328 MB / 3.714 GB, free: 18.98 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.01001/12.43, allocations: 1.766 MB / 3.715 GB, free: 18.67 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004663/12.44, allocations: 1.399 MB / 3.717 GB, free: 18.64 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/12.44, allocations: 3.188 kB / 3.717 GB, free: 18.64 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001802/12.44, allocations: 0.8273 MB / 3.717 GB, free: 18.62 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/12.44, allocations: 353.6 kB / 3.718 GB, free: 18.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.889/14.33, allocations: 426 MB / 4.134 GB, free: 61.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008163/14.33, allocations: 1.284 MB / 4.135 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/14.33, allocations: 87.64 kB / 4.135 GB, free: 60.64 MB / 0.5261 GB Notification: Performance of SimCode: time 1.222e-06/14.33, allocations: 4 kB / 4.135 GB, free: 60.63 MB / 0.5261 GB Notification: Performance of Templates: time 0.08196/14.41, allocations: 45.8 MB / 4.18 GB, free: 32.36 MB / 0.5261 GB