Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") 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_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001/0.001, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008313/0.0008313, allocations: 104.3 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1969/0.1969, allocations: 45.15 MB / 383.8 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.517e-05/1.516e-05, allocations: 7.938 kB / 453.2 MB, free: 75.83 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1178, allocations: 63.23 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.296/1.414, allocations: 477.6 MB / 0.9707 GB, free: 198.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/1.414, allocations: 80.3 kB / 0.9708 GB, free: 198.9 MB / 0.5261 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308: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 .... [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308: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.3372/1.752, allocations: 184.6 MB / 1.151 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.823e-06/1.752, allocations: 0 / 1.151 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.34e-05/1.752, allocations: 19.92 kB / 1.151 GB, free: 12.78 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.001744/1.754, allocations: 0.991 MB / 1.152 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/1.754, allocations: 8.031 kB / 1.152 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001237/1.755, allocations: 175 kB / 1.152 GB, free: 11.55 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007995/1.756, allocations: 0.5546 MB / 1.153 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/1.756, allocations: 16 kB / 1.153 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/1.756, allocations: 24 kB / 1.153 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005723/1.756, allocations: 458.5 kB / 1.153 GB, free: 10.47 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000664/1.757, allocations: 0.5426 MB / 1.154 GB, free: 9.887 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/1.757, allocations: 4 kB / 1.154 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.5e-05/1.757, allocations: 4 kB / 1.154 GB, free: 9.879 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/1.757, allocations: 12 kB / 1.154 GB, free: 9.867 MB / 0.5261 GB 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.002653/1.76, allocations: 2.997 MB / 1.157 GB, free: 6.633 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/1.76, allocations: 270.6 kB / 1.157 GB, free: 6.359 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/1.76, allocations: 124.8 kB / 1.157 GB, free: 6.234 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001885/1.761, allocations: 259.3 kB / 1.157 GB, free: 5.926 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/1.761, allocations: 264 kB / 1.158 GB, free: 5.633 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 1.483e-06/1.761, allocations: 0 / 1.158 GB, free: 5.633 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.008851/1.77, allocations: 1.442 MB / 1.159 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.585e-05/1.77, allocations: 290.7 kB / 1.159 GB, free: 3.832 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005183/1.77, allocations: 0.4943 MB / 1.16 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/1.77, allocations: 33.7 kB / 1.16 GB, free: 3.293 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/1.771, allocations: 374.8 kB / 1.16 GB, free: 2.922 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/1.771, allocations: 78.94 kB / 1.16 GB, free: 2.844 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/1.771, allocations: 0 / 1.16 GB, free: 2.844 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.147e-05/1.771, allocations: 362.8 kB / 1.161 GB, free: 2.48 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/1.771, allocations: 157.1 kB / 1.161 GB, free: 2.328 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002602/1.771, allocations: 367.3 kB / 1.161 GB, free: 1.867 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008401/1.78, allocations: 1.33 MB / 1.162 GB, free: 0.5352 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.345e-06/1.78, allocations: 7.953 kB / 1.162 GB, free: 0.5273 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.2874/2.067, allocations: 1.716 MB / 1.164 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005242/2.068, allocations: 2.048 MB / 1.166 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/2.068, allocations: 5.281 kB / 1.166 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.736e-05/2.068, allocations: 7.938 kB / 1.166 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006186/2.074, allocations: 0.6094 MB / 1.167 GB, free: 107.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003294/2.077, allocations: 1.022 MB / 1.168 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009596/2.078, allocations: 64.56 kB / 1.168 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/2.078, allocations: 53.92 kB / 1.168 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/2.078, allocations: 6.469 kB / 1.168 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002361/2.081, allocations: 0.7812 MB / 1.169 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/2.081, allocations: 6.75 kB / 1.169 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/2.081, allocations: 9.219 kB / 1.169 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/2.081, allocations: 120.6 kB / 1.169 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/2.081, allocations: 17.27 kB / 1.169 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005228/2.082, allocations: 48.27 kB / 1.169 GB, free: 107.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.097e-05/2.082, allocations: 50.5 kB / 1.169 GB, free: 107.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * 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.0002014/2.082, allocations: 161.9 kB / 1.169 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.171e-05/2.082, allocations: 56.91 kB / 1.169 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00332/2.085, allocations: 0.7825 MB / 1.17 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/2.085, allocations: 0 / 1.17 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/2.085, allocations: 3.719 kB / 1.17 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/2.085, allocations: 7.5 kB / 1.17 GB, free: 107 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005186/2.086, allocations: 451 kB / 1.17 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/2.086, allocations: 0 / 1.17 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/2.088, allocations: 174.2 kB / 1.17 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/2.088, allocations: 4.562 kB / 1.17 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/2.088, allocations: 13.92 kB / 1.17 GB, free: 106.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009252/2.089, allocations: 0.7234 MB / 1.171 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/2.089, allocations: 3.375 kB / 1.171 GB, free: 106.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003078/2.092, allocations: 0.7395 MB / 1.172 GB, free: 106.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/2.092, allocations: 152.5 kB / 1.172 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/2.092, allocations: 5.75 kB / 1.172 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/2.092, allocations: 16.05 kB / 1.172 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/2.092, allocations: 25.78 kB / 1.172 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/2.092, allocations: 15.27 kB / 1.172 GB, free: 106 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003948/2.093, allocations: 396 kB / 1.172 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/2.093, allocations: 0 / 1.172 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001624/2.094, allocations: 0.5645 MB / 1.173 GB, free: 105.9 MB / 0.5261 GB 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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.001825/2.096, allocations: 1.233 MB / 1.174 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01107/2.107, allocations: 1.554 MB / 1.176 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/2.107, allocations: 3.531 kB / 1.176 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002838/2.11, allocations: 396.3 kB / 1.176 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001209/2.112, allocations: 209.2 kB / 1.176 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/2.113, allocations: 0.6144 MB / 1.177 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/2.113, allocations: 0.8919 MB / 1.178 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001779/2.115, allocations: 0.8463 MB / 1.179 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/2.115, allocations: 73.3 kB / 1.179 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of SimCode: time 9.72e-07/2.115, allocations: 0 / 1.179 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.03164/2.147, allocations: 18.22 MB / 1.196 GB, free: 104.2 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)