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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 209.3 kB / 8.545 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 225.5 MB / 234.4 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000965/0.000965, allocations: 92.89 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2052/0.2052, allocations: 45.15 MB / 383.3 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.685e-06, allocations: 0 / 452.6 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1154, allocations: 63.24 MB / 0.5038 GB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.153/1.268, allocations: 477.5 MB / 0.9701 GB, free: 199 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/1.269, allocations: 75.11 kB / 0.9701 GB, free: 199 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: time 0.3753/1.644, allocations: 185.1 MB / 1.151 GB, free: 12.9 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.23e-05/1.644, allocations: 19.98 kB / 1.151 GB, free: 12.88 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.002629/1.647, allocations: 1.004 MB / 1.152 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/1.647, allocations: 8.031 kB / 1.152 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001632/1.648, allocations: 178.9 kB / 1.152 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/1.65, allocations: 0.5639 MB / 1.153 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/1.65, allocations: 12 kB / 1.153 GB, free: 11.03 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/1.65, allocations: 24 kB / 1.153 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007943/1.651, allocations: 453.9 kB / 1.153 GB, free: 10.56 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008308/1.652, allocations: 0.5509 MB / 1.154 GB, free: 9.973 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/1.652, allocations: 4 kB / 1.154 GB, free: 9.969 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.958e-05/1.652, allocations: 0 / 1.154 GB, free: 9.969 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/1.652, allocations: 12 kB / 1.154 GB, free: 9.957 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003504/1.655, allocations: 3.05 MB / 1.157 GB, free: 6.66 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/1.656, allocations: 254.7 kB / 1.157 GB, free: 6.402 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/1.656, allocations: 120.8 kB / 1.157 GB, free: 6.281 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002135/1.656, allocations: 259.5 kB / 1.157 GB, free: 5.973 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/1.656, allocations: 266 kB / 1.157 GB, free: 5.676 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 2.124e-06/1.656, allocations: 0 / 1.157 GB, free: 5.676 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.01025/1.667, allocations: 1.5 MB / 1.159 GB, free: 4.168 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/1.667, allocations: 294.7 kB / 1.159 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000784/1.667, allocations: 0.4982 MB / 1.16 GB, free: 3.309 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.727e-05/1.668, allocations: 25.7 kB / 1.16 GB, free: 3.277 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/1.668, allocations: 302.8 kB / 1.16 GB, free: 2.973 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.529e-05/1.668, allocations: 78.94 kB / 1.16 GB, free: 2.895 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/1.668, allocations: 0 / 1.16 GB, free: 2.895 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.79e-05/1.668, allocations: 370.7 kB / 1.16 GB, free: 2.523 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/1.668, allocations: 149 kB / 1.161 GB, free: 2.379 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/1.669, allocations: 370.8 kB / 1.161 GB, free: 1.918 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009863/1.678, allocations: 1.439 MB / 1.162 GB, free: 488 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/1.679, allocations: 3.938 kB / 1.162 GB, free: 484 kB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.2228/1.901, allocations: 1.779 MB / 1.164 GB, free: 164.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005263/1.902, allocations: 2.014 MB / 1.166 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/1.902, allocations: 5.25 kB / 1.166 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.05e-05/1.902, allocations: 12.59 kB / 1.166 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006862/1.909, allocations: 0.6274 MB / 1.167 GB, free: 162.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003613/1.913, allocations: 1.045 MB / 1.168 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007249/1.913, allocations: 61.2 kB / 1.168 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/1.913, allocations: 53.67 kB / 1.168 GB, free: 162 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/1.913, allocations: 3.875 kB / 1.168 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002574/1.916, allocations: 0.7784 MB / 1.169 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/1.916, allocations: 5.625 kB / 1.169 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/1.916, allocations: 10.25 kB / 1.169 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004168/1.916, allocations: 132.6 kB / 1.169 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/1.916, allocations: 9.5 kB / 1.169 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005411/1.917, allocations: 48.81 kB / 1.169 GB, free: 162 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-05/1.917, allocations: 51.25 kB / 1.169 GB, free: 162 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.0002121/1.917, allocations: 157.4 kB / 1.169 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/1.917, allocations: 58.5 kB / 1.169 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/1.921, allocations: 0.8221 MB / 1.17 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/1.921, allocations: 3.469 kB / 1.17 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/1.921, allocations: 0 / 1.17 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/1.921, allocations: 3.797 kB / 1.17 GB, free: 161.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006115/1.922, allocations: 460.3 kB / 1.17 GB, free: 161.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/1.922, allocations: 0 / 1.17 GB, free: 161.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/1.924, allocations: 192.4 kB / 1.17 GB, free: 161.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/1.924, allocations: 3.844 kB / 1.17 GB, free: 161.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.65e-05/1.924, allocations: 3.812 kB / 1.17 GB, free: 161.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001073/1.925, allocations: 0.7356 MB / 1.171 GB, free: 161 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.925, allocations: 0 / 1.171 GB, free: 161 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003413/1.928, allocations: 0.7314 MB / 1.172 GB, free: 160.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001996/1.929, allocations: 156.1 kB / 1.172 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/1.929, allocations: 3.969 kB / 1.172 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003535/1.929, allocations: 24.25 kB / 1.172 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.095e-05/1.929, allocations: 10.3 kB / 1.172 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/1.929, allocations: 16.45 kB / 1.172 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0004575/1.93, allocations: 396.7 kB / 1.172 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001865/1.932, allocations: 0.5648 MB / 1.173 GB, free: 160.7 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.002547/1.934, allocations: 1.249 MB / 1.174 GB, free: 160.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01202/1.946, allocations: 1.492 MB / 1.176 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/1.946, allocations: 0 / 1.176 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003154/1.949, allocations: 396.3 kB / 1.176 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/1.951, allocations: 201.1 kB / 1.176 GB, free: 160.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/1.952, allocations: 0.6543 MB / 1.177 GB, free: 160.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008432/1.953, allocations: 1.04 MB / 1.178 GB, free: 159.5 MB / 0.5261 GB Notification: Performance of SimCode: time 9.12e-07/1.953, allocations: 3.094 kB / 1.178 GB, free: 159.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.03199/1.985, allocations: 21.07 MB / 1.199 GB, free: 159.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)