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: 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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001732/0.001731, allocations: 178.7 kB / 8.519 MB, free: 1.859 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.291/1.291, allocations: 221.4 MB / 230.3 MB, free: 7.629 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.001077/0.001077, allocations: 87.94 kB / 281.2 MB, free: 5.426 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.1987/0.1987, allocations: 44.15 MB / 376.1 MB, free: 3.191 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.913e-06/7.013e-06, allocations: 4.219 kB / 444 MB, free: 15.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1222, allocations: 61.91 MB / 0.4941 GB, free: 1.594 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7345/0.8568, allocations: 335.3 MB / 0.8215 GB, free: 54.39 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.8571, allocations: 89.53 kB / 0.8216 GB, free: 54.34 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: Performance of FrontEnd: time 1.144/2.001, allocations: 336 MB / 1.15 GB, free: 80.06 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001334/2.001, allocations: 38.55 kB / 1.15 GB, free: 80.05 MB / 0.5105 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.004906/2.006, allocations: 1.796 MB / 1.151 GB, free: 79.15 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/2.006, allocations: 15.22 kB / 1.151 GB, free: 79.15 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001139/2.007, allocations: 177.1 kB / 1.152 GB, free: 79.07 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002674/2.01, allocations: 1.068 MB / 1.153 GB, free: 78.74 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.95e-05/2.01, allocations: 34.75 kB / 1.153 GB, free: 78.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/2.01, allocations: 58.72 kB / 1.153 GB, free: 78.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001943/2.012, allocations: 1.216 MB / 1.154 GB, free: 78.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001973/2.014, allocations: 1.313 MB / 1.155 GB, free: 78.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/2.014, allocations: 5.438 kB / 1.155 GB, free: 78.44 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/2.014, allocations: 6.812 kB / 1.155 GB, free: 78.44 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.166e-05/2.014, allocations: 55.39 kB / 1.155 GB, free: 78.44 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007835/2.022, allocations: 6.363 MB / 1.162 GB, free: 74.85 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006566/2.023, allocations: 0.5075 MB / 1.162 GB, free: 74.82 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004171/2.023, allocations: 327.2 kB / 1.162 GB, free: 74.81 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01893/2.042, allocations: 17.11 MB / 1.179 GB, free: 58.26 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005905/2.043, allocations: 455.8 kB / 1.179 GB, free: 58.07 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/2.043, allocations: 0 / 1.179 GB, free: 58.07 MB / 0.5105 GB Notification: Performance of matching and sorting (n=49): time 0.006499/2.049, allocations: 1.286 MB / 1.181 GB, free: 57.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/2.049, allocations: 0.541 MB / 1.181 GB, free: 57.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/2.051, allocations: 0.9007 MB / 1.182 GB, free: 57.15 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.419e-05/2.051, allocations: 25.7 kB / 1.182 GB, free: 57.12 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004214/2.051, allocations: 0.5712 MB / 1.183 GB, free: 56.76 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001609/2.051, allocations: 175.1 kB / 1.183 GB, free: 56.66 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.955e-05/2.052, allocations: 0 / 1.183 GB, free: 56.66 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.867e-05/2.052, allocations: 347.2 kB / 1.183 GB, free: 56.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004597/2.052, allocations: 307.8 kB / 1.184 GB, free: 56.36 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007131/2.053, allocations: 0.8454 MB / 1.184 GB, free: 55.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005925/2.059, allocations: 1.222 MB / 1.186 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.387e-05/2.059, allocations: 7.703 kB / 1.186 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.007441/2.066, allocations: 1.892 MB / 1.187 GB, free: 55.59 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001172/2.067, allocations: 5.5 MB / 1.193 GB, free: 49.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.605e-05/2.067, allocations: 17.91 kB / 1.193 GB, free: 49.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.02e-05/2.068, allocations: 22.78 kB / 1.193 GB, free: 49.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002114/2.07, allocations: 395.1 kB / 1.193 GB, free: 49.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/2.071, allocations: 1.383 MB / 1.195 GB, free: 48.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/2.073, allocations: 147 kB / 1.195 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001596/2.073, allocations: 63.69 kB / 1.195 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/2.073, allocations: 7.844 kB / 1.195 GB, free: 48.62 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004891/2.078, allocations: 1.451 MB / 1.196 GB, free: 48.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.516e-05/2.078, allocations: 21.44 kB / 1.196 GB, free: 48.61 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/2.078, allocations: 21.91 kB / 1.196 GB, free: 48.61 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009211/2.079, allocations: 279.4 kB / 1.196 GB, free: 48.61 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003887/2.079, allocations: 0.6475 MB / 1.197 GB, free: 48.02 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/2.081, allocations: 102.3 kB / 1.197 GB, free: 47.98 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/2.081, allocations: 71 kB / 1.197 GB, free: 47.98 MB / 0.5105 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.0003444/2.081, allocations: 185.7 kB / 1.197 GB, free: 47.84 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003098/2.081, allocations: 118.2 kB / 1.198 GB, free: 47.78 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005359/2.087, allocations: 1.885 MB / 1.199 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/2.087, allocations: 7.844 kB / 1.199 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/2.087, allocations: 3.938 kB / 1.199 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/2.087, allocations: 3.375 kB / 1.199 GB, free: 47.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005969/2.093, allocations: 2.335 MB / 1.202 GB, free: 47.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/2.093, allocations: 0 / 1.202 GB, free: 47.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/2.095, allocations: 274.8 kB / 1.202 GB, free: 47.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.419e-05/2.095, allocations: 3.906 kB / 1.202 GB, free: 47.27 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.589e-05/2.095, allocations: 21.23 kB / 1.202 GB, free: 47.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/2.096, allocations: 1.331 MB / 1.203 GB, free: 46.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/2.096, allocations: 0 / 1.203 GB, free: 46.1 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004199/2.1, allocations: 1.335 MB / 1.205 GB, free: 45.86 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000532/2.101, allocations: 241.4 kB / 1.205 GB, free: 45.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003673/2.101, allocations: 3.781 kB / 1.205 GB, free: 45.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008871/2.102, allocations: 47.73 kB / 1.205 GB, free: 45.68 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.569e-05/2.102, allocations: 54.55 kB / 1.205 GB, free: 45.67 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.681e-05/2.102, allocations: 29.52 kB / 1.205 GB, free: 45.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001006/2.103, allocations: 0.6913 MB / 1.206 GB, free: 45.56 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00431/2.108, allocations: 1.375 MB / 1.207 GB, free: 45.24 MB / 0.5105 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.003958/2.111, allocations: 1.34 MB / 1.208 GB, free: 44.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004866/2.116, allocations: 1.664 MB / 1.21 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/2.116, allocations: 2.094 kB / 1.21 GB, free: 44.68 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003058/2.119, allocations: 0.6458 MB / 1.211 GB, free: 44.63 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/2.122, allocations: 408.3 kB / 1.211 GB, free: 44.61 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003935/2.126, allocations: 1.561 MB / 1.212 GB, free: 44.18 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/2.127, allocations: 1.353 MB / 1.214 GB, free: 43.46 MB / 0.5105 GB Notification: Performance of SimCode: time 9.92e-07/2.127, allocations: 0 / 1.214 GB, free: 43.46 MB / 0.5105 GB Notification: Performance of Templates: time 0.06594/2.193, allocations: 37.39 MB / 1.25 GB, free: 22.47 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches