Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.0009879/0.0009879, allocations: 184.7 kB / 8.52 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.149/1.149, allocations: 221.4 MB / 230.3 MB, free: 7.688 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008743/0.0008743, allocations: 92.67 kB / 281.2 MB, free: 5.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1588/0.1588, allocations: 44.15 MB / 376.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1888/0.3476, allocations: 68.03 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.4561, allocations: 61.91 MB / 0.4942 GB, free: 1.5 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8662/1.322, allocations: 476.4 MB / 0.9595 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/1.323, allocations: 83.78 kB / 0.9595 GB, free: 142.2 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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: 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.5117/1.834, allocations: 186 MB / 1.141 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/1.834, allocations: 12.44 kB / 1.141 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001565/1.836, allocations: 183.3 kB / 1.141 GB, free: 115.1 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/1.837, allocations: 0.5579 MB / 1.142 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/1.837, allocations: 14.5 kB / 1.142 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.593e-05/1.837, allocations: 28.31 kB / 1.142 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006557/1.838, allocations: 453.7 kB / 1.142 GB, free: 114.9 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000714/1.838, allocations: 0.5423 MB / 1.143 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/1.839, allocations: 0.6562 kB / 1.143 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.337e-05/1.839, allocations: 2.875 kB / 1.143 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/1.839, allocations: 15.72 kB / 1.143 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003127/1.842, allocations: 3.046 MB / 1.146 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003827/1.842, allocations: 261.7 kB / 1.146 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/1.842, allocations: 126.6 kB / 1.146 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002108/1.843, allocations: 258.1 kB / 1.146 GB, free: 112.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/1.843, allocations: 253.9 kB / 1.147 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.645e-06/1.843, allocations: 0 / 1.147 GB, free: 112.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.009634/1.852, allocations: 1.501 MB / 1.148 GB, free: 112.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.947e-05/1.853, allocations: 292.5 kB / 1.148 GB, free: 112 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006909/1.853, allocations: 0.4944 MB / 1.149 GB, free: 111.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.746e-05/1.853, allocations: 25.7 kB / 1.149 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001756/1.854, allocations: 302.4 kB / 1.149 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 7.396e-05/1.854, allocations: 76.72 kB / 1.149 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.78e-05/1.854, allocations: 2.953 kB / 1.149 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.533e-05/1.854, allocations: 367.2 kB / 1.15 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/1.854, allocations: 152.3 kB / 1.15 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003297/1.854, allocations: 366.6 kB / 1.15 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009531/1.864, allocations: 1.417 MB / 1.152 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/1.864, allocations: 11.41 kB / 1.152 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.009878/1.874, allocations: 1.755 MB / 1.153 GB, free: 111 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003376/1.874, allocations: 2.014 MB / 1.155 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/1.874, allocations: 10.59 kB / 1.155 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/1.874, allocations: 6.906 kB / 1.155 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006535/1.881, allocations: 0.621 MB / 1.156 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003301/1.884, allocations: 1.035 MB / 1.157 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007412/1.885, allocations: 64.45 kB / 1.157 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/1.885, allocations: 50.14 kB / 1.157 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/1.885, allocations: 7.188 kB / 1.157 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002466/1.887, allocations: 0.7709 MB / 1.158 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/1.887, allocations: 6.812 kB / 1.158 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/1.887, allocations: 11.59 kB / 1.158 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004092/1.888, allocations: 125 kB / 1.158 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/1.888, allocations: 15.66 kB / 1.158 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005503/1.888, allocations: 49.56 kB / 1.158 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-05/1.889, allocations: 59.36 kB / 1.158 GB, free: 108.3 MB / 0.5105 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.0002292/1.889, allocations: 154.4 kB / 1.158 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/1.889, allocations: 60.22 kB / 1.158 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003619/1.893, allocations: 0.8123 MB / 1.159 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/1.893, allocations: 6.828 kB / 1.159 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.893, allocations: 0 / 1.159 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/1.893, allocations: 3.609 kB / 1.159 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005849/1.893, allocations: 459.9 kB / 1.159 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/1.893, allocations: 0 / 1.159 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001849/1.895, allocations: 183.5 kB / 1.16 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/1.895, allocations: 2.812 kB / 1.16 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/1.895, allocations: 12.33 kB / 1.16 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/1.896, allocations: 0.7357 MB / 1.16 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.896, allocations: 3.906 kB / 1.16 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003258/1.899, allocations: 0.7137 MB / 1.161 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003378/1.903, allocations: 1.129 MB / 1.162 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/1.903, allocations: 145.9 kB / 1.162 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001477/1.903, allocations: 5.875 kB / 1.162 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00036/1.904, allocations: 22.14 kB / 1.162 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.186e-05/1.904, allocations: 17.62 kB / 1.162 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/1.904, allocations: 7.75 kB / 1.162 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0004127/1.904, allocations: 406.3 kB / 1.163 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003238/1.907, allocations: 0.738 MB / 1.163 GB, free: 106.4 MB / 0.5105 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.002063/1.909, allocations: 1.245 MB / 1.165 GB, free: 106.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01212/1.921, allocations: 1.493 MB / 1.166 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.922, allocations: 3.938 kB / 1.166 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003146/1.925, allocations: 391.8 kB / 1.167 GB, free: 106 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/1.926, allocations: 194.3 kB / 1.167 GB, free: 106 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/1.928, allocations: 0.647 MB / 1.167 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008174/1.928, allocations: 1.038 MB / 1.168 GB, free: 105.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/1.928, allocations: 0 / 1.168 GB, free: 105.1 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)