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/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.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.937/1.937, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.586e-05/1.599e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2671, allocations: 48.68 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.744/6.011, allocations: 2.484 GB / 2.797 GB, free: 105.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/6.012, allocations: 83.52 kB / 2.797 GB, free: 105.1 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 .... Notification: Performance of FrontEnd - DAE generated: time 1.585/7.597, allocations: 395.8 MB / 3.183 GB, free: 29.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.033e-06/7.597, allocations: 0 / 3.183 GB, free: 29.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.628e-05/7.597, allocations: 8 kB / 3.183 GB, free: 29.98 MB / 426.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.004712/7.602, allocations: 1.479 MB / 3.185 GB, free: 28.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/7.602, allocations: 12.03 kB / 3.185 GB, free: 28.45 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002333/7.604, allocations: 238.7 kB / 3.185 GB, free: 28.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009487/7.605, allocations: 434.9 kB / 3.185 GB, free: 27.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/7.605, allocations: 20 kB / 3.185 GB, free: 27.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.012e-05/7.605, allocations: 20 kB / 3.185 GB, free: 27.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007653/7.606, allocations: 349.9 kB / 3.186 GB, free: 27.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007781/7.607, allocations: 481.8 kB / 3.186 GB, free: 26.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/7.607, allocations: 4 kB / 3.186 GB, free: 26.85 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.71e-05/7.607, allocations: 0 / 3.186 GB, free: 26.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/7.607, allocations: 12 kB / 3.186 GB, free: 26.84 MB / 426.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.108/7.715, allocations: 39.42 MB / 3.225 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007227/7.716, allocations: 207 kB / 3.225 GB, free: 404 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/7.716, allocations: 97.22 kB / 3.225 GB, free: 304 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3713/8.087, allocations: 49.6 MB / 3.273 GB, free: 28.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/8.087, allocations: 37.66 kB / 3.273 GB, free: 28.87 MB / 442.7 MB Notification: Performance of pre-optimization done (n=22): time 3.139e-06/8.087, allocations: 0 / 3.273 GB, free: 28.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=22): time 0.002532/8.09, allocations: 0.515 MB / 3.274 GB, free: 28.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/8.09, allocations: 106.3 kB / 3.274 GB, free: 28.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/8.09, allocations: 287.5 kB / 3.274 GB, free: 28.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/8.09, allocations: 25.7 kB / 3.274 GB, free: 28.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/8.091, allocations: 342.1 kB / 3.275 GB, free: 28.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.063e-05/8.091, allocations: 77 kB / 3.275 GB, free: 28.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/8.091, allocations: 0 / 3.275 GB, free: 28.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.632e-05/8.091, allocations: 329.2 kB / 3.275 GB, free: 28.01 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001876/8.091, allocations: 83.12 kB / 3.275 GB, free: 28.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002674/8.091, allocations: 285.9 kB / 3.275 GB, free: 27.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/8.093, allocations: 233.1 kB / 3.276 GB, free: 27.76 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.225e-06/8.093, allocations: 0 / 3.276 GB, free: 27.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001971/8.095, allocations: 490.4 kB / 3.276 GB, free: 27.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005162/8.095, allocations: 2.443 MB / 3.279 GB, free: 25.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/8.095, allocations: 10.03 kB / 3.279 GB, free: 25.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002158/8.095, allocations: 42.19 kB / 3.279 GB, free: 25.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004582/8.096, allocations: 108 kB / 3.279 GB, free: 25.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009296/8.097, allocations: 0.6338 MB / 3.279 GB, free: 24.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006418/8.098, allocations: 59.59 kB / 3.279 GB, free: 24.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/8.098, allocations: 33.19 kB / 3.279 GB, free: 24.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/8.098, allocations: 5.875 kB / 3.279 GB, free: 24.6 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001339/8.099, allocations: 362.3 kB / 3.28 GB, free: 24.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/8.099, allocations: 10.2 kB / 3.28 GB, free: 24.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/8.099, allocations: 12.88 kB / 3.28 GB, free: 24.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000533/8.1, allocations: 115.1 kB / 3.28 GB, free: 24.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/8.1, allocations: 17.91 kB / 3.28 GB, free: 24.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000455/8.1, allocations: 52.61 kB / 3.28 GB, free: 24.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.935e-05/8.1, allocations: 29.55 kB / 3.28 GB, free: 24.57 MB / 442.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 (massFlowRate1.medium.phase,boundary_fixed.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete 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.0001509/8.1, allocations: 116.2 kB / 3.28 GB, free: 24.47 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/8.1, allocations: 38.91 kB / 3.28 GB, free: 24.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/8.103, allocations: 1.451 MB / 3.282 GB, free: 24.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.797e-05/8.103, allocations: 24.83 kB / 3.282 GB, free: 24.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.373e-06/8.103, allocations: 0 / 3.282 GB, free: 24.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.643e-06/8.103, allocations: 0 / 3.282 GB, free: 24.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/8.106, allocations: 2.031 MB / 3.284 GB, free: 23.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.886e-06/8.106, allocations: 3.953 kB / 3.284 GB, free: 23.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002755/8.106, allocations: 57.19 kB / 3.284 GB, free: 23.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000701/8.107, allocations: 0.5871 MB / 3.284 GB, free: 23.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/8.107, allocations: 4.312 kB / 3.284 GB, free: 23.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/8.108, allocations: 1.07 MB / 3.285 GB, free: 23.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.539e-06/8.108, allocations: 6.062 kB / 3.285 GB, free: 23.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/8.11, allocations: 1.164 MB / 3.286 GB, free: 23.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002399/8.111, allocations: 178.4 kB / 3.287 GB, free: 22.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.092e-05/8.111, allocations: 3.781 kB / 3.287 GB, free: 22.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003895/8.111, allocations: 22.52 kB / 3.287 GB, free: 22.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.708e-05/8.111, allocations: 30.33 kB / 3.287 GB, free: 22.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/8.111, allocations: 11.06 kB / 3.287 GB, free: 22.93 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002703/8.111, allocations: 215.2 kB / 3.287 GB, free: 22.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.52e-07/8.112, allocations: 0 / 3.287 GB, free: 22.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004588/8.116, allocations: 1.151 MB / 3.288 GB, free: 22.83 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 13 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,massFlowRate1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.007894/8.124, allocations: 1.727 MB / 3.29 GB, free: 22.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001366/8.125, allocations: 0.606 MB / 3.29 GB, free: 22.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.242e-06/8.125, allocations: 4.062 kB / 3.29 GB, free: 22.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005562/8.126, allocations: 380.7 kB / 3.291 GB, free: 22.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/8.127, allocations: 151.3 kB / 3.291 GB, free: 22.61 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001703/8.129, allocations: 0.9588 MB / 3.292 GB, free: 22.33 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/8.129, allocations: 0.9375 MB / 3.293 GB, free: 21.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001393/8.129, allocations: 46.73 kB / 3.293 GB, free: 21.61 MB / 442.7 MB Notification: Performance of SimCode: time 1.73e-06/8.13, allocations: 0 / 3.293 GB, free: 21.61 MB / 442.7 MB Notification: Performance of Templates: time 0.04891/8.178, allocations: 30.61 MB / 3.322 GB, free: 18.53 MB / 442.7 MB