Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008225/0.0008225, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001008, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.7 MB / 246.8 MB, free: 11.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2003/0.2003, allocations: 46.19 MB / 345.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002815/0.0002816, allocations: 8 kB / 419.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1264, allocations: 63.55 MB / 483.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001766/0.1282, allocations: 1.184 MB / 484.3 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001959/0.1302, allocations: 1.457 MB / 485.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.348e-05/0.1302, allocations: 0 / 485.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.1304, allocations: 35.83 kB / 485.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001549/0.1306, allocations: 31.83 kB / 485.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003593/0.1309, allocations: 167.4 kB / 486 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.906e-05/0.1311, allocations: 55.72 kB / 486 MB, free: 1.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.783e-05/0.1311, allocations: 4.281 kB / 486 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.771e-05/0.1312, allocations: 23.88 kB / 486 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.937e-05/0.1312, allocations: 35.78 kB / 486.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.457e-06/0.1312, allocations: 0 / 486.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005561/0.1318, allocations: 339.6 kB / 486.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.58e-05/0.1318, allocations: 3.938 kB / 486.4 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.1319, allocations: 61.44 kB / 486.5 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003947/0.1323, allocations: 271.4 kB / 486.7 MB, free: 460 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1323, allocations: 4 kB / 486.7 MB, free: 456 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1323, allocations: 0 / 486.7 MB, free: 456 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1323, allocations: 0 / 486.7 MB, free: 456 kB / 350.1 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.0005053/0.1329, allocations: 409.7 kB / 487.1 MB, free: 0 / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.993e-05/0.1329, allocations: 8.922 kB / 487.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.938e-05/0.133, allocations: 8.844 kB / 487.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001299/0.1331, allocations: 180.2 kB / 487.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.1331, allocations: 384 / 487.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.1331, allocations: 4.375 kB / 487.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.1333, allocations: 65.75 kB / 487.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.1333, allocations: 4 kB / 487.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.1333, allocations: 3.984 kB / 487.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.1333, allocations: 11.94 kB / 487.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.669e-05/0.1334, allocations: 51.97 kB / 487.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/0.1336, allocations: 189.5 kB / 487.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.768e-05/0.1337, allocations: 66.5 kB / 487.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.85e-05/0.1338, allocations: 40.84 kB / 487.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.344e-05/0.1338, allocations: 20.22 kB / 487.8 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.1339, allocations: 38.48 kB / 487.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.1339, allocations: 0 / 487.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.02248/0.1564, allocations: 1.685 MB / 489.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.1564, allocations: 55.41 kB / 489.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.1566, allocations: 132.8 kB / 489.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.1566, allocations: 25.7 kB / 489.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.968e-05/0.1567, allocations: 88.05 kB / 489.8 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.3e-05/0.1567, allocations: 47.44 kB / 489.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-05/0.1568, allocations: 25.7 kB / 489.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1569, allocations: 318.8 kB / 490.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007607/0.1577, allocations: 207.9 kB / 490.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007516/0.1584, allocations: 223.7 kB / 490.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/0.16, allocations: 392.6 kB / 491 MB, free: 11.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.16, allocations: 4 kB / 491 MB, free: 11.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001665/0.1616, allocations: 488.3 kB / 491.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.1617, allocations: 8 kB / 491.5 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.1617, allocations: 4 kB / 491.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.1617, allocations: 0 / 491.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006494/0.1624, allocations: 83.81 kB / 491.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1624, allocations: 4 kB / 491.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005244/0.1629, allocations: 35.97 kB / 491.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.163, allocations: 16.12 kB / 491.6 MB, free: 11.33 MB / 366.1 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.zetaLaminarKnown,data.zeta2_at_a,data.zeta1_at_a) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001426/0.1631, allocations: 125.8 kB / 491.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.079e-05/0.1631, allocations: 7.906 kB / 491.7 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001674/0.1648, allocations: 406 kB / 492.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1648, allocations: 0 / 492.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.1648, allocations: 0 / 492.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1649, allocations: 4 kB / 492.1 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00348/0.1683, allocations: 0.8245 MB / 493 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.1684, allocations: 3.984 kB / 493 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005875/0.169, allocations: 76 kB / 493 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.169, allocations: 0 / 493 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/0.169, allocations: 15.97 kB / 493.1 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.169, allocations: 4 kB / 493.1 MB, free: 9.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.169, allocations: 3.938 kB / 493.1 MB, free: 9.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001501/0.1705, allocations: 453.7 kB / 493.5 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.026e-05/0.1706, allocations: 109 kB / 493.6 MB, free: 9.195 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.552e-05/0.1707, allocations: 4 kB / 493.6 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006106/0.1713, allocations: 47.95 kB / 493.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.772e-05/0.1713, allocations: 11.92 kB / 493.7 MB, free: 9.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.1714, allocations: 11.97 kB / 493.7 MB, free: 9.121 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.941e-05/0.1714, allocations: 103.2 kB / 493.8 MB, free: 9.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1714, allocations: 0 / 493.8 MB, free: 9.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005809/0.172, allocations: 164 kB / 494 MB, free: 8.859 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007093/0.1727, allocations: 258.9 kB / 494.2 MB, free: 8.598 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00154/0.1743, allocations: 399.7 kB / 494.6 MB, free: 8.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1743, allocations: 96 / 494.6 MB, free: 8.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007048/0.175, allocations: 171.9 kB / 494.8 MB, free: 8.039 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.1754, allocations: 19.98 kB / 494.8 MB, free: 8.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003163/0.1785, allocations: 0.5792 MB / 495.4 MB, free: 7.406 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.1788, allocations: 0.6971 MB / 496.1 MB, free: 6.684 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000243/0.1791, allocations: 44.62 kB / 496.1 MB, free: 6.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.1793, allocations: 43.36 kB / 496.1 MB, free: 6.594 MB / 366.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1793, allocations: 0 / 496.1 MB, free: 6.594 MB / 366.1 MB Notification: Performance of Templates: time 0.01402/0.1933, allocations: 8.46 MB / 0.4928 GB, free: 14.13 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches