Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.342/2.342, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004532/0.0004534, allocations: 15.98 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3698/0.3703, allocations: 48.7 MB / 331.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6966/1.067, allocations: 277.4 MB / 0.5949 GB, free: 5.684 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003286/1.067, allocations: 88.95 kB / 0.595 GB, free: 5.637 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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 .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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 0.6702/1.738, allocations: 116.2 MB / 0.7085 GB, free: 80.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.738, allocations: 3.938 kB / 0.7085 GB, free: 80.97 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.828e-05/1.738, allocations: 16 kB / 0.7085 GB, free: 80.96 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.002107/1.74, allocations: 0.9216 MB / 0.7094 GB, free: 79.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/1.74, allocations: 12.03 kB / 0.7094 GB, free: 79.97 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004693/1.74, allocations: 79.23 kB / 0.7095 GB, free: 79.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001391/1.742, allocations: 0.5326 MB / 0.71 GB, free: 79.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/1.742, allocations: 37 kB / 0.7101 GB, free: 79.28 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.724e-05/1.742, allocations: 40 kB / 0.7101 GB, free: 79.24 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/1.743, allocations: 0.655 MB / 0.7108 GB, free: 78.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/1.743, allocations: 0 / 0.7108 GB, free: 78.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-05/1.743, allocations: 24 kB / 0.7108 GB, free: 78.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/1.743, allocations: 12 kB / 0.7108 GB, free: 78.49 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/1.744, allocations: 0.5035 MB / 0.7113 GB, free: 77.99 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00442/1.749, allocations: 3.072 MB / 0.7143 GB, free: 74.72 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004648/1.749, allocations: 198.8 kB / 0.7145 GB, free: 74.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001672/1.751, allocations: 1.005 MB / 0.7155 GB, free: 73.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003356/1.751, allocations: 173 kB / 0.7156 GB, free: 73.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.005e-06/1.751, allocations: 3.938 kB / 0.7156 GB, free: 73.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.00103/1.752, allocations: 459.3 kB / 0.7161 GB, free: 72.74 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/1.753, allocations: 162.2 kB / 0.7162 GB, free: 72.55 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007005/1.753, allocations: 498.7 kB / 0.7167 GB, free: 72.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/1.753, allocations: 25.7 kB / 0.7167 GB, free: 72.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/1.754, allocations: 405 kB / 0.7171 GB, free: 71.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.297e-05/1.754, allocations: 82.92 kB / 0.7172 GB, free: 71.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/1.754, allocations: 12 kB / 0.7172 GB, free: 71.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.25e-05/1.754, allocations: 326.8 kB / 0.7175 GB, free: 71.19 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002859/1.754, allocations: 113 kB / 0.7176 GB, free: 71.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/1.755, allocations: 393.5 kB / 0.718 GB, free: 70.56 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/1.755, allocations: 201.7 kB / 0.7182 GB, free: 70.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/1.755, allocations: 0 / 0.7182 GB, free: 70.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001226/1.756, allocations: 0.5603 MB / 0.7187 GB, free: 69.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000181/1.756, allocations: 402 kB / 0.7191 GB, free: 69.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/1.756, allocations: 16 kB / 0.7191 GB, free: 69.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.398e-05/1.756, allocations: 12 kB / 0.7191 GB, free: 69.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001953/1.758, allocations: 191.7 kB / 0.7193 GB, free: 69.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004907/1.759, allocations: 0.6134 MB / 0.7199 GB, free: 68.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007487/1.76, allocations: 79.25 kB / 0.72 GB, free: 68.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.244e-05/1.76, allocations: 43.94 kB / 0.72 GB, free: 68.28 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/1.76, allocations: 0 / 0.72 GB, free: 68.28 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001094/1.761, allocations: 0.5168 MB / 0.7205 GB, free: 67.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/1.761, allocations: 12 kB / 0.7205 GB, free: 67.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/1.761, allocations: 15.94 kB / 0.7206 GB, free: 67.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006424/1.762, allocations: 127.8 kB / 0.7207 GB, free: 67.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/1.762, allocations: 24.55 kB / 0.7207 GB, free: 67.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004457/1.762, allocations: 55.67 kB / 0.7208 GB, free: 67.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.326e-05/1.762, allocations: 32.05 kB / 0.7208 GB, free: 67.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004284/1.763, allocations: 310.5 kB / 0.7211 GB, free: 67.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/1.763, allocations: 55.3 kB / 0.7211 GB, free: 67.12 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/1.765, allocations: 0.6467 MB / 0.7218 GB, free: 66.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/1.765, allocations: 11.94 kB / 0.7218 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/1.765, allocations: 0 / 0.7218 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/1.765, allocations: 3.984 kB / 0.7218 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000684/1.765, allocations: 473.1 kB / 0.7222 GB, free: 65.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/1.765, allocations: 0 / 0.7222 GB, free: 65.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009652/1.766, allocations: 99.86 kB / 0.7223 GB, free: 65.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/1.766, allocations: 11.95 kB / 0.7223 GB, free: 65.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.308e-05/1.766, allocations: 11.98 kB / 0.7224 GB, free: 65.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003003/1.767, allocations: 0.5898 MB / 0.7229 GB, free: 65.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/1.767, allocations: 0 / 0.7229 GB, free: 65.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008124/1.768, allocations: 418.4 kB / 0.7233 GB, free: 64.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/1.768, allocations: 188.2 kB / 0.7235 GB, free: 64.56 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/1.768, allocations: 19.92 kB / 0.7235 GB, free: 64.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003595/1.768, allocations: 16 kB / 0.7235 GB, free: 64.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.48e-05/1.768, allocations: 15.97 kB / 0.7236 GB, free: 64.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.637e-05/1.769, allocations: 19.98 kB / 0.7236 GB, free: 64.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005484/1.769, allocations: 350.8 kB / 0.7239 GB, free: 64.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.769, allocations: 4 kB / 0.7239 GB, free: 64.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001749/1.771, allocations: 427.2 kB / 0.7243 GB, free: 63.73 MB / 426.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: 5 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent) * Number of discrete states: 5 (p_table.last,p_table.nextEvent,p_table.b,p_table.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001125/1.772, allocations: 437.8 kB / 0.7247 GB, free: 63.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003053/1.775, allocations: 0.7735 MB / 0.7255 GB, free: 62.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/1.775, allocations: 1.875 kB / 0.7255 GB, free: 62.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/1.776, allocations: 291.2 kB / 0.7258 GB, free: 62.21 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/1.778, allocations: 189.5 kB / 0.726 GB, free: 62.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/1.781, allocations: 1.434 MB / 0.7274 GB, free: 60.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003493/1.782, allocations: 0.8957 MB / 0.7282 GB, free: 59.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002333/1.782, allocations: 63.41 kB / 0.7283 GB, free: 59.57 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/1.782, allocations: 0 / 0.7283 GB, free: 59.57 MB / 426.7 MB Notification: Performance of Templates: time 0.0254/1.807, allocations: 13.21 MB / 0.7412 GB, free: 46.36 MB / 426.7 MB