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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001259/0.001259, allocations: 196.2 kB / 8.533 MB, free: 484 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.17/1.17, allocations: 225.5 MB / 234.4 MB, free: 9.465 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009426/0.0009426, allocations: 95.73 kB / 286.3 MB, free: 5.812 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1686/0.1686, allocations: 45.15 MB / 383.3 MB, free: 4.848 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1679/0.3365, allocations: 69.37 MB / 452.7 MB, free: 48.19 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09017/0.4267, allocations: 63.24 MB / 0.5039 GB, free: 0.8828 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8758/1.303, allocations: 477.5 MB / 0.9702 GB, free: 159.3 MB / 0.5339 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/1.303, allocations: 83.95 kB / 0.9702 GB, free: 159.3 MB / 0.5339 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: 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.527/1.83, allocations: 186.1 MB / 1.152 GB, free: 124.4 MB / 0.5339 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/1.83, allocations: 9.688 kB / 1.152 GB, free: 124.4 MB / 0.5339 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/1.831, allocations: 182.5 kB / 1.152 GB, free: 124.3 MB / 0.5339 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009049/1.832, allocations: 0.5627 MB / 1.153 GB, free: 124.1 MB / 0.5339 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/1.832, allocations: 12.91 kB / 1.153 GB, free: 124.1 MB / 0.5339 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.788e-05/1.832, allocations: 24.94 kB / 1.153 GB, free: 124.1 MB / 0.5339 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006455/1.833, allocations: 454.1 kB / 1.153 GB, free: 124.1 MB / 0.5339 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007061/1.834, allocations: 0.5487 MB / 1.154 GB, free: 123.9 MB / 0.5339 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/1.834, allocations: 0 / 1.154 GB, free: 123.9 MB / 0.5339 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.146e-05/1.834, allocations: 3.625 kB / 1.154 GB, free: 123.9 MB / 0.5339 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.669e-06/1.834, allocations: 9.906 kB / 1.154 GB, free: 123.9 MB / 0.5339 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002904/1.837, allocations: 3.041 MB / 1.157 GB, free: 122.1 MB / 0.5339 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/1.837, allocations: 259.9 kB / 1.157 GB, free: 122 MB / 0.5339 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/1.837, allocations: 128.9 kB / 1.157 GB, free: 122 MB / 0.5339 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001807/1.837, allocations: 260.4 kB / 1.157 GB, free: 121.7 MB / 0.5339 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/1.838, allocations: 267 kB / 1.158 GB, free: 121.6 MB / 0.5339 GB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/1.838, allocations: 0 / 1.158 GB, free: 121.6 MB / 0.5339 GB Notification: Performance of matching and sorting (n=25): time 0.01003/1.848, allocations: 1.508 MB / 1.159 GB, free: 121.5 MB / 0.5339 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/1.848, allocations: 293.8 kB / 1.159 GB, free: 121.2 MB / 0.5339 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005039/1.848, allocations: 0.5 MB / 1.16 GB, free: 121.1 MB / 0.5339 GB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/1.848, allocations: 25.7 kB / 1.16 GB, free: 121.1 MB / 0.5339 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/1.848, allocations: 297.6 kB / 1.16 GB, free: 120.9 MB / 0.5339 GB Notification: Performance of collectInitialBindings (initialization): time 5.416e-05/1.849, allocations: 75.38 kB / 1.16 GB, free: 120.9 MB / 0.5339 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/1.849, allocations: 3.906 kB / 1.16 GB, free: 120.9 MB / 0.5339 GB Notification: Performance of setup shared object (initialization): time 6.941e-05/1.849, allocations: 370.8 kB / 1.161 GB, free: 120.5 MB / 0.5339 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/1.849, allocations: 154 kB / 1.161 GB, free: 120.5 MB / 0.5339 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/1.849, allocations: 369.8 kB / 1.161 GB, free: 120.3 MB / 0.5339 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009776/1.859, allocations: 1.434 MB / 1.162 GB, free: 120.3 MB / 0.5339 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/1.859, allocations: 3.5 kB / 1.162 GB, free: 120.3 MB / 0.5339 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.01024/1.869, allocations: 1.782 MB / 1.164 GB, free: 120.2 MB / 0.5339 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004029/1.87, allocations: 2.002 MB / 1.166 GB, free: 118.1 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/1.87, allocations: 10.16 kB / 1.166 GB, free: 118.1 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/1.87, allocations: 6.875 kB / 1.166 GB, free: 118.1 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006589/1.876, allocations: 0.6226 MB / 1.167 GB, free: 118.1 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003503/1.88, allocations: 1.045 MB / 1.168 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/1.88, allocations: 65.12 kB / 1.168 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-05/1.881, allocations: 52.2 kB / 1.168 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of prepare postOptimizeDAE: time 6.181e-06/1.881, allocations: 3.906 kB / 1.168 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002454/1.883, allocations: 0.779 MB / 1.169 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/1.883, allocations: 6.812 kB / 1.169 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.634e-06/1.883, allocations: 7.875 kB / 1.169 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003988/1.883, allocations: 129.2 kB / 1.169 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/1.883, allocations: 14.84 kB / 1.169 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004557/1.884, allocations: 51.88 kB / 1.169 GB, free: 117.5 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-05/1.884, allocations: 51.19 kB / 1.169 GB, free: 117.5 MB / 0.5339 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.0001443/1.884, allocations: 158.5 kB / 1.169 GB, free: 117.4 MB / 0.5339 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.482e-05/1.884, allocations: 61.06 kB / 1.169 GB, free: 117.3 MB / 0.5339 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003696/1.888, allocations: 0.8169 MB / 1.17 GB, free: 117.3 MB / 0.5339 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/1.888, allocations: 3.938 kB / 1.17 GB, free: 117.3 MB / 0.5339 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/1.888, allocations: 0 / 1.17 GB, free: 117.3 MB / 0.5339 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/1.888, allocations: 3.906 kB / 1.17 GB, free: 117.3 MB / 0.5339 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/1.888, allocations: 459.2 kB / 1.17 GB, free: 117.1 MB / 0.5339 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/1.888, allocations: 3.062 kB / 1.17 GB, free: 117.1 MB / 0.5339 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001867/1.89, allocations: 183.7 kB / 1.171 GB, free: 117.1 MB / 0.5339 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/1.89, allocations: 3.656 kB / 1.171 GB, free: 117.1 MB / 0.5339 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/1.89, allocations: 7.75 kB / 1.171 GB, free: 117.1 MB / 0.5339 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001005/1.891, allocations: 0.7372 MB / 1.171 GB, free: 116.5 MB / 0.5339 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.891, allocations: 0 / 1.171 GB, free: 116.5 MB / 0.5339 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003335/1.895, allocations: 0.7346 MB / 1.172 GB, free: 116.4 MB / 0.5339 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003407/1.898, allocations: 1.135 MB / 1.173 GB, free: 116 MB / 0.5339 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/1.898, allocations: 145.3 kB / 1.173 GB, free: 115.8 MB / 0.5339 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/1.898, allocations: 6.75 kB / 1.173 GB, free: 115.8 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003249/1.899, allocations: 19.81 kB / 1.173 GB, free: 115.8 MB / 0.5339 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/1.899, allocations: 17.8 kB / 1.173 GB, free: 115.8 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/1.899, allocations: 19.25 kB / 1.173 GB, free: 115.8 MB / 0.5339 GB Notification: Performance of sort global known variables: time 0.0003673/1.899, allocations: 401 kB / 1.174 GB, free: 115.7 MB / 0.5339 GB Notification: Performance of remove unused functions: time 0.002947/1.902, allocations: 0.7655 MB / 1.174 GB, free: 115.7 MB / 0.5339 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.001596/1.904, allocations: 1.257 MB / 1.176 GB, free: 115.4 MB / 0.5339 GB Notification: Performance of simCode: created initialization part: time 0.01162/1.915, allocations: 1.482 MB / 1.177 GB, free: 115.4 MB / 0.5339 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/1.915, allocations: 0 / 1.177 GB, free: 115.4 MB / 0.5339 GB Notification: Performance of simCode: created simulation system equations: time 0.002995/1.918, allocations: 396.1 kB / 1.177 GB, free: 115.4 MB / 0.5339 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000932/1.919, allocations: 201.8 kB / 1.178 GB, free: 115.3 MB / 0.5339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/1.921, allocations: 0.644 MB / 1.178 GB, free: 115.1 MB / 0.5339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007204/1.921, allocations: 1.047 MB / 1.179 GB, free: 114.4 MB / 0.5339 GB Notification: Performance of SimCode: time 4.41e-07/1.921, allocations: 0 / 1.179 GB, free: 114.4 MB / 0.5339 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestSharpEdgedOrifice.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestSharpEdgedOrifice.pipe 2>&1)