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.TestSharpEdgedOrifice.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.TestSharpEdgedOrifice,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|orifice1.port_b.m_flow|orifice1.port_b.p|orifice1.port_b.h_outflow|orifice2.port_b.m_flow|orifice2.port_b.p|orifice2.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadModel(ModelicaTest): time 1.949/1.949, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.722e-05/1.723e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2609/0.261, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.173/1.434, allocations: 462.4 MB / 0.7641 GB, free: 115.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/1.434, allocations: 88.56 kB / 0.7642 GB, free: 115.7 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/Media/IdealGases/Common/Functions.mo:204:5-205:38:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/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.7927/2.227, allocations: 190.4 MB / 0.9501 GB, free: 87.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.809e-06/2.227, allocations: 3.281 kB / 0.9501 GB, free: 87.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.866e-05/2.227, allocations: 12.44 kB / 0.9502 GB, free: 87.36 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.002174/2.229, allocations: 1.027 MB / 0.9512 GB, free: 86.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/2.229, allocations: 7.188 kB / 0.9512 GB, free: 86.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001715/2.231, allocations: 173.5 kB / 0.9513 GB, free: 86.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/2.232, allocations: 0.5739 MB / 0.9519 GB, free: 86.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.908e-05/2.232, allocations: 11.47 kB / 0.9519 GB, free: 86.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.139e-05/2.232, allocations: 25 kB / 0.9519 GB, free: 86.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008818/2.233, allocations: 439.8 kB / 0.9524 GB, free: 86.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009617/2.234, allocations: 0.5268 MB / 0.9529 GB, free: 86.36 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/2.234, allocations: 2.344 kB / 0.9529 GB, free: 86.36 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-05/2.234, allocations: 0 / 0.9529 GB, free: 86.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/2.234, allocations: 14.33 kB / 0.9529 GB, free: 86.35 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.003749/2.238, allocations: 2.696 MB / 0.9555 GB, free: 84.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000746/2.239, allocations: 258 kB / 0.9558 GB, free: 84.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000218/2.239, allocations: 107.1 kB / 0.9559 GB, free: 84.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002587/2.239, allocations: 199.4 kB / 0.9561 GB, free: 84.61 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/2.239, allocations: 188 kB / 0.9562 GB, free: 84.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 4.02e-06/2.239, allocations: 0 / 0.9562 GB, free: 84.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=23): time 0.01268/2.252, allocations: 1.499 MB / 0.9577 GB, free: 84.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.756e-05/2.252, allocations: 158.1 kB / 0.9578 GB, free: 84.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007385/2.253, allocations: 0.5079 MB / 0.9583 GB, free: 84.15 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/2.253, allocations: 25.7 kB / 0.9584 GB, free: 84.12 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002303/2.253, allocations: 410 kB / 0.9588 GB, free: 83.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.711e-05/2.253, allocations: 83.61 kB / 0.9588 GB, free: 83.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/2.253, allocations: 0 / 0.9588 GB, free: 83.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.692e-05/2.254, allocations: 325.9 kB / 0.9591 GB, free: 83.53 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002897/2.254, allocations: 147.4 kB / 0.9593 GB, free: 83.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003803/2.254, allocations: 366 kB / 0.9596 GB, free: 83.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01198/2.266, allocations: 1.431 MB / 0.961 GB, free: 83.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.21e-05/2.266, allocations: 3.875 kB / 0.961 GB, free: 83.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.01259/2.279, allocations: 1.784 MB / 0.9628 GB, free: 83.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005574/2.279, allocations: 2.741 MB / 0.9655 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/2.28, allocations: 7.875 kB / 0.9655 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.773e-05/2.28, allocations: 13.55 kB / 0.9655 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006688/2.286, allocations: 0.616 MB / 0.9661 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00365/2.29, allocations: 1.004 MB / 0.9671 GB, free: 79.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008119/2.291, allocations: 70.81 kB / 0.9671 GB, free: 79.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/2.291, allocations: 54.48 kB / 0.9672 GB, free: 79.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/2.291, allocations: 2.969 kB / 0.9672 GB, free: 79.76 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003807/2.295, allocations: 0.9048 MB / 0.9681 GB, free: 79.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/2.295, allocations: 14.59 kB / 0.9681 GB, free: 79.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/2.295, allocations: 11.16 kB / 0.9681 GB, free: 79.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000551/2.295, allocations: 135.7 kB / 0.9682 GB, free: 79.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/2.295, allocations: 13.88 kB / 0.9682 GB, free: 79.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004785/2.296, allocations: 40.44 kB / 0.9683 GB, free: 79.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/2.296, allocations: 57.66 kB / 0.9683 GB, free: 79.74 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (62): * Single equations (assignments): 60 * 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.0002282/2.296, allocations: 161.3 kB / 0.9685 GB, free: 79.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/2.296, allocations: 62.61 kB / 0.9685 GB, free: 79.57 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00442/2.301, allocations: 0.7029 MB / 0.9692 GB, free: 79.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.67e-06/2.301, allocations: 6.594 kB / 0.9692 GB, free: 79.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.22e-06/2.301, allocations: 3.844 kB / 0.9692 GB, free: 79.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.637e-06/2.301, allocations: 0 / 0.9692 GB, free: 79.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007632/2.302, allocations: 429.5 kB / 0.9696 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.139e-06/2.302, allocations: 0 / 0.9696 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002328/2.304, allocations: 170.1 kB / 0.9698 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.938e-06/2.304, allocations: 2.156 kB / 0.9698 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/2.304, allocations: 11.08 kB / 0.9698 GB, free: 79.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/2.306, allocations: 0.7208 MB / 0.9705 GB, free: 78.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.201e-06/2.306, allocations: 7.219 kB / 0.9705 GB, free: 78.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003757/2.309, allocations: 0.6525 MB / 0.9712 GB, free: 78.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/2.31, allocations: 148.8 kB / 0.9713 GB, free: 78.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001332/2.31, allocations: 6.531 kB / 0.9713 GB, free: 78.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003899/2.31, allocations: 14.77 kB / 0.9713 GB, free: 78.54 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.052e-05/2.31, allocations: 11.08 kB / 0.9713 GB, free: 78.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/2.31, allocations: 18.36 kB / 0.9714 GB, free: 78.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005705/2.311, allocations: 402.6 kB / 0.9717 GB, free: 78.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.047e-06/2.311, allocations: 0 / 0.9717 GB, free: 78.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002099/2.313, allocations: 0.5737 MB / 0.9723 GB, free: 78.32 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 (23): * Single equations (assignments): 21 * 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 Backend phase and start with SimCode phase: time 0.002473/2.316, allocations: 1.341 MB / 0.9736 GB, free: 78.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.013/2.329, allocations: 1.485 MB / 0.9751 GB, free: 77.94 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.837e-06/2.329, allocations: 0 / 0.9751 GB, free: 77.94 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003596/2.332, allocations: 371.6 kB / 0.9754 GB, free: 77.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/2.334, allocations: 213.3 kB / 0.9756 GB, free: 77.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00813/2.342, allocations: 2.309 MB / 0.9779 GB, free: 77.59 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/2.342, allocations: 0.8957 MB / 0.9787 GB, free: 76.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005049/2.343, allocations: 95.39 kB / 0.9788 GB, free: 76.88 MB / 426.7 MB Notification: Performance of SimCode: time 2.102e-06/2.343, allocations: 0 / 0.9788 GB, free: 76.88 MB / 426.7 MB Notification: Performance of Templates: time 0.02883/2.371, allocations: 18.77 MB / 0.9972 GB, free: 73.13 MB / 426.7 MB