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.TestPressure.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.TestPressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pressure1.p|pressure2.p|relativePressure.p_rel|simpleGenericOrifice.port_b.m_flow|simpleGenericOrifice.port_b.p|simpleGenericOrifice.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadModel(ModelicaTest): time 2.476/2.476, allocations: 234.9 MB / 251.1 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004545/0.0004547, allocations: 12 kB / 314.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.357, allocations: 54.86 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.793/8.15, allocations: 2.596 GB / 2.957 GB, free: 103.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003277/8.151, allocations: 98.83 kB / 2.957 GB, free: 103.5 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 .... Notification: Performance of FrontEnd - DAE generated: time 2.083/10.23, allocations: 411 MB / 3.358 GB, free: 56.26 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.535e-06/10.23, allocations: 0 / 3.358 GB, free: 56.26 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.449e-05/10.23, allocations: 13.25 kB / 3.358 GB, free: 56.25 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.006556/10.24, allocations: 1.567 MB / 3.36 GB, free: 55.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/10.24, allocations: 15.16 kB / 3.36 GB, free: 55.3 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002508/10.24, allocations: 244.4 kB / 3.36 GB, free: 55.27 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/10.24, allocations: 446.8 kB / 3.36 GB, free: 54.95 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.066e-05/10.24, allocations: 27.53 kB / 3.361 GB, free: 54.93 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.983e-05/10.24, allocations: 38.94 kB / 3.361 GB, free: 54.92 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002279/10.25, allocations: 0.6878 MB / 3.361 GB, free: 54.59 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/10.25, allocations: 3.938 kB / 3.361 GB, free: 54.58 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.131e-05/10.25, allocations: 22.62 kB / 3.361 GB, free: 54.57 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/10.25, allocations: 11.69 kB / 3.361 GB, free: 54.57 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002342/10.25, allocations: 0.5833 MB / 3.362 GB, free: 54.42 MB / 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.004362/10.25, allocations: 3.132 MB / 3.365 GB, free: 51.77 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/10.25, allocations: 389.7 kB / 3.365 GB, free: 51.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6734/10.93, allocations: 80.62 MB / 3.444 GB, free: 79.42 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/10.93, allocations: 39.94 kB / 3.444 GB, free: 79.38 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=27): time 2.945e-06/10.93, allocations: 0 / 3.444 GB, free: 79.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=27): time 0.004663/10.93, allocations: 0.801 MB / 3.445 GB, free: 79.24 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/10.93, allocations: 107.4 kB / 3.445 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006283/10.93, allocations: 345.2 kB / 3.445 GB, free: 79 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/10.93, allocations: 30.73 kB / 3.445 GB, free: 78.97 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/10.93, allocations: 319.5 kB / 3.446 GB, free: 78.78 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000109/10.93, allocations: 99.62 kB / 3.446 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/10.93, allocations: 10.41 kB / 3.446 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.522e-05/10.93, allocations: 331.8 kB / 3.446 GB, free: 78.42 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005591/10.93, allocations: 121.5 kB / 3.446 GB, free: 78.42 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006634/10.94, allocations: 319.9 kB / 3.446 GB, free: 78.18 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006369/10.94, allocations: 165.9 kB / 3.447 GB, free: 78.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/10.94, allocations: 1.281 kB / 3.447 GB, free: 78.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001724/10.94, allocations: 494.6 kB / 3.447 GB, free: 78.13 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001628/10.94, allocations: 274.7 kB / 3.447 GB, free: 77.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/10.94, allocations: 7.438 kB / 3.447 GB, free: 77.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002984/10.94, allocations: 200.1 kB / 3.447 GB, free: 77.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007957/10.94, allocations: 107.5 kB / 3.448 GB, free: 77.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006091/10.94, allocations: 0.5794 MB / 3.448 GB, free: 77.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007047/10.94, allocations: 72.38 kB / 3.448 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.126e-05/10.94, allocations: 25.67 kB / 3.448 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/10.94, allocations: 4.375 kB / 3.448 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001489/10.95, allocations: 427.9 kB / 3.449 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/10.95, allocations: 6.469 kB / 3.449 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/10.95, allocations: 9.562 kB / 3.449 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007795/10.95, allocations: 113.4 kB / 3.449 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.94e-05/10.95, allocations: 13.12 kB / 3.449 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/10.95, allocations: 59.8 kB / 3.449 GB, free: 77.27 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.727e-05/10.95, allocations: 27.83 kB / 3.449 GB, free: 77.27 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004349/10.95, allocations: 255.9 kB / 3.449 GB, free: 77.09 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/10.95, allocations: 34.86 kB / 3.449 GB, free: 77.07 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003533/10.95, allocations: 1.857 MB / 3.451 GB, free: 76.89 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.588e-05/10.95, allocations: 25.77 kB / 3.451 GB, free: 76.89 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/10.95, allocations: 3.953 kB / 3.451 GB, free: 76.89 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/10.95, allocations: 0 / 3.451 GB, free: 76.89 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001436/10.95, allocations: 0.928 MB / 3.452 GB, free: 76.67 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/10.95, allocations: 3.812 kB / 3.452 GB, free: 76.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004932/10.95, allocations: 66.61 kB / 3.452 GB, free: 76.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001957/10.95, allocations: 0.5898 MB / 3.453 GB, free: 76.63 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.023e-05/10.95, allocations: 6.906 kB / 3.453 GB, free: 76.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009668/10.96, allocations: 0.9882 MB / 3.454 GB, free: 76.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/10.96, allocations: 0 / 3.454 GB, free: 76.09 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002364/10.96, allocations: 1.248 MB / 3.455 GB, free: 75.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004296/10.96, allocations: 246.7 kB / 3.455 GB, free: 75.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/10.96, allocations: 5.375 kB / 3.455 GB, free: 75.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004953/10.96, allocations: 33.84 kB / 3.455 GB, free: 75.71 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/10.96, allocations: 25.94 kB / 3.455 GB, free: 75.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/10.96, allocations: 10.94 kB / 3.455 GB, free: 75.71 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004669/10.96, allocations: 301.5 kB / 3.455 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.61e-07/10.96, allocations: 0 / 3.455 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00606/10.97, allocations: 1.21 MB / 3.457 GB, free: 75.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.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 (31): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.01029/10.98, allocations: 1.618 MB / 3.458 GB, free: 75.45 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00273/10.98, allocations: 0.7711 MB / 3.459 GB, free: 75.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/10.98, allocations: 0 / 3.459 GB, free: 75.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009501/10.98, allocations: 469.6 kB / 3.459 GB, free: 75.43 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001728/10.98, allocations: 171.6 kB / 3.459 GB, free: 75.42 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4489/11.43, allocations: 152.8 MB / 3.609 GB, free: 25.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004416/11.43, allocations: 0.9885 MB / 3.61 GB, free: 24.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001999/11.43, allocations: 43.44 kB / 3.61 GB, free: 24.65 MB / 0.4948 GB Notification: Performance of SimCode: time 8.61e-07/11.43, allocations: 0 / 3.61 GB, free: 24.65 MB / 0.4948 GB Notification: Performance of Templates: time 0.4449/11.88, allocations: 31.46 MB / 3.64 GB, free: 65.08 MB / 0.4948 GB