Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009268/0.0009268, allocations: 187.6 kB / 7.805 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.026/1.026, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008538/0.0008538, allocations: 83.5 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1558/0.1558, allocations: 43.49 MB / 352.8 MB, free: 1.938 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.041e-06/6.131e-06, allocations: 0 / 417.7 MB, free: 40.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2056, allocations: 58.84 MB / 476.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.426/0.6317, allocations: 334.8 MB / 0.7923 GB, free: 3.926 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.6319, allocations: 79.27 kB / 0.7924 GB, free: 3.887 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: Performance of FrontEnd: time 0.9189/1.551, allocations: 331.6 MB / 1.116 GB, free: 87.83 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.282e-05/1.551, allocations: 42.55 kB / 1.116 GB, free: 87.82 MB / 0.4948 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.00404/1.555, allocations: 1.787 MB / 1.118 GB, free: 86.84 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/1.555, allocations: 11.09 kB / 1.118 GB, free: 86.84 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006167/1.556, allocations: 183 kB / 1.118 GB, free: 86.76 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/1.558, allocations: 1.083 MB / 1.119 GB, free: 86.43 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.092e-05/1.558, allocations: 33.41 kB / 1.119 GB, free: 86.43 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/1.558, allocations: 55.97 kB / 1.119 GB, free: 86.43 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001568/1.559, allocations: 1.212 MB / 1.121 GB, free: 86.3 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/1.561, allocations: 1.312 MB / 1.122 GB, free: 85.64 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/1.561, allocations: 3.906 kB / 1.122 GB, free: 85.64 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/1.561, allocations: 5.094 kB / 1.122 GB, free: 85.64 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-05/1.561, allocations: 60.67 kB / 1.122 GB, free: 85.64 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006662/1.568, allocations: 6.438 MB / 1.128 GB, free: 80.96 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007038/1.569, allocations: 0.4957 MB / 1.129 GB, free: 80.75 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/1.569, allocations: 325.3 kB / 1.129 GB, free: 80.62 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01856/1.588, allocations: 17.19 MB / 1.146 GB, free: 63.62 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005762/1.588, allocations: 454.4 kB / 1.146 GB, free: 63.34 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 2.124e-06/1.588, allocations: 3.875 kB / 1.146 GB, free: 63.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.006252/1.594, allocations: 1.277 MB / 1.147 GB, free: 63.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/1.595, allocations: 0.5429 MB / 1.148 GB, free: 62.38 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/1.596, allocations: 0.8966 MB / 1.149 GB, free: 61.97 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.607e-05/1.596, allocations: 30.58 kB / 1.149 GB, free: 61.94 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003756/1.596, allocations: 0.5725 MB / 1.149 GB, free: 61.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000135/1.596, allocations: 168.9 kB / 1.15 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/1.597, allocations: 0 / 1.15 GB, free: 61.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.2e-05/1.597, allocations: 354.1 kB / 1.15 GB, free: 61.05 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004623/1.597, allocations: 307 kB / 1.15 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007283/1.598, allocations: 0.8411 MB / 1.151 GB, free: 60.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008249/1.606, allocations: 1.556 MB / 1.153 GB, free: 59.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/1.606, allocations: 3.906 kB / 1.153 GB, free: 59.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.009515/1.616, allocations: 2.235 MB / 1.155 GB, free: 59.34 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009183/1.617, allocations: 5.495 MB / 1.16 GB, free: 53.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.729e-05/1.617, allocations: 13.09 kB / 1.16 GB, free: 53.51 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.403e-05/1.617, allocations: 24.06 kB / 1.16 GB, free: 53.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/1.619, allocations: 394.4 kB / 1.16 GB, free: 53.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/1.62, allocations: 1.38 MB / 1.162 GB, free: 52.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/1.621, allocations: 145.5 kB / 1.162 GB, free: 52.18 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/1.621, allocations: 65.61 kB / 1.162 GB, free: 52.17 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.366e-06/1.622, allocations: 7.125 kB / 1.162 GB, free: 52.17 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00708/1.629, allocations: 1.798 MB / 1.164 GB, free: 51.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/1.629, allocations: 13.72 kB / 1.164 GB, free: 51.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.989e-05/1.629, allocations: 22.38 kB / 1.164 GB, free: 51.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009251/1.63, allocations: 288.5 kB / 1.164 GB, free: 51.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003246/1.63, allocations: 0.6447 MB / 1.165 GB, free: 50.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/1.631, allocations: 106.4 kB / 1.165 GB, free: 50.85 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/1.631, allocations: 61.55 kB / 1.165 GB, free: 50.84 MB / 0.4948 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.0002984/1.631, allocations: 185.3 kB / 1.165 GB, free: 50.66 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002072/1.632, allocations: 124.9 kB / 1.165 GB, free: 50.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005315/1.637, allocations: 1.921 MB / 1.167 GB, free: 49.56 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/1.637, allocations: 11.5 kB / 1.167 GB, free: 49.55 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/1.637, allocations: 0 / 1.167 GB, free: 49.55 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/1.637, allocations: 3.984 kB / 1.167 GB, free: 49.55 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005045/1.642, allocations: 2.37 MB / 1.169 GB, free: 47.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/1.642, allocations: 3 kB / 1.169 GB, free: 47.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001676/1.644, allocations: 274.8 kB / 1.17 GB, free: 46.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/1.644, allocations: 4 kB / 1.17 GB, free: 46.89 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/1.644, allocations: 18.95 kB / 1.17 GB, free: 46.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001074/1.645, allocations: 1.327 MB / 1.171 GB, free: 45.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/1.645, allocations: 0 / 1.171 GB, free: 45.5 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003552/1.649, allocations: 1.337 MB / 1.172 GB, free: 44.14 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/1.649, allocations: 231.3 kB / 1.173 GB, free: 43.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/1.649, allocations: 14.64 kB / 1.173 GB, free: 43.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006593/1.65, allocations: 46.95 kB / 1.173 GB, free: 43.84 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.778e-05/1.65, allocations: 44.59 kB / 1.173 GB, free: 43.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.629e-05/1.65, allocations: 31.98 kB / 1.173 GB, free: 43.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0006664/1.65, allocations: 0.689 MB / 1.173 GB, free: 43.07 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003311/1.654, allocations: 1.384 MB / 1.175 GB, free: 41.69 MB / 0.4948 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.002449/1.656, allocations: 1.366 MB / 1.176 GB, free: 40.49 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003875/1.66, allocations: 1.667 MB / 1.178 GB, free: 38.83 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/1.66, allocations: 0 / 1.178 GB, free: 38.83 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00267/1.663, allocations: 0.6526 MB / 1.178 GB, free: 38.18 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/1.665, allocations: 411.8 kB / 1.179 GB, free: 37.78 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/1.667, allocations: 1.557 MB / 1.18 GB, free: 36.18 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007187/1.668, allocations: 1.346 MB / 1.182 GB, free: 34.81 MB / 0.4948 GB Notification: Performance of SimCode: time 2.31e-07/1.668, allocations: 0 / 1.182 GB, free: 34.81 MB / 0.4948 GB Notification: Performance of Templates: time 0.04443/1.712, allocations: 38.29 MB / 1.219 GB, free: 13.07 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestWallFriction/TestWallFriction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches