Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002899/0.002904, allocations: 347.1 kB / 15.94 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.537/3.537, allocations: 341.5 MB / 358.2 MB, free: 28.75 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.005906/0.005905, allocations: 216.3 kB / 397.9 MB, free: 6.148 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5478/0.5478, allocations: 76.1 MB / 0.5014 GB, free: 0.8242 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004943/0.0004945, allocations: 11.98 kB / 0.5592 GB, free: 60.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1026, allocations: 48.7 MB / 0.6067 GB, free: 11.54 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.559/1.662, allocations: 463.2 MB / 1.059 GB, free: 86.77 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/1.662, allocations: 87.2 kB / 1.059 GB, free: 86.72 MB / 442.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Media/IdealGases/Common/Functions.mo:204:5-205:38:writable] Error: PartialMedium is partial, name lookup is not allowed in partial classes. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/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.9867/2.649, allocations: 195.4 MB / 1.25 GB, free: 65.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.755e-06/2.649, allocations: 4 kB / 1.25 GB, free: 65.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.335e-05/2.649, allocations: 16 kB / 1.25 GB, free: 65.96 MB / 442.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.003501/2.652, allocations: 1.117 MB / 1.251 GB, free: 64.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/2.652, allocations: 8.031 kB / 1.251 GB, free: 64.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002078/2.654, allocations: 175 kB / 1.251 GB, free: 64.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001811/2.656, allocations: 0.5794 MB / 1.252 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.746e-05/2.656, allocations: 33 kB / 1.252 GB, free: 63.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/2.657, allocations: 40 kB / 1.252 GB, free: 63.92 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/2.658, allocations: 0.6019 MB / 1.252 GB, free: 63.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/2.658, allocations: 3.938 kB / 1.252 GB, free: 63.27 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.325e-05/2.658, allocations: 23.98 kB / 1.253 GB, free: 63.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/2.658, allocations: 12 kB / 1.253 GB, free: 63.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/2.659, allocations: 475.6 kB / 1.253 GB, free: 62.77 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.004521/2.664, allocations: 2.605 MB / 1.256 GB, free: 59.99 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007127/2.665, allocations: 260.7 kB / 1.256 GB, free: 59.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004037/2.665, allocations: 176.9 kB / 1.256 GB, free: 59.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001596/2.667, allocations: 1.225 MB / 1.257 GB, free: 58.13 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005995/2.667, allocations: 261.8 kB / 1.257 GB, free: 57.85 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 3.356e-06/2.667, allocations: 0 / 1.257 GB, free: 57.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.001579/2.669, allocations: 0.5852 MB / 1.258 GB, free: 57.26 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.099e-05/2.669, allocations: 158.2 kB / 1.258 GB, free: 57.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000842/2.67, allocations: 0.5457 MB / 1.259 GB, free: 56.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.462e-05/2.67, allocations: 33.7 kB / 1.259 GB, free: 56.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002692/2.67, allocations: 351.1 kB / 1.259 GB, free: 56.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/2.67, allocations: 102.5 kB / 1.259 GB, free: 56.03 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.515e-05/2.67, allocations: 8 kB / 1.259 GB, free: 56.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/2.67, allocations: 374.7 kB / 1.259 GB, free: 55.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004097/2.671, allocations: 157 kB / 1.26 GB, free: 55.49 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000498/2.671, allocations: 386.6 kB / 1.26 GB, free: 55.01 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005115/2.672, allocations: 250.3 kB / 1.26 GB, free: 54.76 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.295e-06/2.672, allocations: 4 kB / 1.26 GB, free: 54.75 MB / 442.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001643/2.674, allocations: 0.6582 MB / 1.261 GB, free: 54.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002041/2.674, allocations: 324 kB / 1.261 GB, free: 53.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/2.674, allocations: 15.94 kB / 1.261 GB, free: 53.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.146e-05/2.674, allocations: 8 kB / 1.261 GB, free: 53.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01178/2.686, allocations: 0.6243 MB / 1.262 GB, free: 53.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006137/2.686, allocations: 0.6561 MB / 1.262 GB, free: 52.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008892/2.687, allocations: 63.52 kB / 1.263 GB, free: 52.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/2.687, allocations: 64.08 kB / 1.263 GB, free: 52.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/2.687, allocations: 6.188 kB / 1.263 GB, free: 52.21 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001289/2.689, allocations: 0.5517 MB / 1.263 GB, free: 51.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/2.689, allocations: 8 kB / 1.263 GB, free: 51.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.538e-05/2.689, allocations: 11.98 kB / 1.263 GB, free: 51.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007365/2.69, allocations: 135.8 kB / 1.263 GB, free: 51.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/2.69, allocations: 11.94 kB / 1.263 GB, free: 51.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000706/2.69, allocations: 68.03 kB / 1.263 GB, free: 51.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/2.69, allocations: 48 kB / 1.263 GB, free: 51.37 MB / 442.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 () * Number of clocked 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.0005358/2.691, allocations: 315.8 kB / 1.264 GB, free: 51.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/2.691, allocations: 59.34 kB / 1.264 GB, free: 50.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/2.694, allocations: 0.7558 MB / 1.264 GB, free: 50.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/2.694, allocations: 7.984 kB / 1.265 GB, free: 50.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/2.694, allocations: 0 / 1.265 GB, free: 50.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/2.694, allocations: 0 / 1.265 GB, free: 50.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004638/2.698, allocations: 2.991 MB / 1.267 GB, free: 46.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/2.698, allocations: 0 / 1.267 GB, free: 46.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003388/2.702, allocations: 219.9 kB / 1.268 GB, free: 46.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-05/2.702, allocations: 4 kB / 1.268 GB, free: 46.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.509e-05/2.702, allocations: 19.95 kB / 1.268 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004419/2.702, allocations: 0.6367 MB / 1.268 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/2.702, allocations: 8.094 kB / 1.268 GB, free: 45.92 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001264/2.704, allocations: 0.6488 MB / 1.269 GB, free: 45.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002186/2.704, allocations: 140.3 kB / 1.269 GB, free: 45.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/2.704, allocations: 16 kB / 1.269 GB, free: 45.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00053/2.705, allocations: 31.81 kB / 1.269 GB, free: 45.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.638e-05/2.705, allocations: 43.89 kB / 1.269 GB, free: 44.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/2.705, allocations: 35.98 kB / 1.269 GB, free: 44.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006211/2.706, allocations: 382.8 kB / 1.27 GB, free: 44.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/2.706, allocations: 0 / 1.27 GB, free: 44.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002831/2.708, allocations: 0.6046 MB / 1.27 GB, free: 43.97 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 35 * 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.003109/2.712, allocations: 1.204 MB / 1.271 GB, free: 42.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02136/2.733, allocations: 1.613 MB / 1.273 GB, free: 41.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/2.733, allocations: 1.938 kB / 1.273 GB, free: 41.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005447/2.738, allocations: 472.9 kB / 1.273 GB, free: 40.66 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002432/2.741, allocations: 253.9 kB / 1.274 GB, free: 40.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004284/2.745, allocations: 1.801 MB / 1.275 GB, free: 38.56 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/2.746, allocations: 0.8955 MB / 1.276 GB, free: 37.64 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002131/2.748, allocations: 272.5 kB / 1.276 GB, free: 37.37 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004551/2.748, allocations: 91.39 kB / 1.277 GB, free: 37.28 MB / 442.7 MB Notification: Performance of SimCode: time 1.342e-06/2.748, allocations: 0 / 1.277 GB, free: 37.28 MB / 442.7 MB Notification: Performance of Templates: time 0.05339/2.802, allocations: 23.9 MB / 1.3 GB, free: 13.43 MB / 442.7 MB