Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.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.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") [: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.002232/0.002232, allocations: 175.9 kB / 8.52 MB, free: 1.844 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.254/1.254, allocations: 221.4 MB / 230.3 MB, free: 7.695 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.0009056/0.0009055, allocations: 83.5 kB / 281.2 MB, free: 5.434 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.1709/0.1709, allocations: 44.15 MB / 376.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.43e-06/5.451e-06, allocations: 224 / 444 MB, free: 15.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1112, allocations: 61.92 MB / 0.4941 GB, free: 1.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3072/0.4185, allocations: 87.51 MB / 0.5796 GB, free: 9.246 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.4188, allocations: 72.89 kB / 0.5796 GB, free: 9.176 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01545/0.4343, allocations: 5.109 MB / 0.5846 GB, free: 4.086 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.4343, allocations: 4 kB / 0.5846 GB, free: 4.082 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004551/0.4348, allocations: 414 kB / 0.585 GB, free: 3.633 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.4348, allocations: 8.031 kB / 0.585 GB, free: 3.625 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.4349, allocations: 7.906 kB / 0.585 GB, free: 3.617 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.435, allocations: 171 kB / 0.5852 GB, free: 3.41 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.4351, allocations: 0 / 0.5852 GB, free: 3.41 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.4351, allocations: 7.906 kB / 0.5852 GB, free: 3.402 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001234/0.4352, allocations: 51.97 kB / 0.5852 GB, free: 3.352 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.464e-05/0.4353, allocations: 61.62 kB / 0.5853 GB, free: 3.285 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.4353, allocations: 0 / 0.5853 GB, free: 3.285 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.4354, allocations: 4 kB / 0.5853 GB, free: 3.281 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.4354, allocations: 4 kB / 0.5853 GB, free: 3.277 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001942/0.4356, allocations: 166.1 kB / 0.5855 GB, free: 3.078 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.342e-05/0.4357, allocations: 58.56 kB / 0.5855 GB, free: 3.012 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.59e-05/0.4357, allocations: 37.08 kB / 0.5856 GB, free: 2.973 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.662e-05/0.4358, allocations: 19.98 kB / 0.5856 GB, free: 2.953 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.4358, allocations: 34.56 kB / 0.5856 GB, free: 2.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.4358, allocations: 4 kB / 0.5856 GB, free: 2.906 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.02232/0.4582, allocations: 1.908 MB / 0.5875 GB, free: 0.9688 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.4582, allocations: 51.41 kB / 0.5875 GB, free: 0.9062 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.4583, allocations: 116.2 kB / 0.5876 GB, free: 0.7852 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.049e-05/0.4584, allocations: 25.7 kB / 0.5877 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.692e-05/0.4584, allocations: 92.3 kB / 0.5878 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.306e-05/0.4585, allocations: 39.41 kB / 0.5878 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.931e-05/0.4585, allocations: 3.938 kB / 0.5878 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.4586, allocations: 318.8 kB / 0.5881 GB, free: 300 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.4588, allocations: 79.98 kB / 0.5882 GB, free: 220 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001392/0.459, allocations: 75.98 kB / 0.5883 GB, free: 144 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.4606, allocations: 251.7 kB / 0.5885 GB, free: 15.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.4606, allocations: 0 / 0.5885 GB, free: 15.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00183/0.4624, allocations: 401.1 kB / 0.5889 GB, free: 15.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.144e-05/0.4625, allocations: 8.922 kB / 0.5889 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/0.4625, allocations: 4.016 kB / 0.5889 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.4625, allocations: 0 / 0.5889 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006745/0.4632, allocations: 67.94 kB / 0.589 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.228e-06/0.4632, allocations: 3.984 kB / 0.589 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000474/0.4637, allocations: 39.95 kB / 0.589 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.4637, allocations: 4 kB / 0.589 GB, free: 15.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001832/0.4639, allocations: 108.9 kB / 0.5891 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.464, allocations: 11.81 kB / 0.5891 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002107/0.4661, allocations: 455.6 kB / 0.5895 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.4661, allocations: 0 / 0.5895 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4661, allocations: 0 / 0.5895 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.4661, allocations: 0 / 0.5895 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003594/0.4697, allocations: 0.8876 MB / 0.5904 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.4697, allocations: 4.094 kB / 0.5904 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005393/0.4703, allocations: 63.94 kB / 0.5905 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.4703, allocations: 0 / 0.5905 GB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.4703, allocations: 11.98 kB / 0.5905 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.4703, allocations: 3.938 kB / 0.5905 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.4704, allocations: 11.84 kB / 0.5905 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001832/0.4722, allocations: 0.5183 MB / 0.591 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.4723, allocations: 105 kB / 0.5911 GB, free: 13.08 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.792e-05/0.4724, allocations: 4 kB / 0.5911 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004987/0.4729, allocations: 39.95 kB / 0.5912 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.718e-05/0.4729, allocations: 4 kB / 0.5912 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.4729, allocations: 11.98 kB / 0.5912 GB, free: 13.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.791e-05/0.473, allocations: 99.28 kB / 0.5913 GB, free: 12.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005796/0.4736, allocations: 175.8 kB / 0.5914 GB, free: 12.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006549/0.4742, allocations: 254.8 kB / 0.5917 GB, free: 12.49 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003754/0.4746, allocations: 179.8 kB / 0.5918 GB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4746, allocations: 0 / 0.5918 GB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.4748, allocations: 95.91 kB / 0.5919 GB, free: 12.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.4751, allocations: 19.89 kB / 0.592 GB, free: 12.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.4774, allocations: 410.6 kB / 0.5923 GB, free: 11.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004759/0.4779, allocations: 0.7426 MB / 0.5931 GB, free: 11 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4779, allocations: 0 / 0.5931 GB, free: 11 MB / 410.7 MB Notification: Performance of Templates: time 0.01113/0.489, allocations: 7.627 MB / 0.6005 GB, free: 3.387 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches