Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.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.TestWallFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",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.001808/0.001808, allocations: 203.1 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.202/1.202, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000839/0.0008391, allocations: 93.14 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1733/0.1733, allocations: 45.14 MB / 383.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2143/0.3876, allocations: 69.38 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.4919, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6399/1.132, allocations: 336.3 MB / 0.8323 GB, free: 137.4 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/1.132, allocations: 83.78 kB / 0.8324 GB, free: 137.4 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: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 254 * Number of variables: 254 Notification: Performance of Generate backend data structure: time 0.8715/2.004, allocations: 337.1 MB / 1.162 GB, free: 8.453 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/2.004, allocations: 8 kB / 1.162 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000924/2.005, allocations: 186 kB / 1.162 GB, free: 8.262 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002191/2.007, allocations: 1.065 MB / 1.163 GB, free: 7.176 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.59e-05/2.007, allocations: 32 kB / 1.163 GB, free: 7.145 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/2.007, allocations: 59.94 kB / 1.163 GB, free: 7.086 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001739/2.009, allocations: 1.218 MB / 1.164 GB, free: 5.867 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00168/2.01, allocations: 1.315 MB / 1.165 GB, free: 4.453 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/2.011, allocations: 0 / 1.165 GB, free: 4.453 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/2.011, allocations: 4 kB / 1.165 GB, free: 4.449 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.795e-05/2.011, allocations: 57.92 kB / 1.165 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1811/2.192, allocations: 6.375 MB / 1.172 GB, free: 119 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006804/2.193, allocations: 0.4941 MB / 1.172 GB, free: 119 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003791/2.193, allocations: 321.6 kB / 1.172 GB, free: 119 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01694/2.21, allocations: 17.12 MB / 1.189 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005048/2.21, allocations: 455.9 kB / 1.19 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 2.345e-06/2.21, allocations: 0 / 1.19 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.005934/2.216, allocations: 1.276 MB / 1.191 GB, free: 102.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/2.217, allocations: 0.5451 MB / 1.191 GB, free: 101.6 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009818/2.218, allocations: 0.8977 MB / 1.192 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/2.218, allocations: 29.14 kB / 1.192 GB, free: 101.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/2.218, allocations: 0.5772 MB / 1.193 GB, free: 101.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/2.218, allocations: 167.5 kB / 1.193 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.621e-05/2.218, allocations: 0 / 1.193 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.267e-05/2.218, allocations: 348.5 kB / 1.193 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000442/2.219, allocations: 306.2 kB / 1.194 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006687/2.219, allocations: 0.8398 MB / 1.194 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006401/2.226, allocations: 1.279 MB / 1.196 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/2.226, allocations: 3.844 kB / 1.196 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.007869/2.234, allocations: 1.953 MB / 1.198 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001167/2.235, allocations: 5.487 MB / 1.203 GB, free: 94.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/2.235, allocations: 14.81 kB / 1.203 GB, free: 94.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.719e-05/2.235, allocations: 23.78 kB / 1.203 GB, free: 94.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002117/2.237, allocations: 401.5 kB / 1.203 GB, free: 94.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/2.238, allocations: 1.379 MB / 1.205 GB, free: 93.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/2.24, allocations: 142.3 kB / 1.205 GB, free: 93.13 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/2.24, allocations: 70.5 kB / 1.205 GB, free: 93.13 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.554e-06/2.24, allocations: 3.938 kB / 1.205 GB, free: 93.13 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004997/2.245, allocations: 1.51 MB / 1.206 GB, free: 93.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/2.245, allocations: 18.23 kB / 1.206 GB, free: 93.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/2.245, allocations: 26.31 kB / 1.206 GB, free: 93.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008971/2.246, allocations: 278.9 kB / 1.207 GB, free: 93.11 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002972/2.246, allocations: 0.6382 MB / 1.207 GB, free: 92.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/2.247, allocations: 110.9 kB / 1.207 GB, free: 92.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.797e-05/2.247, allocations: 67.56 kB / 1.208 GB, free: 92.51 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002568/2.247, allocations: 187.1 kB / 1.208 GB, free: 92.37 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/2.248, allocations: 121.7 kB / 1.208 GB, free: 92.31 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005245/2.253, allocations: 1.874 MB / 1.21 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/2.253, allocations: 6.281 kB / 1.21 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/2.253, allocations: 6.156 kB / 1.21 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.719e-06/2.253, allocations: 7.422 kB / 1.21 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005337/2.258, allocations: 2.342 MB / 1.212 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/2.258, allocations: 0 / 1.212 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001743/2.26, allocations: 268.9 kB / 1.212 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.659e-06/2.26, allocations: 3.812 kB / 1.212 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.908e-05/2.26, allocations: 17.62 kB / 1.212 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/2.261, allocations: 1.331 MB / 1.214 GB, free: 90.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/2.261, allocations: 2.406 kB / 1.214 GB, free: 90.75 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003814/2.265, allocations: 1.337 MB / 1.215 GB, free: 90.52 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003879/2.269, allocations: 1.764 MB / 1.217 GB, free: 89.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003578/2.269, allocations: 238.2 kB / 1.217 GB, free: 89.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002249/2.27, allocations: 6.219 kB / 1.217 GB, free: 89.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007043/2.27, allocations: 46.73 kB / 1.217 GB, free: 89.73 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.269e-05/2.27, allocations: 49.45 kB / 1.217 GB, free: 89.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.822e-05/2.27, allocations: 31.17 kB / 1.217 GB, free: 89.73 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0008537/2.271, allocations: 0.6889 MB / 1.218 GB, free: 89.62 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005517/2.277, allocations: 1.66 MB / 1.219 GB, free: 89.59 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (77): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002531/2.279, allocations: 1.343 MB / 1.221 GB, free: 89.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003946/2.283, allocations: 1.671 MB / 1.222 GB, free: 89.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/2.283, allocations: 2.969 kB / 1.222 GB, free: 89.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0028/2.286, allocations: 0.643 MB / 1.223 GB, free: 89.37 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/2.288, allocations: 402.2 kB / 1.223 GB, free: 89.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002586/2.291, allocations: 1.564 MB / 1.225 GB, free: 88.94 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007938/2.291, allocations: 1.349 MB / 1.226 GB, free: 88.23 MB / 0.5261 GB Notification: Performance of SimCode: time 5.91e-07/2.292, allocations: 0 / 1.226 GB, free: 88.23 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1)