Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 100 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 192.1 kB / 18.56 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 242.3 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2092/0.2092, allocations: 44.18 MB / 336.6 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 65.03 kB / 408.6 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 60.82 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW): time 0.003584/0.1056, allocations: 2.188 MB / 471.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004693/0.1103, allocations: 3.252 MB / 474.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.1105, allocations: 0 / 474.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004039/0.1109, allocations: 91.72 kB / 474.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004437/0.1114, allocations: 143.2 kB / 475 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.1136, allocations: 0.8758 MB / 475.9 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006471/0.1143, allocations: 0.5593 MB / 476.5 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.1144, allocations: 77.73 kB / 476.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004041/0.1148, allocations: 246.5 kB / 476.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004609/0.1153, allocations: 282.5 kB / 477.1 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.027e-05/0.1154, allocations: 16 kB / 477.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002886/0.1183, allocations: 1.949 MB / 479 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001967/0.1185, allocations: 143.2 kB / 479.2 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003891/0.1189, allocations: 274 kB / 479.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002736/0.1216, allocations: 1.679 MB / 481.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1217, allocations: 3.938 kB / 481.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1217, allocations: 0 / 481.1 MB, free: 2.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.493e-05/0.1217, allocations: 0 / 481.1 MB, free: 2.449 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002258/0.124, allocations: 1.03 MB / 482.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.124, allocations: 12.03 kB / 482.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001957/0.1242, allocations: 140.1 kB / 482.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001868/0.1244, allocations: 76 kB / 482.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005287/0.125, allocations: 358.5 kB / 482.7 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.725e-05/0.125, allocations: 57.98 kB / 482.8 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.1251, allocations: 72 kB / 482.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.1269, allocations: 1.225 MB / 484.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1269, allocations: 0 / 484.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.562e-05/0.127, allocations: 28 kB / 484.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.221e-05/0.1271, allocations: 81.95 kB / 484.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/0.1297, allocations: 1.726 MB / 485.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00438/0.1341, allocations: 2.947 MB / 488.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008849/0.135, allocations: 423.8 kB / 489.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.1353, allocations: 153.3 kB / 489.4 MB, free: 9.879 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.384e-05/0.1354, allocations: 8.266 kB / 489.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.1354, allocations: 42.78 kB / 489.5 MB, free: 9.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.833e-06/0.1354, allocations: 0 / 489.5 MB, free: 9.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.000946/0.1364, allocations: 479.3 kB / 489.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.1364, allocations: 63.34 kB / 490 MB, free: 9.273 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/0.1366, allocations: 202.4 kB / 490.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.1367, allocations: 29.7 kB / 490.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.1369, allocations: 394.1 kB / 490.6 MB, free: 8.637 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.137, allocations: 118.3 kB / 490.7 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.1371, allocations: 122.1 kB / 490.9 MB, free: 8.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1372, allocations: 338.7 kB / 491.2 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.1375, allocations: 153 kB / 491.3 MB, free: 7.906 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000398/0.1379, allocations: 350.3 kB / 491.7 MB, free: 7.473 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000745/0.1387, allocations: 0.5287 MB / 492.2 MB, free: 6.855 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.1387, allocations: 0 / 492.2 MB, free: 6.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009554/0.1397, allocations: 0.5395 MB / 492.7 MB, free: 6.309 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1397, allocations: 12.86 kB / 492.8 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1397, allocations: 4 kB / 492.8 MB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.1398, allocations: 16 kB / 492.8 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007627/0.1405, allocations: 207.8 kB / 493 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.1421, allocations: 2.996 MB / 496 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.1423, allocations: 59.72 kB / 496 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/0.1424, allocations: 31.98 kB / 496.1 MB, free: 2.871 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 6 (geometry[5],roughness,geometry[4],geometry[3],geometry[2],geometry[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003613/0.1428, allocations: 277.4 kB / 496.3 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.264e-05/0.1429, allocations: 19.81 kB / 496.4 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.144, allocations: 0.5461 MB / 496.9 MB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.1441, allocations: 4 kB / 496.9 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1441, allocations: 0 / 496.9 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.1441, allocations: 7.969 kB / 496.9 MB, free: 2.012 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.1458, allocations: 1.169 MB / 498.1 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.1458, allocations: 4 kB / 498.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005948/0.1464, allocations: 179.8 kB / 498.3 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.1464, allocations: 4 kB / 498.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.1464, allocations: 12 kB / 498.3 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.1478, allocations: 2.966 MB / 0.4895 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.1478, allocations: 7.969 kB / 0.4895 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007207/0.1486, allocations: 0.4947 MB / 0.49 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.1486, allocations: 104.8 kB / 0.4901 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.108e-05/0.1487, allocations: 15.94 kB / 0.4901 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.1489, allocations: 15.98 kB / 0.4901 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.861e-05/0.149, allocations: 35.91 kB / 0.4902 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.149, allocations: 19.98 kB / 0.4902 GB, free: 12.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001082/0.1491, allocations: 135.2 kB / 0.4903 GB, free: 12.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1491, allocations: 0 / 0.4903 GB, free: 12.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001026/0.1502, allocations: 354.8 kB / 0.4906 GB, free: 12.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (39): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * 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): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001778/0.152, allocations: 1.28 MB / 0.4919 GB, free: 10.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.1531, allocations: 0.5326 MB / 0.4924 GB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1531, allocations: 256 / 0.4924 GB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005946/0.1537, allocations: 264.5 kB / 0.4927 GB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.1541, allocations: 27.98 kB / 0.4927 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005274/0.1594, allocations: 3.945 MB / 0.4965 GB, free: 5.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005987/0.16, allocations: 0.9868 MB / 0.4975 GB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005423/0.1606, allocations: 178.5 kB / 0.4977 GB, free: 4.676 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.1609, allocations: 207.4 kB / 0.4979 GB, free: 4.473 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1609, allocations: 0 / 0.4979 GB, free: 4.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3335/0.4944, allocations: 12.39 MB / 0.51 GB, free: 47.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.72, allocations: 6.281 kB / 0.51 GB, free: 47.53 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/PressureLoss/Channel/dp_internalFlowOverall_DPMFLOW/dp_internalFlowOverall_DPMFLOW.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches