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.849/1.849, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.967e-05/2.975e-05, allocations: 4 kB / 277.9 MB, free: 15.29 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08586/0.08591, allocations: 48.7 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.027/6.113, allocations: 2.485 GB / 2.804 GB, free: 122.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/6.113, allocations: 85.23 kB / 2.804 GB, free: 122.9 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.644/7.757, allocations: 399.7 MB / 3.194 GB, free: 44.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.374e-06/7.757, allocations: 0 / 3.194 GB, free: 44.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.779e-05/7.757, allocations: 14.59 kB / 3.194 GB, free: 44.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.00513/7.763, allocations: 1.477 MB / 3.196 GB, free: 44.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/7.763, allocations: 7.156 kB / 3.196 GB, free: 44.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002392/7.765, allocations: 240.3 kB / 3.196 GB, free: 44.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009677/7.766, allocations: 445.2 kB / 3.196 GB, free: 43.76 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.42e-05/7.766, allocations: 32.75 kB / 3.196 GB, free: 43.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/7.766, allocations: 34.75 kB / 3.196 GB, free: 43.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/7.768, allocations: 0.6711 MB / 3.197 GB, free: 43.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.868e-05/7.768, allocations: 3.844 kB / 3.197 GB, free: 43.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.551e-05/7.768, allocations: 23.64 kB / 3.197 GB, free: 43.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/7.768, allocations: 9.844 kB / 3.197 GB, free: 43.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001668/7.77, allocations: 0.5406 MB / 3.197 GB, free: 43.21 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.003752/7.773, allocations: 3.14 MB / 3.201 GB, free: 40.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/7.775, allocations: 378.2 kB / 3.201 GB, free: 40.44 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/7.775, allocations: 118.2 kB / 3.201 GB, free: 40.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2084/7.984, allocations: 80.94 MB / 3.28 GB, free: 1.348 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/7.984, allocations: 38.55 kB / 3.28 GB, free: 1.301 MB / 458.7 MB Notification: Performance of pre-optimization done (n=27): time 4.363e-06/7.984, allocations: 0 / 3.28 GB, free: 1.301 MB / 458.7 MB Notification: Performance of matching and sorting (n=27): time 0.002697/7.986, allocations: 0.6052 MB / 3.281 GB, free: 0.6875 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.164e-05/7.986, allocations: 118.7 kB / 3.281 GB, free: 0.5469 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004846/7.987, allocations: 295.4 kB / 3.281 GB, free: 256 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.867e-05/7.987, allocations: 33.7 kB / 3.281 GB, free: 216 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2654/8.252, allocations: 315.5 kB / 3.281 GB, free: 81.47 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/8.253, allocations: 95.59 kB / 3.282 GB, free: 81.42 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/8.253, allocations: 8.5 kB / 3.282 GB, free: 81.42 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.649e-05/8.253, allocations: 330.2 kB / 3.282 GB, free: 81.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002849/8.253, allocations: 92.95 kB / 3.282 GB, free: 81.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003333/8.253, allocations: 288.2 kB / 3.282 GB, free: 80.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/8.254, allocations: 139.5 kB / 3.282 GB, free: 80.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.956e-06/8.254, allocations: 1.969 kB / 3.282 GB, free: 80.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001047/8.255, allocations: 434.6 kB / 3.283 GB, free: 80.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004816/8.255, allocations: 2.446 MB / 3.285 GB, free: 78.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/8.255, allocations: 6 kB / 3.285 GB, free: 78.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002164/8.258, allocations: 202.3 kB / 3.285 GB, free: 78.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005833/8.258, allocations: 109.6 kB / 3.285 GB, free: 78.29 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005372/8.259, allocations: 0.5799 MB / 3.286 GB, free: 77.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006232/8.259, allocations: 72.41 kB / 3.286 GB, free: 77.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.279e-05/8.259, allocations: 22.47 kB / 3.286 GB, free: 77.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/8.259, allocations: 7.469 kB / 3.286 GB, free: 77.75 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009472/8.26, allocations: 366 kB / 3.286 GB, free: 77.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/8.26, allocations: 8.031 kB / 3.286 GB, free: 77.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/8.26, allocations: 10.19 kB / 3.286 GB, free: 77.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005582/8.261, allocations: 124.9 kB / 3.287 GB, free: 77.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/8.261, allocations: 11.22 kB / 3.287 GB, free: 77.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004099/8.262, allocations: 58.97 kB / 3.287 GB, free: 77.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/8.262, allocations: 26.64 kB / 3.287 GB, free: 77.74 MB / 458.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 () * 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.0001587/8.262, allocations: 139.7 kB / 3.287 GB, free: 77.63 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001152/8.262, allocations: 41.19 kB / 3.287 GB, free: 77.61 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/8.264, allocations: 1.836 MB / 3.289 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-05/8.264, allocations: 27.44 kB / 3.289 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.079e-06/8.264, allocations: 4.594 kB / 3.289 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.914e-06/8.264, allocations: 5.062 kB / 3.289 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001204/8.266, allocations: 0.9289 MB / 3.29 GB, free: 77.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.279e-06/8.266, allocations: 6.688 kB / 3.29 GB, free: 77.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003987/8.266, allocations: 62.62 kB / 3.29 GB, free: 77.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/8.268, allocations: 0.7127 MB / 3.29 GB, free: 77.17 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.347e-05/8.268, allocations: 6.438 kB / 3.29 GB, free: 77.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009286/8.269, allocations: 0.9919 MB / 3.291 GB, free: 76.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/8.269, allocations: 9.422 kB / 3.291 GB, free: 76.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/8.271, allocations: 1.185 MB / 3.292 GB, free: 76.38 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003118/8.271, allocations: 236.2 kB / 3.293 GB, free: 76.24 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.433e-05/8.271, allocations: 8.25 kB / 3.293 GB, free: 76.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/8.272, allocations: 31.44 kB / 3.293 GB, free: 76.24 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.55e-05/8.272, allocations: 32.22 kB / 3.293 GB, free: 76.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.49e-05/8.272, allocations: 14.84 kB / 3.293 GB, free: 76.24 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004507/8.272, allocations: 293.9 kB / 3.293 GB, free: 76.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.56e-07/8.272, allocations: 0 / 3.293 GB, free: 76.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005217/8.277, allocations: 1.197 MB / 3.294 GB, free: 76.11 MB / 458.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 () * 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.008389/8.286, allocations: 1.629 MB / 3.296 GB, free: 75.93 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001733/8.288, allocations: 0.6827 MB / 3.297 GB, free: 75.92 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/8.288, allocations: 5.312 kB / 3.297 GB, free: 75.92 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007707/8.289, allocations: 437.5 kB / 3.297 GB, free: 75.91 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001363/8.29, allocations: 181.5 kB / 3.297 GB, free: 75.91 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.341/8.631, allocations: 149.3 MB / 3.443 GB, free: 15.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/8.631, allocations: 0.9872 MB / 3.444 GB, free: 14.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/8.632, allocations: 43.44 kB / 3.444 GB, free: 14.43 MB / 458.7 MB Notification: Performance of SimCode: time 1.645e-06/8.632, allocations: 0 / 3.444 GB, free: 14.43 MB / 458.7 MB Notification: Performance of Templates: time 0.3218/8.953, allocations: 31.04 MB / 3.474 GB, free: 76.74 MB / 458.7 MB