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.164/2.164, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.975e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3199, allocations: 54.86 MB / 364.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.742/6.062, allocations: 2.597 GB / 2.953 GB, free: 83.43 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/6.063, allocations: 84.66 kB / 2.953 GB, free: 83.34 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.918/8.981, allocations: 0.6611 GB / 3.614 GB, free: 40.52 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.201e-06/8.981, allocations: 0 / 3.614 GB, free: 40.52 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 6.229e-05/8.981, allocations: 24.7 kB / 3.614 GB, free: 40.52 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.007282/8.988, allocations: 2.186 MB / 3.616 GB, free: 39.77 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/8.989, allocations: 9.5 kB / 3.616 GB, free: 39.77 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006617/8.995, allocations: 0.5736 MB / 3.617 GB, free: 39.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001937/8.997, allocations: 0.701 MB / 3.618 GB, free: 39.47 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/8.997, allocations: 64.34 kB / 3.618 GB, free: 39.47 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/8.997, allocations: 70.06 kB / 3.618 GB, free: 39.47 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004355/9.002, allocations: 1.356 MB / 3.619 GB, free: 39.19 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/9.002, allocations: 4.25 kB / 3.619 GB, free: 39.19 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/9.002, allocations: 36.88 kB / 3.619 GB, free: 39.19 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.534e-05/9.002, allocations: 19.09 kB / 3.619 GB, free: 39.19 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003869/9.006, allocations: 1.152 MB / 3.62 GB, free: 39.19 MB / 0.4948 GB 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.007664/9.014, allocations: 5.48 MB / 3.626 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003196/9.017, allocations: 0.8624 MB / 3.627 GB, free: 35.54 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005587/9.017, allocations: 261.2 kB / 3.627 GB, free: 35.53 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.15/9.168, allocations: 60.57 MB / 3.686 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.647e-05/9.168, allocations: 45.61 kB / 3.686 GB, free: 22.64 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008702/9.168, allocations: 115.1 kB / 3.686 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=58): time 3.551e-06/9.169, allocations: 0 / 3.686 GB, free: 22.61 MB / 0.5105 GB Notification: Performance of matching and sorting (n=58): time 0.005049/9.174, allocations: 1.254 MB / 3.687 GB, free: 22.52 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/9.174, allocations: 190.1 kB / 3.687 GB, free: 22.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007248/9.174, allocations: 473.3 kB / 3.688 GB, free: 22.16 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.93e-05/9.175, allocations: 32.89 kB / 3.688 GB, free: 22.13 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002666/9.175, allocations: 475.8 kB / 3.688 GB, free: 21.83 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/9.175, allocations: 195.5 kB / 3.689 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-05/9.175, allocations: 17.69 kB / 3.689 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001799/9.175, allocations: 339.6 kB / 3.689 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004327/9.176, allocations: 189.3 kB / 3.689 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005566/9.176, allocations: 0.5099 MB / 3.69 GB, free: 20.99 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005457/9.177, allocations: 270.4 kB / 3.69 GB, free: 20.97 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.317e-06/9.177, allocations: 3.312 kB / 3.69 GB, free: 20.97 MB / 0.5105 GB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001716/9.179, allocations: 0.7737 MB / 3.691 GB, free: 20.89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001755/9.18, allocations: 3.832 MB / 3.694 GB, free: 16.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.836e-05/9.18, allocations: 10.5 kB / 3.694 GB, free: 16.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003847/9.184, allocations: 383.2 kB / 3.695 GB, free: 16.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/9.185, allocations: 197.8 kB / 3.695 GB, free: 16.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/9.187, allocations: 1.136 MB / 3.696 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009849/9.188, allocations: 75.72 kB / 3.696 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.826e-05/9.188, allocations: 50.48 kB / 3.696 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/9.188, allocations: 5.062 kB / 3.696 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001405/9.189, allocations: 0.6819 MB / 3.697 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/9.189, allocations: 9.312 kB / 3.697 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/9.189, allocations: 15.22 kB / 3.697 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009454/9.19, allocations: 214.5 kB / 3.697 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.188e-05/9.19, allocations: 25.2 kB / 3.697 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007109/9.191, allocations: 61.66 kB / 3.697 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.878e-05/9.191, allocations: 50.2 kB / 3.697 GB, free: 15.77 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 () * 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.0002601/9.191, allocations: 162.8 kB / 3.697 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002253/9.192, allocations: 83.08 kB / 3.697 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004613/9.196, allocations: 3.586 MB / 3.701 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.625e-05/9.196, allocations: 49.14 kB / 3.701 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.92e-06/9.196, allocations: 3.938 kB / 3.701 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/9.196, allocations: 2.719 kB / 3.701 GB, free: 15.12 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002359/9.199, allocations: 1.699 MB / 3.703 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.43e-06/9.199, allocations: 0 / 3.703 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006701/9.199, allocations: 126.5 kB / 3.703 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002702/9.202, allocations: 0.9035 MB / 3.704 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.962e-05/9.202, allocations: 18.05 kB / 3.704 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001825/9.204, allocations: 1.532 MB / 3.705 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.012e-06/9.204, allocations: 8.062 kB / 3.705 GB, free: 29.73 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/9.207, allocations: 1.983 MB / 3.707 GB, free: 29.26 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000617/9.207, allocations: 411 kB / 3.708 GB, free: 29.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001702/9.207, allocations: 16.25 kB / 3.708 GB, free: 29.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000738/9.208, allocations: 61.22 kB / 3.708 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/9.208, allocations: 58.36 kB / 3.708 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.883e-05/9.208, allocations: 24.41 kB / 3.708 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0008281/9.209, allocations: 0.5196 MB / 3.708 GB, free: 28.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.64e-07/9.209, allocations: 0 / 3.708 GB, free: 28.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005051/9.214, allocations: 1.327 MB / 3.709 GB, free: 28.72 MB / 0.5261 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 () * 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.007274/9.222, allocations: 1.754 MB / 3.711 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002634/9.224, allocations: 1.294 MB / 3.712 GB, free: 28.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.108e-06/9.224, allocations: 0 / 3.712 GB, free: 28.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/9.226, allocations: 0.7948 MB / 3.713 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002175/9.228, allocations: 355.2 kB / 3.714 GB, free: 28.23 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.425/10.65, allocations: 423.5 MB / 4.127 GB, free: 47.94 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007539/10.65, allocations: 1.285 MB / 4.128 GB, free: 46.84 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/10.65, allocations: 91.45 kB / 4.128 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of SimCode: time 2.278e-06/10.65, allocations: 0 / 4.128 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of Templates: time 0.05997/10.71, allocations: 45.58 MB / 4.173 GB, free: 15.3 MB / 0.5261 GB