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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00999/0.00999, allocations: 167 kB / 15.11 MB, free: 5.93 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 1.632/1.632, allocations: 170.8 MB / 186.6 MB, free: 1.129 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001932/0.001933, allocations: 111.3 kB / 226.2 MB, free: 10.09 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.4225/0.4225, allocations: 38.05 MB / 303.7 MB, free: 42.48 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004926/0.0004927, allocations: 12 kB / 363 MB, free: 5.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1051, allocations: 48.71 MB / 411.7 MB, free: 4.707 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.406/1.511, allocations: 463.2 MB / 0.8543 GB, free: 43.36 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/1.512, allocations: 90.19 kB / 0.8544 GB, free: 43.31 MB / 426.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.91/2.422, allocations: 196.7 MB / 1.047 GB, free: 17.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.274e-06/2.422, allocations: 0 / 1.047 GB, free: 17.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.2e-05/2.422, allocations: 12 kB / 1.047 GB, free: 17.89 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.002825/2.425, allocations: 1.116 MB / 1.048 GB, free: 16.72 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/2.425, allocations: 12.03 kB / 1.048 GB, free: 16.71 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001775/2.425, allocations: 86.47 kB / 1.048 GB, free: 16.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001812/2.427, allocations: 171 kB / 1.048 GB, free: 16.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00142/2.428, allocations: 0.5716 MB / 1.048 GB, free: 15.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/2.428, allocations: 33 kB / 1.048 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/2.428, allocations: 40 kB / 1.049 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/2.43, allocations: 0.6001 MB / 1.049 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/2.43, allocations: 7.969 kB / 1.049 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-05/2.43, allocations: 20 kB / 1.049 GB, free: 15.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/2.43, allocations: 12 kB / 1.049 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/2.431, allocations: 475.6 kB / 1.05 GB, free: 14.62 MB / 426.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.003835/2.435, allocations: 2.605 MB / 1.052 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006707/2.435, allocations: 258.7 kB / 1.052 GB, free: 11.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003698/2.436, allocations: 240.2 kB / 1.053 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000478/2.436, allocations: 261.7 kB / 1.053 GB, free: 11.03 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 2.856e-06/2.436, allocations: 0 / 1.053 GB, free: 11.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.001477/2.438, allocations: 0.6482 MB / 1.054 GB, free: 10.35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.726e-05/2.438, allocations: 166.2 kB / 1.054 GB, free: 10.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007117/2.438, allocations: 490 kB / 1.054 GB, free: 9.664 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.183e-05/2.439, allocations: 33.7 kB / 1.054 GB, free: 9.625 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/2.439, allocations: 347.1 kB / 1.055 GB, free: 9.281 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/2.439, allocations: 122.3 kB / 1.055 GB, free: 9.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.511e-05/2.439, allocations: 8 kB / 1.055 GB, free: 9.152 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/2.439, allocations: 370.7 kB / 1.055 GB, free: 8.781 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/2.44, allocations: 157 kB / 1.055 GB, free: 8.625 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004878/2.44, allocations: 386.6 kB / 1.056 GB, free: 8.145 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/2.441, allocations: 245.2 kB / 1.056 GB, free: 7.898 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/2.441, allocations: 3.984 kB / 1.056 GB, free: 7.895 MB / 426.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001487/2.442, allocations: 0.6548 MB / 1.056 GB, free: 7.227 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005674/2.443, allocations: 2.733 MB / 1.059 GB, free: 4.277 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/2.443, allocations: 8 kB / 1.059 GB, free: 4.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.171e-05/2.443, allocations: 8 kB / 1.059 GB, free: 4.262 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0121/2.455, allocations: 0.6165 MB / 1.06 GB, free: 3.645 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006117/2.455, allocations: 0.6639 MB / 1.06 GB, free: 2.957 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000815/2.456, allocations: 67.52 kB / 1.06 GB, free: 2.891 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/2.456, allocations: 55.98 kB / 1.06 GB, free: 2.836 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/2.456, allocations: 4 kB / 1.06 GB, free: 2.832 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001252/2.458, allocations: 0.5516 MB / 1.061 GB, free: 2.273 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/2.458, allocations: 12.88 kB / 1.061 GB, free: 2.262 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/2.458, allocations: 11.98 kB / 1.061 GB, free: 2.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007003/2.459, allocations: 139.8 kB / 1.061 GB, free: 2.113 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/2.459, allocations: 11.94 kB / 1.061 GB, free: 2.102 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005751/2.459, allocations: 67.55 kB / 1.061 GB, free: 2.035 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-05/2.459, allocations: 48 kB / 1.061 GB, free: 1.988 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 () * 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.0004404/2.46, allocations: 315.6 kB / 1.062 GB, free: 1.664 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/2.46, allocations: 63.25 kB / 1.062 GB, free: 1.602 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0024/2.462, allocations: 0.7586 MB / 1.062 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/2.462, allocations: 7.938 kB / 1.062 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/2.462, allocations: 0 / 1.062 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.839e-06/2.462, allocations: 7.938 kB / 1.062 GB, free: 0.8086 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2941/2.756, allocations: 1.641 MB / 1.064 GB, free: 67.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/2.756, allocations: 2.828 kB / 1.064 GB, free: 67.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003506/2.76, allocations: 210.3 kB / 1.064 GB, free: 67.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.424e-05/2.76, allocations: 3.312 kB / 1.064 GB, free: 67.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.581e-05/2.76, allocations: 20.81 kB / 1.064 GB, free: 67.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004573/2.761, allocations: 0.6498 MB / 1.065 GB, free: 66.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/2.761, allocations: 6.219 kB / 1.065 GB, free: 66.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/2.762, allocations: 0.7338 MB / 1.066 GB, free: 66.22 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002123/2.762, allocations: 140.7 kB / 1.066 GB, free: 66.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/2.762, allocations: 13.03 kB / 1.066 GB, free: 66.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005183/2.763, allocations: 26.3 kB / 1.066 GB, free: 66.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001163/2.763, allocations: 35.75 kB / 1.066 GB, free: 66.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-05/2.763, allocations: 34.62 kB / 1.066 GB, free: 66.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006955/2.764, allocations: 385 kB / 1.066 GB, free: 66.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.764, allocations: 4.938 kB / 1.066 GB, free: 66.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002745/2.767, allocations: 0.6076 MB / 1.067 GB, free: 66.04 MB / 426.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.004836/2.772, allocations: 2.934 MB / 1.07 GB, free: 64.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02218/2.794, allocations: 1.602 MB / 1.071 GB, free: 64.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/2.794, allocations: 1.312 kB / 1.071 GB, free: 64.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005539/2.799, allocations: 468.5 kB / 1.072 GB, free: 64.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/2.801, allocations: 247.6 kB / 1.072 GB, free: 64.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01623/2.818, allocations: 9.699 MB / 1.081 GB, free: 58.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004415/2.818, allocations: 0.8974 MB / 1.082 GB, free: 57.83 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002111/2.82, allocations: 281.2 kB / 1.082 GB, free: 57.83 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000644/2.821, allocations: 244.3 kB / 1.083 GB, free: 57.82 MB / 426.7 MB Notification: Performance of SimCode: time 9.71e-07/2.821, allocations: 1.312 kB / 1.083 GB, free: 57.82 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08927/2.91, allocations: 31.81 MB / 1.114 GB, free: 56.68 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002854/2.911, allocations: 274.7 kB / 1.114 GB, free: 56.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.936/6.847, allocations: 0 / 1.114 GB, free: 56.32 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat does not exist to compare? outputFormat=mat