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.TestPressure.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.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.1_cpp_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure") Notification: Performance of loadModel(ModelicaTest): time 1.834/1.834, allocations: 209.3 MB / 224.8 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004549/0.0004551, allocations: 8 kB / 282.6 MB, free: 9.637 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2876, allocations: 48.71 MB / 331.3 MB, free: 6.352 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.904/6.192, allocations: 2.485 GB / 2.808 GB, free: 52.11 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/6.192, allocations: 91.95 kB / 2.808 GB, free: 52.02 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 .... Notification: Performance of FrontEnd - DAE generated: time 1.863/8.055, allocations: 400.8 MB / 3.2 GB, free: 43.31 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.325e-06/8.055, allocations: 1.062 kB / 3.2 GB, free: 43.31 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.851e-05/8.055, allocations: 13.16 kB / 3.2 GB, free: 43.31 MB / 442.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.005288/8.061, allocations: 1.529 MB / 3.201 GB, free: 42.73 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/8.061, allocations: 10.06 kB / 3.201 GB, free: 42.73 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002376/8.063, allocations: 236.8 kB / 3.202 GB, free: 42.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/8.064, allocations: 441.5 kB / 3.202 GB, free: 42.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.088e-05/8.064, allocations: 35.28 kB / 3.202 GB, free: 42.49 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.948e-05/8.064, allocations: 37.69 kB / 3.202 GB, free: 42.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/8.066, allocations: 0.6842 MB / 3.203 GB, free: 42.31 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/8.066, allocations: 5.719 kB / 3.203 GB, free: 42.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.904e-05/8.067, allocations: 20.47 kB / 3.203 GB, free: 42.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/8.067, allocations: 15.42 kB / 3.203 GB, free: 42.31 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00202/8.069, allocations: 0.5822 MB / 3.203 GB, free: 42.31 MB / 442.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.00374/8.072, allocations: 3.134 MB / 3.206 GB, free: 40.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/8.074, allocations: 393 kB / 3.207 GB, free: 40 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.21/8.284, allocations: 80.51 MB / 3.285 GB, free: 28.77 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.199e-05/8.284, allocations: 43.3 kB / 3.286 GB, free: 28.72 MB / 474.7 MB Notification: Performance of pre-optimization done (n=27): time 3.578e-06/8.284, allocations: 1.688 kB / 3.286 GB, free: 28.72 MB / 474.7 MB Notification: Performance of matching and sorting (n=27): time 0.003539/8.288, allocations: 0.7966 MB / 3.286 GB, free: 28.56 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/8.288, allocations: 113.5 kB / 3.286 GB, free: 28.43 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004341/8.288, allocations: 307.1 kB / 3.287 GB, free: 28.32 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.031e-05/8.288, allocations: 29.39 kB / 3.287 GB, free: 28.29 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000198/8.289, allocations: 319.9 kB / 3.287 GB, free: 28.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.653e-05/8.289, allocations: 95.23 kB / 3.287 GB, free: 28.03 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/8.289, allocations: 6.375 kB / 3.287 GB, free: 28.03 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/8.289, allocations: 334.7 kB / 3.287 GB, free: 27.71 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003833/8.289, allocations: 115.4 kB / 3.288 GB, free: 27.71 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004515/8.29, allocations: 323.6 kB / 3.288 GB, free: 27.46 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004631/8.29, allocations: 165.6 kB / 3.288 GB, free: 27.46 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.839e-06/8.29, allocations: 3.969 kB / 3.288 GB, free: 27.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001291/8.292, allocations: 491.7 kB / 3.289 GB, free: 27.39 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001154/8.293, allocations: 2.448 MB / 3.291 GB, free: 24.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/8.293, allocations: 3.469 kB / 3.291 GB, free: 24.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002087/8.295, allocations: 203.8 kB / 3.291 GB, free: 24.82 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/8.295, allocations: 106.3 kB / 3.291 GB, free: 24.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007099/8.296, allocations: 0.5867 MB / 3.292 GB, free: 24.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006816/8.297, allocations: 68.45 kB / 3.292 GB, free: 24.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.406e-05/8.297, allocations: 26.25 kB / 3.292 GB, free: 24.29 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/8.297, allocations: 3.938 kB / 3.292 GB, free: 24.29 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001107/8.298, allocations: 421.4 kB / 3.292 GB, free: 24.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/8.298, allocations: 7.031 kB / 3.292 GB, free: 24.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/8.298, allocations: 13.84 kB / 3.292 GB, free: 24.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004891/8.299, allocations: 116.4 kB / 3.292 GB, free: 24.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.327e-05/8.299, allocations: 13.95 kB / 3.292 GB, free: 24.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004574/8.299, allocations: 60.7 kB / 3.292 GB, free: 24.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.916e-05/8.299, allocations: 20.19 kB / 3.292 GB, free: 24.25 MB / 474.7 MB 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.0004067/8.3, allocations: 255.5 kB / 3.293 GB, free: 24.05 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/8.3, allocations: 38.81 kB / 3.293 GB, free: 24.04 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002723/8.302, allocations: 1.854 MB / 3.295 GB, free: 23.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.044e-05/8.303, allocations: 28.06 kB / 3.295 GB, free: 23.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/8.303, allocations: 0 / 3.295 GB, free: 23.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/8.303, allocations: 3.75 kB / 3.295 GB, free: 23.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001272/8.304, allocations: 0.9297 MB / 3.296 GB, free: 23.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.218e-06/8.304, allocations: 0 / 3.296 GB, free: 23.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003846/8.304, allocations: 71.27 kB / 3.296 GB, free: 23.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001635/8.306, allocations: 0.5866 MB / 3.296 GB, free: 23.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/8.306, allocations: 11 kB / 3.296 GB, free: 23.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/8.307, allocations: 0.9891 MB / 3.297 GB, free: 22.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.437e-06/8.307, allocations: 4.891 kB / 3.297 GB, free: 22.95 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/8.309, allocations: 1.254 MB / 3.298 GB, free: 22.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003759/8.309, allocations: 237.1 kB / 3.299 GB, free: 22.53 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.44e-05/8.309, allocations: 6.844 kB / 3.299 GB, free: 22.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003799/8.31, allocations: 29.41 kB / 3.299 GB, free: 22.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.296e-05/8.31, allocations: 31.94 kB / 3.299 GB, free: 22.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.16e-05/8.31, allocations: 15.47 kB / 3.299 GB, free: 22.52 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004472/8.31, allocations: 298.9 kB / 3.299 GB, free: 22.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.4e-07/8.31, allocations: 0 / 3.299 GB, free: 22.43 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004997/8.315, allocations: 1.192 MB / 3.3 GB, free: 22.25 MB / 474.7 MB 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.008199/8.324, allocations: 1.625 MB / 3.302 GB, free: 21.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002099/8.326, allocations: 0.7712 MB / 3.302 GB, free: 21.88 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/8.326, allocations: 0 / 3.302 GB, free: 21.88 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007894/8.327, allocations: 469.4 kB / 3.303 GB, free: 21.86 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/8.328, allocations: 174.6 kB / 3.303 GB, free: 21.85 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6156/8.944, allocations: 150.6 MB / 3.45 GB, free: 67.49 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/8.944, allocations: 0.9921 MB / 3.451 GB, free: 66.78 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001592/8.944, allocations: 43.03 kB / 3.451 GB, free: 66.77 MB / 474.7 MB Notification: Performance of SimCode: time 1.854e-06/8.944, allocations: 0 / 3.451 GB, free: 66.77 MB / 474.7 MB Notification: Performance of Templates: time 0.04813/8.993, allocations: 31.29 MB / 3.482 GB, free: 60.21 MB / 474.7 MB