Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00158/0.00158, allocations: 171.5 kB / 8.146 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.705/1.705, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001277/0.001278, allocations: 93.42 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2577/0.2577, allocations: 43.49 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/8.105e-06, allocations: 0 / 417.7 MB, free: 40.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.272, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6307/0.9028, allocations: 334.8 MB / 0.7923 GB, free: 2.199 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.9031, allocations: 86.81 kB / 0.7924 GB, free: 2.152 MB / 474.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/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 .... [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/var/lib/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 1.574/2.478, allocations: 331.6 MB / 1.116 GB, free: 63.75 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001376/2.478, allocations: 41.7 kB / 1.116 GB, free: 63.74 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.0057/2.483, allocations: 1.801 MB / 1.118 GB, free: 62.67 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/2.483, allocations: 7.875 kB / 1.118 GB, free: 62.67 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001286/2.485, allocations: 185 kB / 1.118 GB, free: 62.59 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003643/2.488, allocations: 1.081 MB / 1.119 GB, free: 62.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.107e-05/2.489, allocations: 35.34 kB / 1.119 GB, free: 62.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000215/2.489, allocations: 54.78 kB / 1.119 GB, free: 62.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00316/2.492, allocations: 1.211 MB / 1.12 GB, free: 61.65 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002981/2.495, allocations: 1.308 MB / 1.122 GB, free: 60.99 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.716e-05/2.495, allocations: 3.938 kB / 1.122 GB, free: 60.99 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001992/2.495, allocations: 5.609 kB / 1.122 GB, free: 60.99 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-05/2.495, allocations: 58.53 kB / 1.122 GB, free: 60.98 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01244/2.508, allocations: 6.445 MB / 1.128 GB, free: 56.28 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/2.509, allocations: 0.4907 MB / 1.129 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007682/2.51, allocations: 333.3 kB / 1.129 GB, free: 55.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03191/2.542, allocations: 17.19 MB / 1.146 GB, free: 38.54 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008994/2.543, allocations: 453.8 kB / 1.146 GB, free: 38.19 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=49): time 3.456e-06/2.543, allocations: 0 / 1.146 GB, free: 38.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=49): time 0.0108/2.554, allocations: 1.278 MB / 1.147 GB, free: 37.57 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001578/2.554, allocations: 0.5424 MB / 1.148 GB, free: 36.91 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001865/2.556, allocations: 0.8999 MB / 1.149 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002158/2.556, allocations: 33.09 kB / 1.149 GB, free: 36.38 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004686/2.556, allocations: 0.5631 MB / 1.149 GB, free: 35.86 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002709/2.557, allocations: 170.2 kB / 1.15 GB, free: 35.72 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.964e-05/2.557, allocations: 4.75 kB / 1.15 GB, free: 35.72 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001141/2.557, allocations: 353 kB / 1.15 GB, free: 35.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/2.558, allocations: 307 kB / 1.15 GB, free: 35.24 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/2.56, allocations: 0.8365 MB / 1.151 GB, free: 34.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01554/2.575, allocations: 1.563 MB / 1.153 GB, free: 33.63 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-05/2.575, allocations: 4.719 kB / 1.153 GB, free: 33.63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=137) (initialization): time 0.02025/2.595, allocations: 2.17 MB / 1.155 GB, free: 32.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0015/2.597, allocations: 5.49 MB / 1.16 GB, free: 26.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.723e-05/2.597, allocations: 14.25 kB / 1.16 GB, free: 26.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.458e-05/2.597, allocations: 21.66 kB / 1.16 GB, free: 26.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006427/2.604, allocations: 393.8 kB / 1.16 GB, free: 26.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00312/2.607, allocations: 1.359 MB / 1.162 GB, free: 25.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002571/2.609, allocations: 113.3 kB / 1.162 GB, free: 25.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/2.61, allocations: 66.81 kB / 1.162 GB, free: 25.23 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/2.61, allocations: 11.88 kB / 1.162 GB, free: 25.23 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01893/2.629, allocations: 1.79 MB / 1.164 GB, free: 24.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.485e-05/2.629, allocations: 13.38 kB / 1.164 GB, free: 24.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.795e-05/2.629, allocations: 25.97 kB / 1.164 GB, free: 24.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002788/2.632, allocations: 280.9 kB / 1.164 GB, free: 24.33 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007194/2.633, allocations: 0.6436 MB / 1.165 GB, free: 23.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002469/2.635, allocations: 112.2 kB / 1.165 GB, free: 23.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002937/2.635, allocations: 61.11 kB / 1.165 GB, free: 23.64 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.0006168/2.636, allocations: 109.9 kB / 1.165 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005601/2.637, allocations: 117.6 kB / 1.165 GB, free: 23.48 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01432/2.651, allocations: 1.924 MB / 1.167 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/2.651, allocations: 9.156 kB / 1.167 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/2.651, allocations: 0 / 1.167 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/2.651, allocations: 7.984 kB / 1.167 GB, free: 22.45 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01443/2.666, allocations: 2.395 MB / 1.169 GB, free: 20.96 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/2.666, allocations: 1.219 kB / 1.169 GB, free: 20.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00369/2.669, allocations: 272.8 kB / 1.169 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.2e-05/2.669, allocations: 11.53 kB / 1.169 GB, free: 20.88 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/2.669, allocations: 17.7 kB / 1.17 GB, free: 20.87 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002021/2.672, allocations: 1.33 MB / 1.171 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/2.672, allocations: 0 / 1.171 GB, free: 19.57 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007401/2.679, allocations: 1.335 MB / 1.172 GB, free: 18.21 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005932/2.68, allocations: 255.1 kB / 1.172 GB, free: 17.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003693/2.68, allocations: 11.92 kB / 1.172 GB, free: 17.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/2.681, allocations: 47.86 kB / 1.172 GB, free: 17.88 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/2.682, allocations: 44.59 kB / 1.172 GB, free: 17.84 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/2.682, allocations: 31.98 kB / 1.172 GB, free: 17.81 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001401/2.683, allocations: 0.6904 MB / 1.173 GB, free: 17.11 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00603/2.689, allocations: 1.38 MB / 1.175 GB, free: 15.73 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.00512/2.694, allocations: 1.365 MB / 1.176 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007944/2.702, allocations: 1.629 MB / 1.177 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.948e-06/2.702, allocations: 4.125 kB / 1.177 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005648/2.708, allocations: 0.6523 MB / 1.178 GB, free: 12.17 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004093/2.712, allocations: 395.8 kB / 1.178 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004863/2.717, allocations: 1.587 MB / 1.18 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/2.719, allocations: 1.352 MB / 1.181 GB, free: 8.785 MB / 0.4948 GB Notification: Performance of SimCode: time 1.152e-06/2.719, allocations: 0 / 1.181 GB, free: 8.785 MB / 0.4948 GB Notification: Performance of Templates: time 0.08755/2.806, allocations: 40.34 MB / 1.221 GB, free: 0.6602 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestWallFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches