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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.916/1.916, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.857e-05/1.866e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2643, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.869/6.134, allocations: 2.486 GB / 2.798 GB, free: 104.1 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/6.134, allocations: 82.08 kB / 2.798 GB, free: 104 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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.886/9.02, allocations: 0.6379 GB / 3.436 GB, free: 40.04 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.846e-06/9.02, allocations: 3.562 kB / 3.436 GB, free: 40.04 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.203e-05/9.021, allocations: 24.45 kB / 3.436 GB, free: 40.04 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.007516/9.028, allocations: 2.113 MB / 3.438 GB, free: 39.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/9.028, allocations: 10.88 kB / 3.438 GB, free: 39.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006624/9.035, allocations: 0.5333 MB / 3.439 GB, free: 39.16 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001946/9.037, allocations: 0.6997 MB / 3.44 GB, free: 38.88 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.239e-05/9.037, allocations: 38.78 kB / 3.44 GB, free: 38.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/9.037, allocations: 39.53 kB / 3.44 GB, free: 38.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00187/9.039, allocations: 0.744 MB / 3.44 GB, free: 38.88 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/9.041, allocations: 0.9053 MB / 3.441 GB, free: 38.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.016e-05/9.041, allocations: 6.281 kB / 3.441 GB, free: 38.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/9.041, allocations: 10.89 kB / 3.441 GB, free: 38.59 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.081e-05/9.041, allocations: 21.88 kB / 3.441 GB, free: 38.59 MB / 458.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.3401/9.381, allocations: 109.4 MB / 3.548 GB, free: 22.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/9.382, allocations: 0.5029 MB / 3.549 GB, free: 21.96 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004035/9.383, allocations: 215.2 kB / 3.549 GB, free: 21.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0703/9.453, allocations: 29.14 MB / 3.577 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/9.453, allocations: 42.22 kB / 3.577 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009226/9.454, allocations: 107.7 kB / 3.577 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=46): time 4.919e-06/9.454, allocations: 0 / 3.577 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46): time 0.005627/9.46, allocations: 1.055 MB / 3.578 GB, free: 9.746 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/9.46, allocations: 190.1 kB / 3.579 GB, free: 9.523 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000849/9.461, allocations: 467.9 kB / 3.579 GB, free: 9.207 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000103/9.461, allocations: 25.7 kB / 3.579 GB, free: 9.176 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004028/9.461, allocations: 0.4942 MB / 3.58 GB, free: 8.801 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/9.462, allocations: 153.7 kB / 3.58 GB, free: 8.684 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/9.462, allocations: 0 / 3.58 GB, free: 8.684 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001844/9.462, allocations: 340.2 kB / 3.58 GB, free: 8.363 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004583/9.462, allocations: 184.7 kB / 3.58 GB, free: 8.258 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007202/9.463, allocations: 496.2 kB / 3.581 GB, free: 7.746 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003068/9.466, allocations: 483.3 kB / 3.581 GB, free: 7.48 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-05/9.466, allocations: 4 kB / 3.581 GB, free: 7.477 MB / 0.4948 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00432/9.471, allocations: 0.9191 MB / 3.582 GB, free: 6.902 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002073/9.473, allocations: 3.835 MB / 3.586 GB, free: 2.859 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-05/9.473, allocations: 12 kB / 3.586 GB, free: 2.848 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003722/9.473, allocations: 75.41 kB / 3.586 GB, free: 2.789 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/9.474, allocations: 200.9 kB / 3.586 GB, free: 2.648 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/9.477, allocations: 1.238 MB / 3.587 GB, free: 1.465 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/9.478, allocations: 64.55 kB / 3.587 GB, free: 1.418 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/9.478, allocations: 47.42 kB / 3.587 GB, free: 1.383 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/9.478, allocations: 4 kB / 3.587 GB, free: 1.379 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002958/9.481, allocations: 0.7104 MB / 3.588 GB, free: 0.9688 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/9.481, allocations: 15.19 kB / 3.588 GB, free: 0.957 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/9.481, allocations: 16 kB / 3.588 GB, free: 0.9414 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/9.482, allocations: 208.9 kB / 3.588 GB, free: 0.7891 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.708e-05/9.482, allocations: 29.89 kB / 3.588 GB, free: 0.7734 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000836/9.483, allocations: 53.11 kB / 3.588 GB, free: 0.7344 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/9.483, allocations: 44.78 kB / 3.588 GB, free: 0.7031 MB / 0.4948 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 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,massFlowRate2.medium.phase,boundary_fixed1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,simpleGenericOrifice1.state_b.phase,simpleGenericOrifice1.state_a.phase) * Number of discrete 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.000313/9.483, allocations: 146.9 kB / 3.589 GB, free: 0.5703 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/9.484, allocations: 67.16 kB / 3.589 GB, free: 0.5039 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3039/9.788, allocations: 2.799 MB / 3.591 GB, free: 86.48 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.204e-05/9.788, allocations: 43.42 kB / 3.591 GB, free: 86.48 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.109e-06/9.788, allocations: 3.75 kB / 3.591 GB, free: 86.48 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/9.788, allocations: 5.078 kB / 3.591 GB, free: 86.48 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007145/9.795, allocations: 3.694 MB / 3.595 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/9.795, allocations: 0 / 3.595 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000543/9.796, allocations: 100.7 kB / 3.595 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009403/9.796, allocations: 0.7156 MB / 3.596 GB, free: 85.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.878e-05/9.797, allocations: 13.2 kB / 3.596 GB, free: 85.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001867/9.798, allocations: 1.646 MB / 3.597 GB, free: 84.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.75e-06/9.798, allocations: 2.031 kB / 3.597 GB, free: 84.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003804/9.802, allocations: 1.937 MB / 3.599 GB, free: 84.52 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005946/9.803, allocations: 297.6 kB / 3.6 GB, free: 84.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001734/9.803, allocations: 4.078 kB / 3.6 GB, free: 84.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008085/9.804, allocations: 37.27 kB / 3.6 GB, free: 84.36 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001393/9.804, allocations: 53.7 kB / 3.6 GB, free: 84.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-05/9.804, allocations: 18.09 kB / 3.6 GB, free: 84.36 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000616/9.805, allocations: 386.5 kB / 3.6 GB, free: 84.27 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.63e-07/9.805, allocations: 0 / 3.6 GB, free: 84.27 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005485/9.81, allocations: 1.236 MB / 3.601 GB, free: 84.24 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 22 ($cse9.phase,$cse9.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.region3boundary,$cse18.region3boundary,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,massFlowRate1.medium.phase,$cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,massFlowRate2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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.00816/9.819, allocations: 1.922 MB / 3.603 GB, free: 84.05 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00256/9.821, allocations: 1.142 MB / 3.604 GB, free: 84.03 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.391e-06/9.821, allocations: 2.75 kB / 3.604 GB, free: 84.03 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001171/9.822, allocations: 0.6724 MB / 3.605 GB, free: 84.03 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002149/9.825, allocations: 301.7 kB / 3.605 GB, free: 84.02 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7372/10.56, allocations: 196.6 MB / 3.797 GB, free: 86.06 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007273/10.56, allocations: 1.184 MB / 3.798 GB, free: 85.36 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/10.56, allocations: 86.88 kB / 3.798 GB, free: 85.36 MB / 0.4948 GB Notification: Performance of SimCode: time 1.8e-06/10.56, allocations: 0 / 3.798 GB, free: 85.36 MB / 0.4948 GB Notification: Performance of Templates: time 0.06551/10.63, allocations: 42.88 MB / 3.84 GB, free: 82.93 MB / 0.4948 GB