Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.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.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001557/0.001557, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2195/0.2195, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 77.34 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.12, allocations: 62.45 MB / 480.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW): time 0.003349/0.1234, allocations: 1.92 MB / 482.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.1255, allocations: 1.133 MB / 483.2 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.1257, allocations: 4 kB / 483.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003291/0.126, allocations: 67.59 kB / 483.3 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002309/0.1263, allocations: 79.52 kB / 483.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004737/0.1267, allocations: 147.7 kB / 483.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002893/0.127, allocations: 262.4 kB / 483.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.838e-05/0.1271, allocations: 40.67 kB / 483.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.1273, allocations: 107.4 kB / 483.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.1275, allocations: 123.3 kB / 484 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.81e-05/0.1276, allocations: 12 kB / 484 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004899/0.1281, allocations: 311.5 kB / 484.3 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.631e-05/0.1281, allocations: 59.62 kB / 484.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.1283, allocations: 115.2 kB / 484.5 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005236/0.1288, allocations: 426.5 kB / 484.9 MB, free: 364 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1288, allocations: 4 kB / 484.9 MB, free: 360 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1288, allocations: 3.938 kB / 484.9 MB, free: 356 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.1288, allocations: 0 / 484.9 MB, free: 356 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: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.0007704/0.1296, allocations: 0.5699 MB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.1297, allocations: 8.031 kB / 485.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.368e-05/0.1297, allocations: 78.66 kB / 485.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.091e-05/0.1298, allocations: 36.5 kB / 485.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.1301, allocations: 231.9 kB / 485.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.1301, allocations: 32.92 kB / 485.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.1301, allocations: 32 kB / 485.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006814/0.1308, allocations: 497.4 kB / 486.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.1308, allocations: 0 / 486.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.638e-05/0.1309, allocations: 12 kB / 486.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.064e-05/0.1309, allocations: 32.92 kB / 486.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006094/0.1315, allocations: 423.7 kB / 486.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.1329, allocations: 1.193 MB / 488 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001856/0.1331, allocations: 70.53 kB / 488.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.1332, allocations: 44.83 kB / 488.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.1333, allocations: 3.938 kB / 488.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.1333, allocations: 38.56 kB / 488.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.1333, allocations: 0 / 488.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004581/0.1338, allocations: 153.6 kB / 488.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.1338, allocations: 59.34 kB / 488.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.1339, allocations: 162.4 kB / 488.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.134, allocations: 25.7 kB / 488.6 MB, free: 12.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1341, allocations: 223.2 kB / 488.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.1341, allocations: 27.64 kB / 488.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.176e-05/0.1342, allocations: 57.61 kB / 488.9 MB, free: 12.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.426e-05/0.1343, allocations: 322.8 kB / 489.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1344, allocations: 55.89 kB / 489.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002033/0.1346, allocations: 174.6 kB / 489.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.135, allocations: 248 kB / 489.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.135, allocations: 4 kB / 489.7 MB, free: 11.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004663/0.1355, allocations: 253.1 kB / 489.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1355, allocations: 8 kB / 489.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.1355, allocations: 4 kB / 489.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1356, allocations: 4 kB / 489.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.1359, allocations: 87.91 kB / 490 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008207/0.1367, allocations: 1.782 MB / 491.8 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.1369, allocations: 32.02 kB / 491.8 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.1369, allocations: 20 kB / 491.9 MB, free: 8.938 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 (dp_IN_con[3].target,dp_IN_con[2].target,dp_IN_con[1].target,m_flow_IN_con[3].target,m_flow_IN_con[2].target,m_flow_IN_con[1].target,NominalMassFlowRate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002193/0.1371, allocations: 177.6 kB / 492 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.507e-05/0.1372, allocations: 11.91 kB / 492 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004999/0.1377, allocations: 190 kB / 492.2 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1377, allocations: 0 / 492.2 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1377, allocations: 0 / 492.2 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1377, allocations: 0 / 492.2 MB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003076/0.138, allocations: 301.5 kB / 492.5 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.138, allocations: 0 / 492.5 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002184/0.1383, allocations: 63.97 kB / 492.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.1383, allocations: 0 / 492.6 MB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.1383, allocations: 7.938 kB / 492.6 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008337/0.1391, allocations: 1.774 MB / 494.4 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.1391, allocations: 3.938 kB / 494.4 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003356/0.1395, allocations: 219.6 kB / 494.6 MB, free: 6.059 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.008e-05/0.1395, allocations: 88.95 kB / 494.7 MB, free: 5.953 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.1396, allocations: 7.984 kB / 494.7 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.409e-05/0.1397, allocations: 4 kB / 494.7 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.188e-05/0.1397, allocations: 7.984 kB / 494.7 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.1398, allocations: 8 kB / 494.7 MB, free: 5.926 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.197e-05/0.1398, allocations: 118.2 kB / 494.8 MB, free: 5.812 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1399, allocations: 0 / 494.8 MB, free: 5.812 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004661/0.1403, allocations: 99.53 kB / 494.9 MB, free: 5.715 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008052/0.1411, allocations: 0.8025 MB / 495.7 MB, free: 4.887 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005634/0.1417, allocations: 192.9 kB / 495.9 MB, free: 4.699 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1417, allocations: 4 kB / 495.9 MB, free: 4.695 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002911/0.142, allocations: 87.89 kB / 496 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.1423, allocations: 12.3 kB / 496 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.1448, allocations: 2.204 MB / 498.2 MB, free: 2.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.1452, allocations: 0.806 MB / 499 MB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001876/0.1454, allocations: 61.19 kB / 499.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/0.1455, allocations: 79.41 kB / 499.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1456, allocations: 0 / 499.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02369/0.1692, allocations: 5.182 MB / 0.4925 GB, free: 12.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.45, allocations: 17.8 kB / 0.4925 GB, free: 12.24 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0002 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/General/dp_nominalPressureLossLawDensity_DPMFLOW/dp_nominalPressureLossLawDensity_DPMFLOW.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches