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: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|p_table.a|p_table.b|p_table.last|p_table.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction") [: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.001526/0.001526, allocations: 191.5 kB / 8.534 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 225.5 MB / 234.4 MB, free: 3.438 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00092/0.0009202, allocations: 89.61 kB / 286.3 MB, free: 5.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1735/0.1735, allocations: 45.15 MB / 383.4 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.135e-06/8.155e-06, allocations: 4 kB / 452.6 MB, free: 76.17 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1137, allocations: 63.24 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7648/0.8786, allocations: 336.3 MB / 0.8322 GB, free: 119.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.8789, allocations: 81.58 kB / 0.8323 GB, free: 119.5 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.9293/1.808, allocations: 335.2 MB / 1.16 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.722e-05/1.808, allocations: 39.98 kB / 1.16 GB, free: 1.84 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: 254 * Number of variables: 254 Notification: Performance of Generate backend data structure: time 0.269/2.077, allocations: 1.803 MB / 1.161 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/2.077, allocations: 9.906 kB / 1.161 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001612/2.079, allocations: 174.3 kB / 1.162 GB, free: 120.1 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002738/2.082, allocations: 1.074 MB / 1.163 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.64e-05/2.082, allocations: 35.22 kB / 1.163 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/2.082, allocations: 51.78 kB / 1.163 GB, free: 119.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001876/2.084, allocations: 1.209 MB / 1.164 GB, free: 119.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/2.086, allocations: 1.324 MB / 1.165 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/2.086, allocations: 3.281 kB / 1.165 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001108/2.086, allocations: 10.66 kB / 1.165 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.19e-05/2.086, allocations: 51.62 kB / 1.165 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008076/2.094, allocations: 6.358 MB / 1.172 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006702/2.095, allocations: 0.5003 MB / 1.172 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/2.095, allocations: 326.8 kB / 1.172 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01884/2.114, allocations: 17.13 MB / 1.189 GB, free: 99.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005498/2.115, allocations: 453.1 kB / 1.189 GB, free: 99.28 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 2.265e-06/2.115, allocations: 0 / 1.189 GB, free: 99.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.006441/2.121, allocations: 1.279 MB / 1.191 GB, free: 99.18 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/2.121, allocations: 0.5462 MB / 1.191 GB, free: 98.52 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/2.122, allocations: 0.8942 MB / 1.192 GB, free: 98.37 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.815e-05/2.122, allocations: 29.42 kB / 1.192 GB, free: 98.34 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003918/2.123, allocations: 0.575 MB / 1.193 GB, free: 98.05 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/2.123, allocations: 167.6 kB / 1.193 GB, free: 97.97 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.583e-05/2.123, allocations: 0 / 1.193 GB, free: 97.97 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.604e-05/2.123, allocations: 347.1 kB / 1.193 GB, free: 97.67 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004385/2.124, allocations: 309.4 kB / 1.194 GB, free: 97.67 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006628/2.124, allocations: 0.8366 MB / 1.194 GB, free: 97.03 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00655/2.131, allocations: 1.286 MB / 1.196 GB, free: 97.02 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.268e-05/2.131, allocations: 6.281 kB / 1.196 GB, free: 97.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.008717/2.14, allocations: 1.949 MB / 1.197 GB, free: 96.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001766/2.141, allocations: 5.487 MB / 1.203 GB, free: 91.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.625e-05/2.142, allocations: 19.22 kB / 1.203 GB, free: 91.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.156e-05/2.142, allocations: 20.81 kB / 1.203 GB, free: 91.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/2.144, allocations: 393.4 kB / 1.203 GB, free: 91.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/2.146, allocations: 1.38 MB / 1.205 GB, free: 90.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/2.147, allocations: 140.5 kB / 1.205 GB, free: 89.99 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001568/2.147, allocations: 75.59 kB / 1.205 GB, free: 89.98 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/2.147, allocations: 7.062 kB / 1.205 GB, free: 89.98 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005456/2.153, allocations: 1.507 MB / 1.206 GB, free: 89.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/2.153, allocations: 13.56 kB / 1.206 GB, free: 89.97 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/2.153, allocations: 23.38 kB / 1.206 GB, free: 89.97 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009581/2.154, allocations: 287.2 kB / 1.207 GB, free: 89.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000368/2.154, allocations: 0.6418 MB / 1.207 GB, free: 89.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/2.156, allocations: 106.7 kB / 1.207 GB, free: 89.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/2.156, allocations: 68.86 kB / 1.207 GB, free: 89.36 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.0004621/2.156, allocations: 187.6 kB / 1.208 GB, free: 89.22 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004144/2.157, allocations: 119.7 kB / 1.208 GB, free: 89.16 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006037/2.163, allocations: 1.885 MB / 1.21 GB, free: 89.09 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/2.163, allocations: 7.625 kB / 1.21 GB, free: 89.09 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.455e-05/2.163, allocations: 0 / 1.21 GB, free: 89.09 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/2.163, allocations: 6.516 kB / 1.21 GB, free: 89.09 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007494/2.17, allocations: 2.342 MB / 1.212 GB, free: 88.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/2.171, allocations: 0 / 1.212 GB, free: 88.78 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001891/2.172, allocations: 269.9 kB / 1.212 GB, free: 88.78 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.41e-05/2.172, allocations: 8.922 kB / 1.212 GB, free: 88.78 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.382e-05/2.173, allocations: 19.48 kB / 1.212 GB, free: 88.78 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/2.174, allocations: 1.333 MB / 1.213 GB, free: 87.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/2.174, allocations: 3.469 kB / 1.213 GB, free: 87.6 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004707/2.179, allocations: 1.328 MB / 1.215 GB, free: 87.36 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006698/2.179, allocations: 239 kB / 1.215 GB, free: 87.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005028/2.18, allocations: 3.531 kB / 1.215 GB, free: 87.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/2.181, allocations: 49.09 kB / 1.215 GB, free: 87.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/2.181, allocations: 45.95 kB / 1.215 GB, free: 87.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.878e-05/2.181, allocations: 31.33 kB / 1.215 GB, free: 87.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001247/2.183, allocations: 0.6945 MB / 1.216 GB, free: 87.09 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005684/2.188, allocations: 1.386 MB / 1.217 GB, free: 87.06 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.004905/2.193, allocations: 1.342 MB / 1.218 GB, free: 86.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005856/2.199, allocations: 1.671 MB / 1.22 GB, free: 86.87 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/2.199, allocations: 3.875 kB / 1.22 GB, free: 86.87 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003128/2.202, allocations: 0.6426 MB / 1.221 GB, free: 86.84 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002902/2.205, allocations: 408.3 kB / 1.221 GB, free: 86.83 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004545/2.21, allocations: 1.561 MB / 1.223 GB, free: 86.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/2.211, allocations: 1.353 MB / 1.224 GB, free: 85.69 MB / 0.5261 GB Notification: Performance of SimCode: time 1.443e-06/2.211, allocations: 0 / 1.224 GB, free: 85.69 MB / 0.5261 GB Notification: Performance of Templates: time 0.06438/2.275, allocations: 37.27 MB / 1.26 GB, free: 84.18 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestWallFriction/TestWallFriction.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches