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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001142/0.001142, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001279/0.001279, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2031/0.2031, allocations: 46.1 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 71.88 kB / 480.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2893, allocations: 62.43 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002213/0.2916, allocations: 1.462 MB / 0.5319 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001795/0.2934, allocations: 1.449 MB / 0.5334 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.252e-05/0.2934, allocations: 1.5 kB / 0.5334 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001509/0.2936, allocations: 28.81 kB / 0.5334 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001866/0.2938, allocations: 52.38 kB / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004477/0.2942, allocations: 222.4 kB / 0.5336 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.577e-05/0.2944, allocations: 55.72 kB / 0.5337 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.434e-05/0.2944, allocations: 12.09 kB / 0.5337 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.647e-05/0.2945, allocations: 28.25 kB / 0.5337 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.242e-05/0.2945, allocations: 25.48 kB / 0.5338 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.057e-05/0.2945, allocations: 5.312 kB / 0.5338 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005565/0.2951, allocations: 340.2 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.336e-05/0.2951, allocations: 1.375 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.849e-05/0.2952, allocations: 38.73 kB / 0.5341 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004014/0.2956, allocations: 268 kB / 0.5344 GB, free: 10.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2956, allocations: 0 / 0.5344 GB, free: 10.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2956, allocations: 0 / 0.5344 GB, free: 10.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.2956, allocations: 0 / 0.5344 GB, free: 10.45 MB / 398.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.0004723/0.2961, allocations: 434.1 kB / 0.5348 GB, free: 10.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.2961, allocations: 9.625 kB / 0.5348 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.943e-05/0.2962, allocations: 40.06 kB / 0.5348 GB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.604e-05/0.2962, allocations: 7.641 kB / 0.5349 GB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.2963, allocations: 172.3 kB / 0.535 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.2963, allocations: 1.719 kB / 0.535 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.838e-05/0.2964, allocations: 7.031 kB / 0.535 GB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.2965, allocations: 71.19 kB / 0.5351 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.2965, allocations: 0 / 0.5351 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.2965, allocations: 5.5 kB / 0.5351 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2965, allocations: 1.062 kB / 0.5351 GB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.342e-05/0.2966, allocations: 52.81 kB / 0.5352 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001823/0.2968, allocations: 194.7 kB / 0.5353 GB, free: 9.453 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.473e-05/0.2969, allocations: 60.44 kB / 0.5354 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.635e-05/0.297, allocations: 40.78 kB / 0.5354 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.444e-05/0.297, allocations: 23.14 kB / 0.5355 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.2971, allocations: 39.72 kB / 0.5355 GB, free: 9.324 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.2971, allocations: 0.9375 kB / 0.5355 GB, free: 9.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.01957/0.3167, allocations: 1.622 MB / 0.5371 GB, free: 8.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.3167, allocations: 52.47 kB / 0.5371 GB, free: 8.422 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3168, allocations: 139.1 kB / 0.5373 GB, free: 8.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.3169, allocations: 26.48 kB / 0.5373 GB, free: 8.262 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.953e-05/0.3169, allocations: 90.22 kB / 0.5374 GB, free: 8.172 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.989e-05/0.317, allocations: 40.55 kB / 0.5374 GB, free: 8.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.3171, allocations: 42.78 kB / 0.5375 GB, free: 8.105 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.268e-05/0.3172, allocations: 325.2 kB / 0.5378 GB, free: 7.781 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006109/0.3178, allocations: 208.5 kB / 0.538 GB, free: 7.672 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005914/0.3184, allocations: 209 kB / 0.5382 GB, free: 7.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.3196, allocations: 384.2 kB / 0.5385 GB, free: 7.379 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.3196, allocations: 4 kB / 0.5385 GB, free: 7.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001364/0.321, allocations: 451.6 kB / 0.539 GB, free: 7.137 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.321, allocations: 9.188 kB / 0.539 GB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.3211, allocations: 0 / 0.539 GB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.3211, allocations: 1.438 kB / 0.539 GB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005065/0.3216, allocations: 68.03 kB / 0.539 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.77e-06/0.3216, allocations: 0 / 0.539 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.322, allocations: 41.14 kB / 0.5391 GB, free: 7.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.359e-05/0.3221, allocations: 9.328 kB / 0.5391 GB, free: 7.09 MB / 398.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.0001128/0.3222, allocations: 125.3 kB / 0.5392 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.3222, allocations: 7.016 kB / 0.5392 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001362/0.3236, allocations: 370.4 kB / 0.5396 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.3236, allocations: 1.438 kB / 0.5396 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3236, allocations: 1.719 kB / 0.5396 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.3236, allocations: 0 / 0.5396 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002777/0.3264, allocations: 0.7815 MB / 0.5403 GB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3264, allocations: 1.094 kB / 0.5403 GB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004774/0.3269, allocations: 64.5 kB / 0.5404 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.3269, allocations: 2.156 kB / 0.5404 GB, free: 6.145 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/0.3269, allocations: 11.2 kB / 0.5404 GB, free: 6.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.327, allocations: 5.969 kB / 0.5404 GB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.327, allocations: 5.438 kB / 0.5404 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.3282, allocations: 413.5 kB / 0.5408 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.808e-05/0.3284, allocations: 112.2 kB / 0.5409 GB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.3284, allocations: 6.062 kB / 0.5409 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004407/0.3289, allocations: 45.83 kB / 0.541 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.847e-05/0.3289, allocations: 3.688 kB / 0.541 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.952e-05/0.3289, allocations: 13.55 kB / 0.541 GB, free: 5.703 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.048e-05/0.329, allocations: 103.5 kB / 0.5411 GB, free: 5.617 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.329, allocations: 0 / 0.5411 GB, free: 5.617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005872/0.3296, allocations: 179.7 kB / 0.5413 GB, free: 5.574 MB / 398.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.002146/0.3318, allocations: 1.094 MB / 0.5423 GB, free: 4.699 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001295/0.3331, allocations: 376.6 kB / 0.5427 GB, free: 4.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3331, allocations: 1.156 kB / 0.5427 GB, free: 4.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/0.3337, allocations: 148 kB / 0.5428 GB, free: 4.457 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.3341, allocations: 22.27 kB / 0.5428 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006641/0.3407, allocations: 2.766 MB / 0.5455 GB, free: 1.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.3411, allocations: 0.6924 MB / 0.5462 GB, free: 1.137 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002033/0.3413, allocations: 44.84 kB / 0.5463 GB, free: 1.094 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.3415, allocations: 39.41 kB / 0.5463 GB, free: 1.055 MB / 398.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3415, allocations: 0 / 0.5463 GB, free: 1.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0287/0.3702, allocations: 9.931 MB / 0.556 GB, free: 7.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/8.195, allocations: 0 / 0.556 GB, free: 7.25 MB / 414.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches