Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001084/0.001085, allocations: 191 kB / 16.78 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 226.5 MB / 244.1 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008913/0.0008909, allocations: 90.52 kB / 296.1 MB, free: 6.918 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3788/0.3788, allocations: 44.81 MB / 393 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003832, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4052, allocations: 62.96 MB / 0.5165 GB, free: 36.87 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1257/0.5309, allocations: 89.24 MB / 0.6036 GB, free: 184 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.5312, allocations: 79.89 kB / 0.6037 GB, free: 104 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01524/0.5465, allocations: 5.546 MB / 0.6091 GB, free: 10.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5465, allocations: 0 / 0.6091 GB, free: 10.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.5465, allocations: 0 / 0.6091 GB, free: 10.55 MB / 426.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.0005774/0.5471, allocations: 415 kB / 0.6095 GB, free: 10.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.5472, allocations: 12.02 kB / 0.6095 GB, free: 10.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.234e-05/0.5472, allocations: 8.844 kB / 0.6095 GB, free: 10.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.5474, allocations: 172.2 kB / 0.6097 GB, free: 9.871 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.5474, allocations: 8.375 kB / 0.6097 GB, free: 9.863 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.5474, allocations: 384 / 0.6097 GB, free: 9.863 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001501/0.5476, allocations: 74.17 kB / 0.6098 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.5476, allocations: 192 / 0.6098 GB, free: 9.785 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.5476, allocations: 3.938 kB / 0.6098 GB, free: 9.781 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.5477, allocations: 0 / 0.6098 GB, free: 9.781 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.957e-05/0.5478, allocations: 59.97 kB / 0.6098 GB, free: 9.723 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002343/0.548, allocations: 193.5 kB / 0.61 GB, free: 9.484 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.718e-05/0.5481, allocations: 58.55 kB / 0.6101 GB, free: 9.418 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.095e-05/0.5482, allocations: 40.84 kB / 0.6101 GB, free: 9.375 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.757e-05/0.5482, allocations: 23.98 kB / 0.6101 GB, free: 9.352 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.5483, allocations: 38.5 kB / 0.6102 GB, free: 9.305 MB / 426.7 MB Notification: Performance of pre-optimization done (n=8): time 1.072e-06/0.5483, allocations: 0 / 0.6102 GB, free: 9.305 MB / 426.7 MB Notification: Performance of matching and sorting (n=12): time 0.02321/0.5715, allocations: 1.619 MB / 0.6118 GB, free: 7.656 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.738e-05/0.5717, allocations: 55.41 kB / 0.6118 GB, free: 7.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.5719, allocations: 127.7 kB / 0.6119 GB, free: 7.453 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.583e-05/0.5719, allocations: 33.7 kB / 0.612 GB, free: 7.414 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.497e-05/0.572, allocations: 84.38 kB / 0.612 GB, free: 7.324 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.523e-05/0.5721, allocations: 39.39 kB / 0.6121 GB, free: 7.285 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.982e-05/0.5722, allocations: 4 kB / 0.6121 GB, free: 7.281 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5723, allocations: 322.8 kB / 0.6124 GB, free: 6.957 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008018/0.5731, allocations: 135.9 kB / 0.6125 GB, free: 6.824 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000797/0.5739, allocations: 127.9 kB / 0.6126 GB, free: 6.699 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.5756, allocations: 274.2 kB / 0.6129 GB, free: 6.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.5756, allocations: 4 kB / 0.6129 GB, free: 6.426 MB / 426.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.001758/0.5773, allocations: 317.7 kB / 0.6132 GB, free: 6.109 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.5774, allocations: 10.97 kB / 0.6132 GB, free: 6.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.5774, allocations: 0 / 0.6132 GB, free: 6.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.49e-05/0.5775, allocations: 0 / 0.6132 GB, free: 6.102 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007112/0.5782, allocations: 71.86 kB / 0.6133 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.5782, allocations: 0 / 0.6133 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005815/0.5788, allocations: 39.97 kB / 0.6133 GB, free: 5.992 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.414e-05/0.5788, allocations: 7.984 kB / 0.6133 GB, free: 5.984 MB / 426.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.0001642/0.579, allocations: 121.8 kB / 0.6135 GB, free: 5.855 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.912e-05/0.5791, allocations: 11.84 kB / 0.6135 GB, free: 5.844 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002038/0.5811, allocations: 370.2 kB / 0.6138 GB, free: 5.473 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.5812, allocations: 4 kB / 0.6138 GB, free: 5.469 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/0.5812, allocations: 3.984 kB / 0.6138 GB, free: 5.465 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.5812, allocations: 0 / 0.6138 GB, free: 5.465 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003889/0.5851, allocations: 0.837 MB / 0.6146 GB, free: 4.562 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.5851, allocations: 0 / 0.6146 GB, free: 4.562 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005755/0.5857, allocations: 71.97 kB / 0.6147 GB, free: 4.492 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/0.5857, allocations: 0 / 0.6147 GB, free: 4.492 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.498e-05/0.5858, allocations: 11.98 kB / 0.6147 GB, free: 4.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.5858, allocations: 3.938 kB / 0.6147 GB, free: 4.477 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5858, allocations: 4 kB / 0.6147 GB, free: 4.473 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001885/0.5877, allocations: 425.7 kB / 0.6151 GB, free: 4.031 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001624/0.5879, allocations: 109 kB / 0.6152 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.5879, allocations: 0 / 0.6152 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000635/0.5886, allocations: 47.95 kB / 0.6153 GB, free: 3.859 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.125e-05/0.5887, allocations: 11.92 kB / 0.6153 GB, free: 3.848 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.117e-05/0.5887, allocations: 8 kB / 0.6153 GB, free: 3.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001127/0.5888, allocations: 105.1 kB / 0.6154 GB, free: 3.738 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.5888, allocations: 0 / 0.6154 GB, free: 3.738 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001098/0.59, allocations: 175.8 kB / 0.6156 GB, free: 3.566 MB / 426.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.001273/0.5912, allocations: 267.8 kB / 0.6158 GB, free: 3.297 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.593, allocations: 295.8 kB / 0.6161 GB, free: 3.008 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5931, allocations: 0 / 0.6161 GB, free: 3.008 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008338/0.5939, allocations: 152 kB / 0.6163 GB, free: 2.859 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006147/0.5945, allocations: 15.98 kB / 0.6163 GB, free: 2.844 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003656/0.5982, allocations: 0.5692 MB / 0.6168 GB, free: 2.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.5987, allocations: 0.6935 MB / 0.6175 GB, free: 1.512 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002342/0.5989, allocations: 35.69 kB / 0.6175 GB, free: 1.477 MB / 426.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5989, allocations: 0 / 0.6175 GB, free: 1.477 MB / 426.7 MB Notification: Performance of Templates: time 0.01261/0.6116, allocations: 4.424 MB / 0.6219 GB, free: 13.05 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches