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.001289/0.001289, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2334/0.2334, allocations: 46.11 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002323/0.002323, allocations: 75.88 kB / 480.9 MB, free: 4.488 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.3779, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002606/0.3805, allocations: 1.466 MB / 0.532 GB, free: 12.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.3826, allocations: 1.441 MB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.396e-05/0.3827, allocations: 0 / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001781/0.3829, allocations: 37.39 kB / 0.5335 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.3831, allocations: 52.06 kB / 0.5335 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.3836, allocations: 222.7 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.3837, allocations: 55.75 kB / 0.5338 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.302e-05/0.3838, allocations: 3.188 kB / 0.5338 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.649e-05/0.3839, allocations: 28.55 kB / 0.5338 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.328e-05/0.3839, allocations: 29.47 kB / 0.5338 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.384, allocations: 6.188 kB / 0.5338 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005997/0.3846, allocations: 334.3 kB / 0.5342 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.382e-05/0.3846, allocations: 6.141 kB / 0.5342 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.088e-05/0.3846, allocations: 31.08 kB / 0.5342 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004398/0.3851, allocations: 274.8 kB / 0.5345 GB, free: 10.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3851, allocations: 1.188 kB / 0.5345 GB, free: 10.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3851, allocations: 0 / 0.5345 GB, free: 10.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.3851, allocations: 0 / 0.5345 GB, free: 10.44 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.0005562/0.3857, allocations: 432.1 kB / 0.5349 GB, free: 10 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3857, allocations: 8.844 kB / 0.5349 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.105e-05/0.3858, allocations: 40.06 kB / 0.5349 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.3858, allocations: 7.641 kB / 0.5349 GB, free: 9.953 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.386, allocations: 178.2 kB / 0.5351 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.386, allocations: 1.75 kB / 0.5351 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.386, allocations: 3.125 kB / 0.5351 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.3861, allocations: 67.5 kB / 0.5352 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3862, allocations: 0 / 0.5352 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.268e-06/0.3862, allocations: 13.3 kB / 0.5352 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3862, allocations: 1.375 kB / 0.5352 GB, free: 9.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.883e-05/0.3863, allocations: 52.84 kB / 0.5352 GB, free: 9.656 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002248/0.3865, allocations: 194 kB / 0.5354 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.483e-05/0.3866, allocations: 61.88 kB / 0.5355 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.014e-05/0.3867, allocations: 40.09 kB / 0.5355 GB, free: 9.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.715e-05/0.3867, allocations: 26.91 kB / 0.5355 GB, free: 9.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3868, allocations: 39.94 kB / 0.5356 GB, free: 9.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 9.92e-07/0.3868, allocations: 0 / 0.5356 GB, free: 9.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.02014/0.4069, allocations: 1.627 MB / 0.5372 GB, free: 8.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.407, allocations: 52.84 kB / 0.5372 GB, free: 8.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.4072, allocations: 137.9 kB / 0.5374 GB, free: 8.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.4072, allocations: 26.83 kB / 0.5374 GB, free: 8.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.419e-05/0.4072, allocations: 89.22 kB / 0.5375 GB, free: 8.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.271e-05/0.4073, allocations: 35.97 kB / 0.5375 GB, free: 8.113 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.4074, allocations: 46.86 kB / 0.5375 GB, free: 8.078 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.4076, allocations: 321.1 kB / 0.5378 GB, free: 7.758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006472/0.4082, allocations: 209.6 kB / 0.538 GB, free: 7.648 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006362/0.4089, allocations: 202.7 kB / 0.5382 GB, free: 7.551 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/0.4102, allocations: 390.2 kB / 0.5386 GB, free: 7.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4102, allocations: 0 / 0.5386 GB, free: 7.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001386/0.4116, allocations: 451.3 kB / 0.539 GB, free: 7.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.4116, allocations: 5.094 kB / 0.539 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.4116, allocations: 1.531 kB / 0.5391 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.4116, allocations: 0 / 0.5391 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005229/0.4122, allocations: 72.36 kB / 0.5391 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.4122, allocations: 0 / 0.5391 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.4126, allocations: 36.81 kB / 0.5392 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.746e-05/0.4126, allocations: 9.984 kB / 0.5392 GB, free: 7.074 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.0001252/0.4128, allocations: 121.2 kB / 0.5393 GB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.545e-05/0.4128, allocations: 7.391 kB / 0.5393 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.4143, allocations: 362.1 kB / 0.5396 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.4143, allocations: 1.094 kB / 0.5396 GB, free: 6.75 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4143, allocations: 5 kB / 0.5396 GB, free: 6.746 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.4143, allocations: 7.969 kB / 0.5396 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.4173, allocations: 0.7821 MB / 0.5404 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.4173, allocations: 0.9688 kB / 0.5404 GB, free: 6.148 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004787/0.4178, allocations: 64.16 kB / 0.5405 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.4178, allocations: 2.188 kB / 0.5405 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.191e-05/0.4178, allocations: 15.52 kB / 0.5405 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.4179, allocations: 6.188 kB / 0.5405 GB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.4179, allocations: 5.062 kB / 0.5405 GB, free: 6.109 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.4192, allocations: 413.8 kB / 0.5409 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.4194, allocations: 111.7 kB / 0.541 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.747e-05/0.4194, allocations: 2.719 kB / 0.541 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.4199, allocations: 48.89 kB / 0.541 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.455e-05/0.4199, allocations: 8.672 kB / 0.5411 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.44e-05/0.4199, allocations: 6.062 kB / 0.5411 GB, free: 5.688 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.752e-05/0.42, allocations: 105.8 kB / 0.5412 GB, free: 5.598 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.42, allocations: 0 / 0.5412 GB, free: 5.598 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006008/0.4206, allocations: 172.7 kB / 0.5413 GB, free: 5.562 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.002363/0.423, allocations: 1.098 MB / 0.5424 GB, free: 4.684 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.4244, allocations: 380.7 kB / 0.5428 GB, free: 4.5 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4244, allocations: 3.938 kB / 0.5428 GB, free: 4.496 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005838/0.425, allocations: 148.2 kB / 0.5429 GB, free: 4.434 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.4254, allocations: 12.44 kB / 0.5429 GB, free: 4.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00709/0.4325, allocations: 2.763 MB / 0.5456 GB, free: 1.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.4329, allocations: 0.7001 MB / 0.5463 GB, free: 1.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000203/0.4331, allocations: 40.72 kB / 0.5463 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.4333, allocations: 39.41 kB / 0.5464 GB, free: 1.012 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4333, allocations: 0 / 0.5464 GB, free: 1.012 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03502/0.4683, allocations: 9.934 MB / 0.5561 GB, free: 7.203 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.824/8.293, allocations: 0 / 0.5561 GB, free: 7.203 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