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.001574/0.001574, allocations: 198.8 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 226.6 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007682/0.0007682, allocations: 98.23 kB / 295.1 MB, free: 4.371 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1895/0.1895, allocations: 44.84 MB / 392 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002192/0.0002193, allocations: 8 kB / 464.7 MB, free: 68.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08534/0.08557, allocations: 62.95 MB / 0.5153 GB, free: 5.121 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.00116/0.08677, allocations: 1.158 MB / 0.5165 GB, free: 3.949 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.08805, allocations: 1.325 MB / 0.5178 GB, free: 2.617 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.404e-05/0.0881, allocations: 0 / 0.5178 GB, free: 2.617 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001265/0.08823, allocations: 27.83 kB / 0.5178 GB, free: 2.59 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000167/0.08841, allocations: 39.77 kB / 0.5178 GB, free: 2.551 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.08873, allocations: 163.5 kB / 0.518 GB, free: 2.391 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 8.457e-05/0.08882, allocations: 51.73 kB / 0.518 GB, free: 2.34 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.802e-05/0.08888, allocations: 0 / 0.518 GB, free: 2.34 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.553e-05/0.08893, allocations: 23.86 kB / 0.518 GB, free: 2.316 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.807e-05/0.089, allocations: 31.86 kB / 0.5181 GB, free: 2.285 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.737e-06/0.08901, allocations: 0 / 0.5181 GB, free: 2.285 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000428/0.08944, allocations: 315.6 kB / 0.5184 GB, free: 1.977 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.898e-06/0.08947, allocations: 11.92 kB / 0.5184 GB, free: 1.965 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.994e-05/0.08949, allocations: 33.7 kB / 0.5184 GB, free: 1.926 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.0897, allocations: 183.8 kB / 0.5186 GB, free: 1.746 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.08972, allocations: 0 / 0.5186 GB, free: 1.746 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.08972, allocations: 4 kB / 0.5186 GB, free: 1.742 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.08973, allocations: 0 / 0.5186 GB, free: 1.742 MB / 346.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.0003617/0.0901, allocations: 411 kB / 0.519 GB, free: 1.293 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.09014, allocations: 8.031 kB / 0.519 GB, free: 1.285 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.917e-05/0.09017, allocations: 7.906 kB / 0.519 GB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.122e-05/0.09026, allocations: 179 kB / 0.5192 GB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.09027, allocations: 0 / 0.5192 GB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.91e-05/0.0903, allocations: 4 kB / 0.5192 GB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.09041, allocations: 61.67 kB / 0.5192 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.09043, allocations: 0 / 0.5192 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.09044, allocations: 11.88 kB / 0.5193 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.09045, allocations: 4 kB / 0.5193 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.9e-05/0.09053, allocations: 59.95 kB / 0.5193 GB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001261/0.09066, allocations: 181.6 kB / 0.5195 GB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.661e-05/0.09073, allocations: 58.56 kB / 0.5195 GB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.468e-05/0.09078, allocations: 40.84 kB / 0.5196 GB, free: 0.582 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.737e-05/0.09084, allocations: 15.98 kB / 0.5196 GB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.763e-05/0.09086, allocations: 34.56 kB / 0.5196 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.09087, allocations: 4 kB / 0.5196 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.02034/0.1112, allocations: 1.7 MB / 0.5213 GB, free: 14.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.1113, allocations: 51.41 kB / 0.5213 GB, free: 14.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.1114, allocations: 134 kB / 0.5215 GB, free: 14.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.1115, allocations: 29.7 kB / 0.5215 GB, free: 14.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.691e-05/0.1115, allocations: 96.03 kB / 0.5216 GB, free: 14.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.003e-05/0.1116, allocations: 31.47 kB / 0.5216 GB, free: 14.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.859e-05/0.1116, allocations: 0 / 0.5216 GB, free: 14.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1117, allocations: 326.8 kB / 0.5219 GB, free: 14.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007142/0.1124, allocations: 212 kB / 0.5221 GB, free: 13.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006944/0.1131, allocations: 208.2 kB / 0.5223 GB, free: 13.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006963/0.1138, allocations: 195.5 kB / 0.5225 GB, free: 13.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-06/0.1138, allocations: 0 / 0.5225 GB, free: 13.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001484/0.1153, allocations: 491.2 kB / 0.523 GB, free: 13.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1154, allocations: 8 kB / 0.523 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.1154, allocations: 0 / 0.523 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.1154, allocations: 0 / 0.523 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000575/0.116, allocations: 79.89 kB / 0.5231 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.116, allocations: 0 / 0.5231 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004779/0.1165, allocations: 43.95 kB / 0.5231 GB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.1165, allocations: 15.97 kB / 0.5231 GB, free: 12.86 MB / 362.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: 3 (data.zeta1_at_a,data.zeta2_at_a,data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001094/0.1166, allocations: 117.8 kB / 0.5232 GB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.1167, allocations: 7.906 kB / 0.5232 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.1183, allocations: 397.9 kB / 0.5236 GB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1183, allocations: 3.984 kB / 0.5236 GB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1183, allocations: 4 kB / 0.5236 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1183, allocations: 0 / 0.5236 GB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003118/0.1214, allocations: 0.8245 MB / 0.5244 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.1214, allocations: 0 / 0.5244 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000555/0.122, allocations: 79.98 kB / 0.5245 GB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.122, allocations: 7.938 kB / 0.5245 GB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.122, allocations: 11.97 kB / 0.5245 GB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.122, allocations: 0 / 0.5245 GB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1221, allocations: 3.953 kB / 0.5245 GB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.1235, allocations: 457.9 kB / 0.525 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001108/0.1236, allocations: 113 kB / 0.5251 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.1237, allocations: 0 / 0.5251 GB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005137/0.1242, allocations: 55.89 kB / 0.5251 GB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.072e-05/0.1242, allocations: 7.953 kB / 0.5251 GB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.1243, allocations: 15.97 kB / 0.5252 GB, free: 10.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.022e-05/0.1243, allocations: 97.66 kB / 0.5253 GB, free: 10.56 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1243, allocations: 4 kB / 0.5253 GB, free: 10.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005507/0.1249, allocations: 175.9 kB / 0.5254 GB, free: 10.38 MB / 362.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.0005957/0.1255, allocations: 244.1 kB / 0.5257 GB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001446/0.1269, allocations: 407.6 kB / 0.526 GB, free: 9.738 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.127, allocations: 4 kB / 0.5261 GB, free: 9.734 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006523/0.1276, allocations: 160 kB / 0.5262 GB, free: 9.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.1279, allocations: 12 kB / 0.5262 GB, free: 9.566 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.1308, allocations: 0.6004 MB / 0.5268 GB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.1311, allocations: 0.697 MB / 0.5275 GB, free: 8.203 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.1313, allocations: 51.34 kB / 0.5275 GB, free: 8.156 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.1313, allocations: 0 / 0.5275 GB, free: 8.156 MB / 362.7 MB Notification: Performance of Templates: time 0.006394/0.1377, allocations: 4.676 MB / 0.5321 GB, free: 3.477 MB / 362.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/jenkins/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