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.88/1.88, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.828e-05/2.852e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.08435, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.05/6.135, allocations: 2.486 GB / 2.805 GB, free: 124.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/6.135, allocations: 86.56 kB / 2.805 GB, free: 124.2 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.537/8.672, allocations: 0.6436 GB / 3.449 GB, free: 8.809 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.204e-06/8.672, allocations: 0 / 3.449 GB, free: 8.809 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.09e-05/8.672, allocations: 20 kB / 3.449 GB, free: 8.789 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.007917/8.68, allocations: 2.11 MB / 3.451 GB, free: 6.641 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/8.68, allocations: 8.031 kB / 3.451 GB, free: 6.633 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006413/8.686, allocations: 0.5384 MB / 3.452 GB, free: 6.098 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002097/8.688, allocations: 0.6952 MB / 3.452 GB, free: 5.371 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/8.688, allocations: 62 kB / 3.452 GB, free: 5.312 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/8.689, allocations: 76 kB / 3.452 GB, free: 5.238 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004489/8.693, allocations: 1.353 MB / 3.454 GB, free: 3.797 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/8.693, allocations: 4 kB / 3.454 GB, free: 3.793 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000156/8.693, allocations: 43.95 kB / 3.454 GB, free: 3.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.62e-05/8.693, allocations: 20 kB / 3.454 GB, free: 3.73 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004166/8.698, allocations: 1.153 MB / 3.455 GB, free: 2.57 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.2956/8.993, allocations: 5.461 MB / 3.46 GB, free: 34.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003207/8.997, allocations: 0.8634 MB / 3.461 GB, free: 33.97 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005965/8.997, allocations: 255.7 kB / 3.461 GB, free: 33.95 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1654/9.163, allocations: 60.49 MB / 3.52 GB, free: 21.21 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.234e-05/9.163, allocations: 36.69 kB / 3.52 GB, free: 21.18 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008592/9.164, allocations: 125.3 kB / 3.521 GB, free: 21.17 MB / 474.7 MB Notification: Performance of pre-optimization done (n=58): time 4.114e-06/9.164, allocations: 0 / 3.521 GB, free: 21.17 MB / 474.7 MB Notification: Performance of matching and sorting (n=58): time 0.005023/9.169, allocations: 1.251 MB / 3.522 GB, free: 21.09 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/9.169, allocations: 193.6 kB / 3.522 GB, free: 20.87 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007305/9.17, allocations: 475.1 kB / 3.522 GB, free: 20.74 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.551e-05/9.17, allocations: 40.33 kB / 3.522 GB, free: 20.71 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/9.17, allocations: 466.7 kB / 3.523 GB, free: 20.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/9.17, allocations: 201 kB / 3.523 GB, free: 20.35 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/9.17, allocations: 15.41 kB / 3.523 GB, free: 20.35 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001723/9.17, allocations: 342.1 kB / 3.523 GB, free: 20.04 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004558/9.171, allocations: 194.5 kB / 3.524 GB, free: 20.04 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/9.171, allocations: 0.4948 MB / 3.524 GB, free: 19.64 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005978/9.172, allocations: 277.3 kB / 3.524 GB, free: 19.62 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.859e-06/9.172, allocations: 3.812 kB / 3.524 GB, free: 19.62 MB / 474.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001855/9.174, allocations: 0.7728 MB / 3.525 GB, free: 19.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001751/9.176, allocations: 3.843 MB / 3.529 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.444e-05/9.176, allocations: 9.594 kB / 3.529 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003825/9.18, allocations: 386 kB / 3.529 GB, free: 15.49 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/9.181, allocations: 195 kB / 3.529 GB, free: 15.49 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/9.182, allocations: 1.136 MB / 3.531 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/9.183, allocations: 62.14 kB / 3.531 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-05/9.183, allocations: 49.11 kB / 3.531 GB, free: 14.45 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/9.183, allocations: 3.844 kB / 3.531 GB, free: 14.45 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001535/9.185, allocations: 0.6828 MB / 3.531 GB, free: 14.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.662e-05/9.185, allocations: 10.88 kB / 3.531 GB, free: 14.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/9.185, allocations: 13.5 kB / 3.531 GB, free: 14.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/9.186, allocations: 219.6 kB / 3.532 GB, free: 14.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.446e-05/9.186, allocations: 23.33 kB / 3.532 GB, free: 14.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008739/9.187, allocations: 66.44 kB / 3.532 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/9.187, allocations: 46.52 kB / 3.532 GB, free: 14.41 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 () * 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.0003493/9.187, allocations: 168.1 kB / 3.532 GB, free: 14.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002489/9.188, allocations: 71.81 kB / 3.532 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004929/9.193, allocations: 3.6 MB / 3.535 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-05/9.193, allocations: 49.36 kB / 3.535 GB, free: 13.88 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/9.193, allocations: 4 kB / 3.535 GB, free: 13.87 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/9.193, allocations: 7.219 kB / 3.535 GB, free: 13.87 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002514/9.195, allocations: 1.695 MB / 3.537 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.791e-06/9.195, allocations: 2.312 kB / 3.537 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006995/9.196, allocations: 128.8 kB / 3.537 GB, free: 13.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002879/9.199, allocations: 0.8985 MB / 3.538 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/9.199, allocations: 14.22 kB / 3.538 GB, free: 13.57 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00143/9.2, allocations: 1.535 MB / 3.54 GB, free: 12.52 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/9.2, allocations: 128 / 3.54 GB, free: 12.52 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002831/9.203, allocations: 1.987 MB / 3.542 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000665/9.204, allocations: 417.2 kB / 3.542 GB, free: 11.88 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/9.204, allocations: 18.11 kB / 3.542 GB, free: 11.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008091/9.205, allocations: 51.95 kB / 3.542 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001438/9.205, allocations: 61.19 kB / 3.542 GB, free: 11.86 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/9.205, allocations: 25 kB / 3.542 GB, free: 11.86 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008918/9.206, allocations: 0.5236 MB / 3.543 GB, free: 11.74 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.79e-07/9.206, allocations: 0 / 3.543 GB, free: 11.74 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005328/9.212, allocations: 1.322 MB / 3.544 GB, free: 11.67 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 () * 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.008214/9.22, allocations: 1.756 MB / 3.546 GB, free: 27.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002866/9.223, allocations: 1.304 MB / 3.547 GB, free: 27.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.69e-06/9.223, allocations: 1.438 kB / 3.547 GB, free: 27.34 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001315/9.224, allocations: 0.7907 MB / 3.548 GB, free: 27.32 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002278/9.226, allocations: 342 kB / 3.548 GB, free: 27.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.403/10.63, allocations: 415.4 MB / 3.954 GB, free: 33.76 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00074/10.63, allocations: 1.291 MB / 3.955 GB, free: 32.66 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002987/10.63, allocations: 83.97 kB / 3.955 GB, free: 32.59 MB / 490.7 MB Notification: Performance of SimCode: time 1.728e-06/10.63, allocations: 0 / 3.955 GB, free: 32.59 MB / 490.7 MB Notification: Performance of Templates: time 0.3553/10.99, allocations: 45.5 MB / 3.999 GB, free: 63.24 MB / 490.7 MB