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.Fittings.TestSimpleGenericOrifice.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.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 1.982/1.982, allocations: 209.2 MB / 224.8 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.0004492, allocations: 20 kB / 282.6 MB, free: 9.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2874, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5499/0.8374, allocations: 277.4 MB / 0.5944 GB, free: 7.727 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.8377, allocations: 84.02 kB / 0.5945 GB, free: 7.68 MB / 410.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 .... [/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 0.5594/1.397, allocations: 116.2 MB / 0.708 GB, free: 83.02 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.201e-06/1.397, allocations: 0 / 0.708 GB, free: 83.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.267e-05/1.397, allocations: 15.98 kB / 0.708 GB, free: 83 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.001632/1.399, allocations: 0.9213 MB / 0.7089 GB, free: 82.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/1.399, allocations: 12.03 kB / 0.7089 GB, free: 82.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004026/1.399, allocations: 75.25 kB / 0.709 GB, free: 81.94 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/1.4, allocations: 0.5404 MB / 0.7095 GB, free: 81.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/1.4, allocations: 33 kB / 0.7096 GB, free: 81.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.351e-05/1.401, allocations: 44 kB / 0.7096 GB, free: 81.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/1.402, allocations: 0.6477 MB / 0.7102 GB, free: 80.57 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/1.402, allocations: 3.984 kB / 0.7102 GB, free: 80.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.351e-05/1.402, allocations: 20 kB / 0.7103 GB, free: 80.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.361e-05/1.402, allocations: 12 kB / 0.7103 GB, free: 80.54 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008874/1.403, allocations: 0.5035 MB / 0.7108 GB, free: 80.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003598/1.406, allocations: 3.08 MB / 0.7138 GB, free: 76.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004001/1.407, allocations: 194.8 kB / 0.7139 GB, free: 76.56 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001396/1.408, allocations: 1.009 MB / 0.7149 GB, free: 75.45 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002823/1.408, allocations: 176.1 kB / 0.7151 GB, free: 75.27 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.138e-06/1.408, allocations: 0 / 0.7151 GB, free: 75.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008638/1.409, allocations: 456.3 kB / 0.7155 GB, free: 74.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/1.409, allocations: 158.2 kB / 0.7157 GB, free: 74.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005554/1.41, allocations: 437.8 kB / 0.7161 GB, free: 74.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/1.41, allocations: 29.7 kB / 0.7161 GB, free: 74.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/1.41, allocations: 405 kB / 0.7165 GB, free: 73.72 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/1.41, allocations: 78.98 kB / 0.7166 GB, free: 73.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/1.41, allocations: 12 kB / 0.7166 GB, free: 73.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.664e-05/1.41, allocations: 330.8 kB / 0.7169 GB, free: 73.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/1.411, allocations: 109.1 kB / 0.717 GB, free: 73.19 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/1.411, allocations: 389.5 kB / 0.7174 GB, free: 72.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003318/1.411, allocations: 202.5 kB / 0.7176 GB, free: 72.47 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.297e-06/1.411, allocations: 4 kB / 0.7176 GB, free: 72.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001084/1.413, allocations: 0.5564 MB / 0.7181 GB, free: 71.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007086/1.413, allocations: 3.689 MB / 0.7217 GB, free: 67.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/1.413, allocations: 11.94 kB / 0.7218 GB, free: 67.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.088e-05/1.413, allocations: 16 kB / 0.7218 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/1.415, allocations: 191.7 kB / 0.7219 GB, free: 67.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004114/1.415, allocations: 0.6094 MB / 0.7225 GB, free: 67.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007062/1.416, allocations: 87.31 kB / 0.7226 GB, free: 66.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.305e-05/1.416, allocations: 43.91 kB / 0.7227 GB, free: 66.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/1.416, allocations: 7.938 kB / 0.7227 GB, free: 66.94 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009555/1.417, allocations: 0.5092 MB / 0.7232 GB, free: 66.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/1.417, allocations: 8 kB / 0.7232 GB, free: 66.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/1.417, allocations: 16 kB / 0.7232 GB, free: 66.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004562/1.417, allocations: 127.8 kB / 0.7233 GB, free: 66.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/1.417, allocations: 19.92 kB / 0.7233 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004429/1.418, allocations: 56.11 kB / 0.7234 GB, free: 66.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-05/1.418, allocations: 35.98 kB / 0.7234 GB, free: 66.16 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.0004329/1.418, allocations: 310.5 kB / 0.7237 GB, free: 65.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/1.419, allocations: 59.3 kB / 0.7238 GB, free: 65.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001554/1.42, allocations: 0.6506 MB / 0.7244 GB, free: 65.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/1.42, allocations: 0 / 0.7244 GB, free: 65.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.127e-06/1.42, allocations: 8 kB / 0.7244 GB, free: 65.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.201e-06/1.42, allocations: 3.984 kB / 0.7244 GB, free: 65.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006563/1.421, allocations: 465.1 kB / 0.7249 GB, free: 64.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/1.421, allocations: 0 / 0.7249 GB, free: 64.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006901/1.422, allocations: 107.8 kB / 0.725 GB, free: 64.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.059e-06/1.422, allocations: 0 / 0.725 GB, free: 64.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.337e-05/1.422, allocations: 23.98 kB / 0.725 GB, free: 64.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002744/1.422, allocations: 0.586 MB / 0.7256 GB, free: 63.87 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/1.422, allocations: 0 / 0.7256 GB, free: 63.87 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007442/1.423, allocations: 418.2 kB / 0.726 GB, free: 63.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/1.423, allocations: 188.2 kB / 0.7261 GB, free: 63.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/1.423, allocations: 12.09 kB / 0.7262 GB, free: 63.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003271/1.423, allocations: 19.98 kB / 0.7262 GB, free: 63.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/1.424, allocations: 19.97 kB / 0.7262 GB, free: 63.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-05/1.424, allocations: 15.98 kB / 0.7262 GB, free: 63.16 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005039/1.424, allocations: 354.8 kB / 0.7265 GB, free: 62.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.424, allocations: 0 / 0.7265 GB, free: 62.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001695/1.426, allocations: 427.2 kB / 0.727 GB, free: 62.4 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.00101/1.427, allocations: 443.4 kB / 0.7274 GB, free: 61.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002256/1.429, allocations: 0.7703 MB / 0.7281 GB, free: 61.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.744e-06/1.429, allocations: 4 kB / 0.7281 GB, free: 61.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009308/1.43, allocations: 292.4 kB / 0.7284 GB, free: 60.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/1.431, allocations: 193.1 kB / 0.7286 GB, free: 60.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002517/1.434, allocations: 1.423 MB / 0.73 GB, free: 59.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/1.434, allocations: 0.8879 MB / 0.7309 GB, free: 58.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/1.434, allocations: 67.41 kB / 0.7309 GB, free: 58.25 MB / 426.7 MB Notification: Performance of SimCode: time 2.294e-06/1.434, allocations: 0 / 0.7309 GB, free: 58.25 MB / 426.7 MB Notification: Performance of Templates: time 0.01991/1.454, allocations: 13.21 MB / 0.7438 GB, free: 45.05 MB / 426.7 MB