Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.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.TestWallFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 182.9 kB / 8.524 MB, free: 1.828 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.166/1.166, allocations: 221.4 MB / 230.3 MB, free: 7.746 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.0008938/0.0008939, allocations: 91.3 kB / 281.2 MB, free: 5.492 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.1683/0.1683, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2014/0.3697, allocations: 68.04 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.4721, allocations: 61.91 MB / 0.4942 GB, free: 1.508 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6293/1.101, allocations: 335.3 MB / 0.8216 GB, free: 52.28 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001781/1.102, allocations: 86.59 kB / 0.8217 GB, free: 52.23 MB / 0.4948 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: 254 * Number of variables: 254 Notification: Performance of Generate backend data structure: time 0.9725/2.074, allocations: 337.8 MB / 1.152 GB, free: 81.21 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/2.074, allocations: 12.88 kB / 1.152 GB, free: 81.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009196/2.075, allocations: 184.4 kB / 1.152 GB, free: 81.13 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/2.077, allocations: 1.072 MB / 1.153 GB, free: 80.85 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.846e-05/2.077, allocations: 39.59 kB / 1.153 GB, free: 80.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001817/2.078, allocations: 53.56 kB / 1.153 GB, free: 80.85 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001751/2.079, allocations: 1.21 MB / 1.154 GB, free: 80.85 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001915/2.081, allocations: 1.32 MB / 1.155 GB, free: 80.54 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/2.081, allocations: 3.656 kB / 1.155 GB, free: 80.54 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001567/2.081, allocations: 6.781 kB / 1.155 GB, free: 80.54 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.08e-05/2.082, allocations: 54.27 kB / 1.155 GB, free: 80.54 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007096/2.089, allocations: 6.362 MB / 1.162 GB, free: 76.99 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007407/2.089, allocations: 0.5005 MB / 1.162 GB, free: 76.97 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004429/2.09, allocations: 327.3 kB / 1.162 GB, free: 76.96 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0174/2.107, allocations: 17.13 MB / 1.179 GB, free: 60.42 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004583/2.108, allocations: 454.8 kB / 1.18 GB, free: 60.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 1.793e-06/2.108, allocations: 0 / 1.18 GB, free: 60.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.005761/2.114, allocations: 1.28 MB / 1.181 GB, free: 60.14 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.295e-05/2.114, allocations: 0.5492 MB / 1.181 GB, free: 59.48 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009154/2.115, allocations: 0.8984 MB / 1.182 GB, free: 59.33 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.406e-05/2.115, allocations: 25.7 kB / 1.182 GB, free: 59.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00027/2.115, allocations: 0.5768 MB / 1.183 GB, free: 58.94 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/2.115, allocations: 165 kB / 1.183 GB, free: 58.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/2.115, allocations: 3.844 kB / 1.183 GB, free: 58.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.752e-05/2.115, allocations: 349.3 kB / 1.183 GB, free: 58.54 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004235/2.116, allocations: 306.5 kB / 1.184 GB, free: 58.54 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005975/2.116, allocations: 0.8433 MB / 1.184 GB, free: 57.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005625/2.122, allocations: 1.224 MB / 1.186 GB, free: 57.89 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/2.122, allocations: 7.594 kB / 1.186 GB, free: 57.89 MB / 0.5261 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00709/2.129, allocations: 1.897 MB / 1.188 GB, free: 57.78 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001075/2.13, allocations: 5.494 MB / 1.193 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.797e-05/2.13, allocations: 11.34 kB / 1.193 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.681e-05/2.13, allocations: 22 kB / 1.193 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002075/2.132, allocations: 399.5 kB / 1.193 GB, free: 52.06 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/2.133, allocations: 1.378 MB / 1.195 GB, free: 50.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001348/2.135, allocations: 140.6 kB / 1.195 GB, free: 50.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/2.135, allocations: 65.47 kB / 1.195 GB, free: 50.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.075e-06/2.135, allocations: 10.94 kB / 1.195 GB, free: 50.82 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004529/2.14, allocations: 1.457 MB / 1.196 GB, free: 50.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/2.14, allocations: 19.38 kB / 1.196 GB, free: 50.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/2.14, allocations: 23.44 kB / 1.196 GB, free: 50.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008768/2.14, allocations: 276.8 kB / 1.197 GB, free: 50.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003049/2.141, allocations: 0.647 MB / 1.197 GB, free: 50.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/2.142, allocations: 108.9 kB / 1.197 GB, free: 50.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/2.142, allocations: 58.75 kB / 1.197 GB, free: 50.18 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.0002808/2.142, allocations: 189.2 kB / 1.198 GB, free: 50.03 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002458/2.143, allocations: 120.4 kB / 1.198 GB, free: 49.97 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005028/2.148, allocations: 1.884 MB / 1.2 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-05/2.148, allocations: 7.5 kB / 1.2 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.892e-06/2.148, allocations: 3.875 kB / 1.2 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/2.148, allocations: 3.656 kB / 1.2 GB, free: 49.88 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005117/2.153, allocations: 2.339 MB / 1.202 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/2.153, allocations: 3.438 kB / 1.202 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/2.155, allocations: 273.8 kB / 1.202 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/2.155, allocations: 3.969 kB / 1.202 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.303e-05/2.155, allocations: 20.8 kB / 1.202 GB, free: 49.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/2.156, allocations: 1.328 MB / 1.203 GB, free: 48.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/2.156, allocations: 0.5625 kB / 1.203 GB, free: 48.39 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003778/2.159, allocations: 1.336 MB / 1.205 GB, free: 48.15 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003961/2.163, allocations: 1.771 MB / 1.206 GB, free: 47.54 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004457/2.164, allocations: 242.6 kB / 1.207 GB, free: 47.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003494/2.164, allocations: 3.281 kB / 1.207 GB, free: 47.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008398/2.165, allocations: 48.73 kB / 1.207 GB, free: 47.36 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.326e-05/2.165, allocations: 46.5 kB / 1.207 GB, free: 47.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.524e-05/2.165, allocations: 31.89 kB / 1.207 GB, free: 47.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0009827/2.166, allocations: 0.6859 MB / 1.207 GB, free: 47.25 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006112/2.172, allocations: 1.635 MB / 1.209 GB, free: 46.93 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.00368/2.176, allocations: 1.33 MB / 1.21 GB, free: 46.56 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004266/2.18, allocations: 1.672 MB / 1.212 GB, free: 46.47 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/2.18, allocations: 0 / 1.212 GB, free: 46.47 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002809/2.183, allocations: 0.6478 MB / 1.213 GB, free: 46.44 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/2.185, allocations: 408.9 kB / 1.213 GB, free: 46.43 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/2.188, allocations: 1.558 MB / 1.215 GB, free: 45.99 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008465/2.189, allocations: 1.357 MB / 1.216 GB, free: 45.28 MB / 0.5261 GB Notification: Performance of SimCode: time 3.51e-07/2.189, allocations: 0 / 1.216 GB, free: 45.28 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestWallFriction.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1)