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.09/2.09, allocations: 234.9 MB / 250.5 MB, free: 9.535 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007639/0.0007645, allocations: 8 kB / 314.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.304, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.173/6.477, allocations: 2.596 GB / 2.956 GB, free: 119.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/6.477, allocations: 92.2 kB / 2.956 GB, free: 119.7 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.659/8.136, allocations: 411 MB / 3.358 GB, free: 61.49 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.162e-06/8.136, allocations: 0 / 3.358 GB, free: 61.49 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.374e-05/8.136, allocations: 8.812 kB / 3.358 GB, free: 61.49 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.005146/8.142, allocations: 1.575 MB / 3.359 GB, free: 60.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/8.142, allocations: 7.406 kB / 3.359 GB, free: 60.6 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00238/8.144, allocations: 240.4 kB / 3.36 GB, free: 60.56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00098/8.145, allocations: 455.9 kB / 3.36 GB, free: 60.25 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.622e-05/8.145, allocations: 31.41 kB / 3.36 GB, free: 60.23 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.049e-05/8.145, allocations: 38.88 kB / 3.36 GB, free: 60.22 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/8.147, allocations: 0.6798 MB / 3.361 GB, free: 59.89 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/8.147, allocations: 0 / 3.361 GB, free: 59.89 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.313e-05/8.147, allocations: 18.75 kB / 3.361 GB, free: 59.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/8.147, allocations: 12.84 kB / 3.361 GB, free: 59.88 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002142/8.149, allocations: 0.5836 MB / 3.361 GB, free: 59.72 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.003653/8.153, allocations: 3.148 MB / 3.364 GB, free: 57.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/8.155, allocations: 390.6 kB / 3.365 GB, free: 56.96 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.196/8.351, allocations: 80.61 MB / 3.443 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/8.351, allocations: 34.56 kB / 3.443 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=27): time 3.618e-06/8.351, allocations: 4 kB / 3.443 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=27): time 0.003294/8.354, allocations: 0.8031 MB / 3.444 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.741e-05/8.354, allocations: 106 kB / 3.444 GB, free: 13.17 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004112/8.355, allocations: 311.8 kB / 3.445 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/8.355, allocations: 29.7 kB / 3.445 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/8.355, allocations: 318.2 kB / 3.445 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.893e-05/8.355, allocations: 91.48 kB / 3.445 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.569e-05/8.355, allocations: 12 kB / 3.445 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001624/8.355, allocations: 322.4 kB / 3.445 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003782/8.356, allocations: 127.2 kB / 3.446 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/8.356, allocations: 320.2 kB / 3.446 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004425/8.357, allocations: 168 kB / 3.446 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.273e-06/8.357, allocations: 0 / 3.446 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001341/8.358, allocations: 0.489 MB / 3.446 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001198/8.359, allocations: 2.445 MB / 3.449 GB, free: 8.434 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/8.359, allocations: 4 kB / 3.449 GB, free: 8.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002135/8.361, allocations: 203.6 kB / 3.449 GB, free: 8.285 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005641/8.362, allocations: 105.3 kB / 3.449 GB, free: 8.195 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006804/8.363, allocations: 0.5811 MB / 3.45 GB, free: 7.602 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/8.363, allocations: 66.84 kB / 3.45 GB, free: 7.543 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.027e-05/8.363, allocations: 27.94 kB / 3.45 GB, free: 7.516 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/8.363, allocations: 4 kB / 3.45 GB, free: 7.512 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001199/8.365, allocations: 420.1 kB / 3.45 GB, free: 7.148 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/8.365, allocations: 8 kB / 3.45 GB, free: 7.141 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/8.365, allocations: 12.55 kB / 3.45 GB, free: 7.129 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005275/8.365, allocations: 118.9 kB / 3.45 GB, free: 7.027 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.763e-05/8.365, allocations: 11.94 kB / 3.45 GB, free: 7.016 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000455/8.366, allocations: 59 kB / 3.45 GB, free: 6.969 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.662e-05/8.366, allocations: 23.7 kB / 3.45 GB, free: 6.949 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.0004167/8.366, allocations: 258.8 kB / 3.451 GB, free: 6.688 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001294/8.366, allocations: 47.36 kB / 3.451 GB, free: 6.645 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003158/8.37, allocations: 1.841 MB / 3.453 GB, free: 5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.193e-05/8.37, allocations: 31.58 kB / 3.453 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.178e-06/8.37, allocations: 0 / 3.453 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/8.37, allocations: 7.141 kB / 3.453 GB, free: 4.977 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001423/8.371, allocations: 0.9315 MB / 3.453 GB, free: 4.133 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.533e-06/8.371, allocations: 0 / 3.453 GB, free: 4.133 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003658/8.371, allocations: 63.02 kB / 3.454 GB, free: 4.082 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/8.373, allocations: 0.5854 MB / 3.454 GB, free: 3.582 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.623e-05/8.373, allocations: 7.953 kB / 3.454 GB, free: 3.574 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/8.374, allocations: 0.9917 MB / 3.455 GB, free: 2.609 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.581e-06/8.374, allocations: 0 / 3.455 GB, free: 2.609 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/8.377, allocations: 1.247 MB / 3.456 GB, free: 1.441 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004162/8.377, allocations: 240.4 kB / 3.457 GB, free: 1.211 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.641e-05/8.377, allocations: 11.94 kB / 3.457 GB, free: 1.203 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/8.378, allocations: 31.48 kB / 3.457 GB, free: 1.18 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.534e-05/8.378, allocations: 35.28 kB / 3.457 GB, free: 1.156 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.453e-05/8.378, allocations: 8 kB / 3.457 GB, free: 1.148 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004994/8.378, allocations: 303.4 kB / 3.457 GB, free: 0.8945 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.36e-07/8.378, allocations: 0 / 3.457 GB, free: 0.8945 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.2986/8.677, allocations: 1.194 MB / 3.458 GB, free: 78.86 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.008793/8.686, allocations: 1.623 MB / 3.46 GB, free: 78.74 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002254/8.688, allocations: 0.7711 MB / 3.46 GB, free: 78.74 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.12e-06/8.688, allocations: 3.969 kB / 3.46 GB, free: 78.74 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008869/8.689, allocations: 465.9 kB / 3.461 GB, free: 78.74 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/8.69, allocations: 179.1 kB / 3.461 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3358/9.026, allocations: 152.8 MB / 3.61 GB, free: 35.96 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/9.027, allocations: 0.9891 MB / 3.611 GB, free: 35.05 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/9.027, allocations: 43.44 kB / 3.611 GB, free: 35.01 MB / 0.4948 GB Notification: Performance of SimCode: time 1.597e-06/9.027, allocations: 0 / 3.611 GB, free: 35.01 MB / 0.4948 GB Notification: Performance of Templates: time 0.3451/9.372, allocations: 31.46 MB / 3.642 GB, free: 76.16 MB / 0.4948 GB