Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.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.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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001486/0.00149, allocations: 181.5 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001107/0.001107, allocations: 99.22 kB / 270.9 MB, free: 8.371 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.537/0.537, allocations: 43.55 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004746/0.0004747, allocations: 12 kB / 431.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1356, allocations: 58.85 MB / 490.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.462/0.5977, allocations: 87.15 MB / 0.5638 GB, free: 15.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/0.5981, allocations: 79.97 kB / 0.5639 GB, free: 15.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02435/0.6224, allocations: 5.387 MB / 0.5692 GB, free: 10.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.6225, allocations: 0 / 0.5692 GB, free: 10.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.6225, allocations: 0 / 0.5692 GB, free: 10.14 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.0005524/0.6231, allocations: 422.4 kB / 0.5696 GB, free: 9.688 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.6232, allocations: 16.02 kB / 0.5696 GB, free: 9.672 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.6232, allocations: 11.34 kB / 0.5696 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.6234, allocations: 171 kB / 0.5698 GB, free: 9.457 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.6234, allocations: 4 kB / 0.5698 GB, free: 9.453 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.6234, allocations: 4 kB / 0.5698 GB, free: 9.449 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.6236, allocations: 61.67 kB / 0.5698 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.6236, allocations: 0 / 0.5698 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.6236, allocations: 1.031 kB / 0.5698 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.6237, allocations: 4 kB / 0.5698 GB, free: 9.379 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.6238, allocations: 63.91 kB / 0.5699 GB, free: 9.316 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002607/0.6241, allocations: 193.5 kB / 0.5701 GB, free: 9.078 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.6242, allocations: 58.55 kB / 0.5701 GB, free: 9.012 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.809e-05/0.6243, allocations: 22.23 kB / 0.5702 GB, free: 8.992 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.6243, allocations: 34.56 kB / 0.5702 GB, free: 8.949 MB / 394.7 MB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.6244, allocations: 0 / 0.5702 GB, free: 8.949 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.037/0.6614, allocations: 1.625 MB / 0.5718 GB, free: 7.301 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.6614, allocations: 55.41 kB / 0.5718 GB, free: 7.234 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.6616, allocations: 113.2 kB / 0.5719 GB, free: 7.113 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.6616, allocations: 33.7 kB / 0.572 GB, free: 7.074 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.443e-05/0.6617, allocations: 154.8 kB / 0.5721 GB, free: 6.918 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.514e-05/0.6618, allocations: 35.38 kB / 0.5722 GB, free: 6.883 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-05/0.6619, allocations: 4 kB / 0.5722 GB, free: 6.879 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.662, allocations: 322.8 kB / 0.5725 GB, free: 6.555 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.6631, allocations: 127.9 kB / 0.5726 GB, free: 6.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.6642, allocations: 135.9 kB / 0.5727 GB, free: 6.297 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.6653, allocations: 126.7 kB / 0.5728 GB, free: 6.176 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.6653, allocations: 0 / 0.5728 GB, free: 6.176 MB / 394.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.002329/0.6676, allocations: 317.5 kB / 0.5731 GB, free: 5.859 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.6677, allocations: 4 kB / 0.5731 GB, free: 5.855 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.6677, allocations: 0 / 0.5731 GB, free: 5.855 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.6677, allocations: 0 / 0.5731 GB, free: 5.855 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000988/0.6687, allocations: 79.86 kB / 0.5732 GB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.6687, allocations: 7.297 kB / 0.5732 GB, free: 5.773 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007897/0.6695, allocations: 35.97 kB / 0.5733 GB, free: 5.738 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.6696, allocations: 15.94 kB / 0.5733 GB, free: 5.723 MB / 394.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 () * Number of clocked 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.0001452/0.6697, allocations: 113.8 kB / 0.5734 GB, free: 5.602 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.57e-05/0.6698, allocations: 7.906 kB / 0.5734 GB, free: 5.594 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002657/0.6725, allocations: 382 kB / 0.5738 GB, free: 5.219 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.6725, allocations: 0 / 0.5738 GB, free: 5.219 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.6725, allocations: 0 / 0.5738 GB, free: 5.219 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.6725, allocations: 3.984 kB / 0.5738 GB, free: 5.215 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005388/0.6779, allocations: 0.8371 MB / 0.5746 GB, free: 4.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.6779, allocations: 0 / 0.5746 GB, free: 4.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000936/0.6789, allocations: 64.03 kB / 0.5746 GB, free: 4.258 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.6789, allocations: 4 kB / 0.5746 GB, free: 4.254 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.864e-05/0.679, allocations: 11.98 kB / 0.5747 GB, free: 4.242 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/0.679, allocations: 8.516 kB / 0.5747 GB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.679, allocations: 3.938 kB / 0.5747 GB, free: 4.23 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.6814, allocations: 462.9 kB / 0.5751 GB, free: 3.734 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001445/0.6816, allocations: 101 kB / 0.5752 GB, free: 3.617 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.539e-05/0.6817, allocations: 8 kB / 0.5752 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008415/0.6825, allocations: 44.58 kB / 0.5753 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.072e-05/0.6826, allocations: 15.92 kB / 0.5753 GB, free: 3.551 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.463e-05/0.6826, allocations: 4 kB / 0.5753 GB, free: 3.547 MB / 394.7 MB Notification: Performance of sorting global known variables: time 8.911e-05/0.6827, allocations: 96.81 kB / 0.5754 GB, free: 3.453 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6827, allocations: 0 / 0.5754 GB, free: 3.453 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008396/0.6836, allocations: 183.8 kB / 0.5755 GB, free: 3.273 MB / 394.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 () * Number of clocked 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.0009098/0.6845, allocations: 266.8 kB / 0.5758 GB, free: 3.004 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002242/0.6867, allocations: 294.7 kB / 0.5761 GB, free: 2.719 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.6868, allocations: 0 / 0.5761 GB, free: 2.719 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.6879, allocations: 148 kB / 0.5762 GB, free: 2.574 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.6882, allocations: 24.5 kB / 0.5762 GB, free: 2.551 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004716/0.6929, allocations: 0.5687 MB / 0.5768 GB, free: 1.945 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.6933, allocations: 0.7004 MB / 0.5775 GB, free: 1.219 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.6936, allocations: 27.42 kB / 0.5775 GB, free: 1.191 MB / 394.7 MB Notification: Performance of SimCode: time 1.403e-06/0.6936, allocations: 0 / 0.5775 GB, free: 1.191 MB / 394.7 MB Notification: Performance of Templates: time 0.01158/0.7052, allocations: 4.725 MB / 0.5821 GB, free: 12.48 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches