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.TestPressure.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.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.138/2.138, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.378e-05/5.396e-05, allocations: 4 kB / 309.7 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3555, allocations: 54.86 MB / 364.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.866/6.221, allocations: 2.596 GB / 2.952 GB, free: 6.164 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/6.222, allocations: 86.52 kB / 2.952 GB, free: 6.117 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 .... Notification: Performance of FrontEnd - DAE generated: time 1.979/8.2, allocations: 409.8 MB / 3.352 GB, free: 54.36 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.295e-06/8.2, allocations: 0 / 3.352 GB, free: 54.36 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.601e-05/8.2, allocations: 13.7 kB / 3.352 GB, free: 54.36 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.005391/8.206, allocations: 1.527 MB / 3.353 GB, free: 53.8 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/8.206, allocations: 7.875 kB / 3.353 GB, free: 53.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002644/8.208, allocations: 245.9 kB / 3.354 GB, free: 53.78 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/8.21, allocations: 446 kB / 3.354 GB, free: 53.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.844e-05/8.21, allocations: 31.53 kB / 3.354 GB, free: 53.55 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.689e-05/8.21, allocations: 36.75 kB / 3.354 GB, free: 53.55 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/8.212, allocations: 0.6767 MB / 3.355 GB, free: 53.38 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/8.212, allocations: 0.8438 kB / 3.355 GB, free: 53.38 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-05/8.212, allocations: 19.08 kB / 3.355 GB, free: 53.38 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/8.212, allocations: 11 kB / 3.355 GB, free: 53.38 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/8.214, allocations: 0.5366 MB / 3.355 GB, free: 53.37 MB / 490.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.003737/8.217, allocations: 3.135 MB / 3.358 GB, free: 51.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/8.219, allocations: 388.3 kB / 3.359 GB, free: 51.07 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002691/8.219, allocations: 117.1 kB / 3.359 GB, free: 51.06 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2097/8.429, allocations: 81.06 MB / 3.438 GB, free: 24.02 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/8.429, allocations: 30.56 kB / 3.438 GB, free: 23.98 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=27): time 3.142e-06/8.429, allocations: 0 / 3.438 GB, free: 23.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=27): time 0.002424/8.431, allocations: 0.6002 MB / 3.439 GB, free: 23.91 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/8.431, allocations: 110.1 kB / 3.439 GB, free: 23.79 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000418/8.432, allocations: 298.3 kB / 3.439 GB, free: 23.67 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.509e-05/8.432, allocations: 31.86 kB / 3.439 GB, free: 23.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/8.432, allocations: 322.4 kB / 3.439 GB, free: 23.43 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.17e-05/8.432, allocations: 90.27 kB / 3.439 GB, free: 23.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/8.432, allocations: 6.938 kB / 3.439 GB, free: 23.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001619/8.432, allocations: 328.8 kB / 3.44 GB, free: 23.07 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/8.433, allocations: 93.92 kB / 3.44 GB, free: 23.07 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002939/8.433, allocations: 298 kB / 3.44 GB, free: 22.82 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002977/8.433, allocations: 147.1 kB / 3.44 GB, free: 22.81 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.156e-06/8.433, allocations: 0 / 3.44 GB, free: 22.81 MB / 0.4948 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009486/8.434, allocations: 438.8 kB / 3.441 GB, free: 22.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001137/8.435, allocations: 2.441 MB / 3.443 GB, free: 20.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/8.435, allocations: 7.531 kB / 3.443 GB, free: 20.19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002161/8.438, allocations: 201.4 kB / 3.443 GB, free: 20.17 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005188/8.438, allocations: 108.1 kB / 3.443 GB, free: 20.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006527/8.439, allocations: 0.5834 MB / 3.444 GB, free: 19.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006102/8.439, allocations: 65.25 kB / 3.444 GB, free: 19.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.262e-05/8.44, allocations: 23.31 kB / 3.444 GB, free: 19.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/8.44, allocations: 3.938 kB / 3.444 GB, free: 19.64 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007735/8.44, allocations: 367.4 kB / 3.444 GB, free: 19.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/8.44, allocations: 7.109 kB / 3.444 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/8.44, allocations: 10.47 kB / 3.444 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005542/8.441, allocations: 122.2 kB / 3.445 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/8.441, allocations: 13.81 kB / 3.445 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000417/8.441, allocations: 60.98 kB / 3.445 GB, free: 19.61 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.815e-05/8.442, allocations: 22.25 kB / 3.445 GB, free: 19.61 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 () * 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.0001889/8.442, allocations: 138.8 kB / 3.445 GB, free: 19.51 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/8.442, allocations: 45.42 kB / 3.445 GB, free: 19.49 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002342/8.444, allocations: 1.846 MB / 3.447 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.044e-05/8.444, allocations: 25.98 kB / 3.447 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.423e-06/8.444, allocations: 0 / 3.447 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.358e-06/8.444, allocations: 2.156 kB / 3.447 GB, free: 19.26 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/8.446, allocations: 0.9349 MB / 3.448 GB, free: 19.01 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/8.446, allocations: 3.562 kB / 3.448 GB, free: 19.01 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/8.446, allocations: 67.59 kB / 3.448 GB, free: 19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/8.448, allocations: 0.7015 MB / 3.448 GB, free: 18.96 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.136e-05/8.448, allocations: 16.39 kB / 3.448 GB, free: 18.96 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009602/8.449, allocations: 0.9904 MB / 3.449 GB, free: 18.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/8.449, allocations: 0 / 3.449 GB, free: 18.42 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/8.45, allocations: 1.198 MB / 3.45 GB, free: 18.17 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003487/8.451, allocations: 242.2 kB / 3.451 GB, free: 18 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.087e-05/8.451, allocations: 3.562 kB / 3.451 GB, free: 18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004226/8.451, allocations: 30.38 kB / 3.451 GB, free: 18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.567e-05/8.451, allocations: 31.2 kB / 3.451 GB, free: 18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-05/8.451, allocations: 7.312 kB / 3.451 GB, free: 18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000417/8.452, allocations: 297.8 kB / 3.451 GB, free: 17.91 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.64e-07/8.452, allocations: 3.656 kB / 3.451 GB, free: 17.91 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004893/8.457, allocations: 1.201 MB / 3.452 GB, free: 17.72 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 () * 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.008161/8.465, allocations: 1.627 MB / 3.454 GB, free: 17.36 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001517/8.466, allocations: 0.6856 MB / 3.454 GB, free: 17.34 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.929e-06/8.466, allocations: 0 / 3.454 GB, free: 17.34 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005749/8.467, allocations: 431.7 kB / 3.455 GB, free: 17.34 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001278/8.468, allocations: 191.6 kB / 3.455 GB, free: 17.32 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6472/9.116, allocations: 152.1 MB / 3.604 GB, free: 82.64 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004384/9.116, allocations: 0.9817 MB / 3.605 GB, free: 81.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/9.116, allocations: 46.61 kB / 3.605 GB, free: 81.93 MB / 0.5105 GB Notification: Performance of SimCode: time 2.413e-06/9.116, allocations: 3.75 kB / 3.605 GB, free: 81.93 MB / 0.5105 GB Notification: Performance of Templates: time 0.04834/9.165, allocations: 31.22 MB / 3.635 GB, free: 79.42 MB / 0.5105 GB