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.Fittings.TestSimpleGenericOrifice.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.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.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSimpleGenericOrifice") Notification: Performance of loadModel(ModelicaTest): time 2.225/2.225, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004362, allocations: 12 kB / 314.4 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2767, allocations: 54.85 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6074/0.8842, allocations: 283.9 MB / 0.6378 GB, free: 13.93 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.8845, allocations: 89.08 kB / 0.6379 GB, free: 13.88 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 .... [/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 0.5811/1.466, allocations: 116.3 MB / 0.7515 GB, free: 105.1 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.874e-06/1.466, allocations: 3.938 kB / 0.7515 GB, free: 105.1 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.398e-05/1.466, allocations: 16 kB / 0.7515 GB, free: 105.1 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001645/1.467, allocations: 0.9259 MB / 0.7524 GB, free: 104.1 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/1.467, allocations: 8.031 kB / 0.7524 GB, free: 104.1 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003981/1.468, allocations: 79.23 kB / 0.7525 GB, free: 104 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/1.469, allocations: 0.5559 MB / 0.753 GB, free: 103.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/1.469, allocations: 33 kB / 0.7531 GB, free: 103.4 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.401e-05/1.469, allocations: 40 kB / 0.7531 GB, free: 103.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/1.47, allocations: 0.6472 MB / 0.7537 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.872e-05/1.47, allocations: 0 / 0.7537 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.537e-05/1.47, allocations: 24 kB / 0.7538 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/1.47, allocations: 16 kB / 0.7538 GB, free: 102.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008822/1.471, allocations: 0.4996 MB / 0.7543 GB, free: 102.1 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/1.475, allocations: 3.103 MB / 0.7573 GB, free: 98.79 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003981/1.475, allocations: 207 kB / 0.7575 GB, free: 98.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00141/1.477, allocations: 1.021 MB / 0.7585 GB, free: 97.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002827/1.477, allocations: 185 kB / 0.7587 GB, free: 97.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.522e-06/1.477, allocations: 0 / 0.7587 GB, free: 97.25 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.000828/1.478, allocations: 452.2 kB / 0.7591 GB, free: 96.78 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/1.478, allocations: 158.2 kB / 0.7593 GB, free: 96.59 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005741/1.479, allocations: 434 kB / 0.7597 GB, free: 96.16 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/1.479, allocations: 29.7 kB / 0.7597 GB, free: 96.12 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/1.479, allocations: 416.9 kB / 0.7601 GB, free: 95.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.225e-05/1.479, allocations: 79 kB / 0.7602 GB, free: 95.63 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/1.479, allocations: 11.94 kB / 0.7602 GB, free: 95.62 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.579e-05/1.479, allocations: 330.8 kB / 0.7605 GB, free: 95.29 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002364/1.479, allocations: 113 kB / 0.7606 GB, free: 95.18 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/1.48, allocations: 401.4 kB / 0.761 GB, free: 94.65 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/1.48, allocations: 206.7 kB / 0.7612 GB, free: 94.44 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.83e-06/1.48, allocations: 4 kB / 0.7612 GB, free: 94.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001064/1.481, allocations: 0.5452 MB / 0.7617 GB, free: 93.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007226/1.482, allocations: 3.701 MB / 0.7653 GB, free: 89.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/1.482, allocations: 8 kB / 0.7653 GB, free: 89.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.005e-05/1.482, allocations: 19.94 kB / 0.7654 GB, free: 89.87 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/1.483, allocations: 187.7 kB / 0.7655 GB, free: 89.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000404/1.484, allocations: 0.6171 MB / 0.7661 GB, free: 89.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006395/1.484, allocations: 79.45 kB / 0.7662 GB, free: 88.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.242e-05/1.484, allocations: 35.98 kB / 0.7662 GB, free: 88.93 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/1.484, allocations: 4 kB / 0.7663 GB, free: 88.93 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009305/1.485, allocations: 0.525 MB / 0.7668 GB, free: 88.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/1.485, allocations: 8 kB / 0.7668 GB, free: 88.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/1.485, allocations: 16 kB / 0.7668 GB, free: 88.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000443/1.486, allocations: 127.8 kB / 0.7669 GB, free: 88.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/1.486, allocations: 19.92 kB / 0.7669 GB, free: 88.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004003/1.486, allocations: 67.45 kB / 0.767 GB, free: 88.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.092e-05/1.486, allocations: 36.09 kB / 0.767 GB, free: 88.12 MB / 490.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: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * 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.0003628/1.487, allocations: 310.5 kB / 0.7673 GB, free: 87.8 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/1.487, allocations: 59.3 kB / 0.7674 GB, free: 87.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/1.488, allocations: 0.6316 MB / 0.768 GB, free: 87.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/1.488, allocations: 4 kB / 0.768 GB, free: 87.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.465e-06/1.488, allocations: 0 / 0.768 GB, free: 87.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/1.488, allocations: 3.984 kB / 0.768 GB, free: 87.09 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006395/1.489, allocations: 477 kB / 0.7685 GB, free: 86.58 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.096e-06/1.489, allocations: 4 kB / 0.7685 GB, free: 86.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000674/1.49, allocations: 107.8 kB / 0.7686 GB, free: 86.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.121e-06/1.49, allocations: 7.938 kB / 0.7686 GB, free: 86.46 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.292e-05/1.49, allocations: 15.98 kB / 0.7686 GB, free: 86.45 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002777/1.49, allocations: 0.586 MB / 0.7692 GB, free: 85.84 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.129e-06/1.49, allocations: 0 / 0.7692 GB, free: 85.84 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007011/1.491, allocations: 422.6 kB / 0.7696 GB, free: 85.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002647/1.491, allocations: 192 kB / 0.7697 GB, free: 85.19 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/1.491, allocations: 8 kB / 0.7698 GB, free: 85.18 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/1.492, allocations: 24.08 kB / 0.7698 GB, free: 85.16 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.734e-05/1.492, allocations: 27.92 kB / 0.7698 GB, free: 85.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.37e-05/1.492, allocations: 15.98 kB / 0.7698 GB, free: 85.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004779/1.492, allocations: 354.8 kB / 0.7702 GB, free: 84.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.37e-07/1.492, allocations: 0 / 0.7702 GB, free: 84.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001581/1.494, allocations: 427.3 kB / 0.7706 GB, free: 84.36 MB / 490.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: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,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.0009047/1.495, allocations: 448 kB / 0.771 GB, free: 83.91 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00219/1.497, allocations: 0.8333 MB / 0.7718 GB, free: 83.06 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.672e-06/1.497, allocations: 0 / 0.7718 GB, free: 83.06 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009123/1.498, allocations: 320 kB / 0.7721 GB, free: 82.73 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/1.499, allocations: 184.4 kB / 0.7723 GB, free: 82.56 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/1.502, allocations: 1.448 MB / 0.7737 GB, free: 81.07 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/1.502, allocations: 0.8961 MB / 0.7746 GB, free: 80.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001796/1.502, allocations: 71.41 kB / 0.7746 GB, free: 80.08 MB / 490.7 MB Notification: Performance of SimCode: time 1.983e-06/1.502, allocations: 0 / 0.7746 GB, free: 80.08 MB / 490.7 MB Notification: Performance of Templates: time 0.01937/1.522, allocations: 13.33 MB / 0.7877 GB, free: 66.77 MB / 490.7 MB