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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.916/1.916, allocations: 209.4 MB / 217.3 MB, free: 4.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.283e-05/1.291e-05, allocations: 0 / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2616, allocations: 48.7 MB / 320 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5478/0.8094, allocations: 276.6 MB / 0.5827 GB, free: 14.48 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.8097, allocations: 84.7 kB / 0.5828 GB, free: 14.43 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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.5794/1.389, allocations: 114.7 MB / 0.6948 GB, free: 78.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.268e-06/1.389, allocations: 0 / 0.6948 GB, free: 78.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.415e-05/1.389, allocations: 12 kB / 0.6948 GB, free: 78.3 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.001439/1.391, allocations: 0.8515 MB / 0.6956 GB, free: 77.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/1.391, allocations: 16.03 kB / 0.6956 GB, free: 77.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00044/1.391, allocations: 75.23 kB / 0.6957 GB, free: 77.31 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/1.392, allocations: 0.5355 MB / 0.6962 GB, free: 76.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/1.392, allocations: 16 kB / 0.6962 GB, free: 76.72 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.782e-05/1.392, allocations: 24 kB / 0.6963 GB, free: 76.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008818/1.393, allocations: 466.5 kB / 0.6967 GB, free: 76.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000954/1.394, allocations: 0.5741 MB / 0.6973 GB, free: 75.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/1.394, allocations: 0 / 0.6973 GB, free: 75.61 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.906e-05/1.394, allocations: 4 kB / 0.6973 GB, free: 75.61 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.414e-05/1.394, allocations: 12 kB / 0.6973 GB, free: 75.59 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003653/1.398, allocations: 2.989 MB / 0.7002 GB, free: 72.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003579/1.399, allocations: 182.6 kB / 0.7004 GB, free: 72.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/1.399, allocations: 101 kB / 0.7005 GB, free: 72.12 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001501/1.4, allocations: 1.017 MB / 0.7015 GB, free: 71.01 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/1.401, allocations: 162.4 kB / 0.7016 GB, free: 70.83 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 3.863e-06/1.401, allocations: 4 kB / 0.7016 GB, free: 70.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.00364/1.404, allocations: 0.516 MB / 0.7021 GB, free: 70.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/1.404, allocations: 162.2 kB / 0.7023 GB, free: 70.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004975/1.405, allocations: 393.8 kB / 0.7027 GB, free: 69.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/1.405, allocations: 25.7 kB / 0.7027 GB, free: 69.69 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/1.405, allocations: 405 kB / 0.7031 GB, free: 69.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.811e-05/1.405, allocations: 78.94 kB / 0.7032 GB, free: 69.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-05/1.405, allocations: 4 kB / 0.7032 GB, free: 69.21 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.826e-05/1.405, allocations: 330.8 kB / 0.7035 GB, free: 68.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/1.406, allocations: 93.11 kB / 0.7036 GB, free: 68.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/1.406, allocations: 372.4 kB / 0.7039 GB, free: 68.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003126/1.409, allocations: 432 kB / 0.7043 GB, free: 67.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/1.409, allocations: 4 kB / 0.7043 GB, free: 67.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003895/1.413, allocations: 0.7254 MB / 0.705 GB, free: 67.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007333/1.414, allocations: 3.704 MB / 0.7087 GB, free: 63.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/1.414, allocations: 8 kB / 0.7087 GB, free: 63.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.22e-05/1.414, allocations: 12 kB / 0.7087 GB, free: 63.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/1.415, allocations: 199.7 kB / 0.7089 GB, free: 62.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009088/1.416, allocations: 0.664 MB / 0.7095 GB, free: 62.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006896/1.417, allocations: 63.36 kB / 0.7096 GB, free: 62.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.812e-05/1.417, allocations: 35.98 kB / 0.7096 GB, free: 62.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/1.417, allocations: 8.094 kB / 0.7096 GB, free: 62.13 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002554/1.419, allocations: 0.5741 MB / 0.7102 GB, free: 61.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/1.42, allocations: 16.06 kB / 0.7102 GB, free: 61.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/1.42, allocations: 12.05 kB / 0.7102 GB, free: 61.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/1.42, allocations: 139.7 kB / 0.7103 GB, free: 61.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.572e-05/1.42, allocations: 19.92 kB / 0.7104 GB, free: 61.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004538/1.421, allocations: 47.52 kB / 0.7104 GB, free: 61.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-05/1.421, allocations: 32 kB / 0.7104 GB, free: 61.3 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 () * 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.0002082/1.421, allocations: 162.5 kB / 0.7106 GB, free: 61.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/1.421, allocations: 55.34 kB / 0.7106 GB, free: 61.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002554/1.424, allocations: 0.6955 MB / 0.7113 GB, free: 60.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/1.424, allocations: 4 kB / 0.7113 GB, free: 60.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.527e-06/1.424, allocations: 0 / 0.7113 GB, free: 60.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/1.424, allocations: 4 kB / 0.7113 GB, free: 60.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000646/1.424, allocations: 401.5 kB / 0.7117 GB, free: 59.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.914e-06/1.424, allocations: 0 / 0.7117 GB, free: 59.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006703/1.425, allocations: 103.8 kB / 0.7118 GB, free: 59.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/1.425, allocations: 4 kB / 0.7118 GB, free: 59.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/1.425, allocations: 8 kB / 0.7118 GB, free: 59.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004449/1.425, allocations: 0.6171 MB / 0.7124 GB, free: 59.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.74e-06/1.426, allocations: 4 kB / 0.7124 GB, free: 59.17 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/1.427, allocations: 484.6 kB / 0.7129 GB, free: 58.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/1.428, allocations: 192.1 kB / 0.7131 GB, free: 58.47 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/1.428, allocations: 3.938 kB / 0.7131 GB, free: 58.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003255/1.428, allocations: 15.98 kB / 0.7131 GB, free: 58.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.362e-05/1.428, allocations: 19.97 kB / 0.7131 GB, free: 58.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.462e-05/1.428, allocations: 19.98 kB / 0.7131 GB, free: 58.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004164/1.429, allocations: 306.9 kB / 0.7134 GB, free: 58.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.95e-07/1.429, allocations: 0 / 0.7134 GB, free: 58.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001636/1.43, allocations: 411.2 kB / 0.7138 GB, free: 57.71 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) * 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.0009971/1.431, allocations: 429 kB / 0.7142 GB, free: 57.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002131/1.433, allocations: 0.7014 MB / 0.7149 GB, free: 56.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.881e-06/1.433, allocations: 8.062 kB / 0.7149 GB, free: 56.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009154/1.434, allocations: 271.2 kB / 0.7152 GB, free: 56.29 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/1.435, allocations: 177.9 kB / 0.7153 GB, free: 56.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/1.438, allocations: 0.8456 MB / 0.7162 GB, free: 55.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/1.438, allocations: 0.8951 MB / 0.717 GB, free: 54.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/1.438, allocations: 63.41 kB / 0.7171 GB, free: 54.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.703e-06/1.438, allocations: 0 / 0.7171 GB, free: 54.25 MB / 426.7 MB Notification: Performance of Templates: time 0.02048/1.459, allocations: 13.11 MB / 0.7299 GB, free: 41.15 MB / 426.7 MB