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.001002/0.001002, allocations: 107.6 kB / 17.21 MB, free: 6.289 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.0009484/0.0009484, allocations: 194 kB / 18.12 MB, free: 5.383 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.337/1.337, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.2042/0.2042, allocations: 44.17 MB / 336.1 MB, free: 2.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 62.41 kB / 407.8 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1321, allocations: 60.83 MB / 468.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW): time 0.003562/0.1357, allocations: 2.24 MB / 470.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004955/0.1407, allocations: 3.284 MB / 474.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1408, allocations: 0 / 474.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004403/0.1413, allocations: 91.78 kB / 474.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004004/0.1417, allocations: 135.3 kB / 474.4 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.1434, allocations: 0.7868 MB / 475.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005798/0.144, allocations: 0.6451 MB / 475.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.1441, allocations: 77.73 kB / 475.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002901/0.1444, allocations: 230.5 kB / 476.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/0.1447, allocations: 282.5 kB / 476.4 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.329e-05/0.1448, allocations: 16 kB / 476.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00238/0.1471, allocations: 1.938 MB / 478.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001472/0.1473, allocations: 151.1 kB / 478.5 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002604/0.1476, allocations: 270 kB / 478.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001913/0.1495, allocations: 1.659 MB / 480.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1495, allocations: 0 / 480.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1495, allocations: 0 / 480.4 MB, free: 2.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.1495, allocations: 0 / 480.4 MB, free: 2.883 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.001731/0.1513, allocations: 1.034 MB / 481.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.1513, allocations: 8.031 kB / 481.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.1515, allocations: 144.1 kB / 481.6 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.1516, allocations: 76 kB / 481.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004566/0.1521, allocations: 358.5 kB / 482 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.309e-05/0.1521, allocations: 50 kB / 482.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1523, allocations: 75.98 kB / 482.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.154, allocations: 1.229 MB / 483.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.154, allocations: 0 / 483.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.298e-05/0.1541, allocations: 27.98 kB / 483.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.723e-05/0.1542, allocations: 81.95 kB / 483.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002486/0.1567, allocations: 1.726 MB / 485.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004355/0.161, allocations: 2.947 MB / 488.2 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008565/0.1619, allocations: 427.8 kB / 488.6 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002537/0.1622, allocations: 145.3 kB / 488.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.781e-05/0.1622, allocations: 16.25 kB / 488.7 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.1623, allocations: 34.84 kB / 488.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.763e-06/0.1623, allocations: 4 kB / 488.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009338/0.1632, allocations: 475.4 kB / 489.2 MB, free: 9.781 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.1633, allocations: 59.34 kB / 489.3 MB, free: 9.711 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001843/0.1635, allocations: 214.8 kB / 489.5 MB, free: 9.492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.1635, allocations: 33.7 kB / 489.5 MB, free: 9.453 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/0.1637, allocations: 386.2 kB / 489.9 MB, free: 9.066 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.329e-05/0.1638, allocations: 126.3 kB / 490 MB, free: 8.941 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.164, allocations: 118.1 kB / 490.2 MB, free: 8.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1641, allocations: 338.7 kB / 490.5 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/0.1644, allocations: 152.9 kB / 490.6 MB, free: 8.332 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004236/0.1649, allocations: 350.3 kB / 491 MB, free: 7.898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006917/0.1656, allocations: 0.5287 MB / 491.5 MB, free: 7.281 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.1656, allocations: 4 kB / 491.5 MB, free: 7.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008715/0.1665, allocations: 0.54 MB / 492.1 MB, free: 6.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.1665, allocations: 8 kB / 492.1 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1665, allocations: 4 kB / 492.1 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.1665, allocations: 12 kB / 492.1 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007112/0.1673, allocations: 207.8 kB / 492.3 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.1688, allocations: 2.997 MB / 495.3 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.1691, allocations: 67.41 kB / 495.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.1692, allocations: 28 kB / 495.4 MB, free: 3.297 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.0004511/0.1697, allocations: 277.6 kB / 495.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.443e-05/0.1697, allocations: 23.72 kB / 495.7 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001246/0.171, allocations: 0.5461 MB / 496.2 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.974e-06/0.171, allocations: 4 kB / 496.2 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.171, allocations: 0 / 496.2 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.171, allocations: 11.98 kB / 496.2 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/0.173, allocations: 1.16 MB / 497.4 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.173, allocations: 0 / 497.4 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006014/0.1736, allocations: 179.8 kB / 497.6 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.487e-06/0.1736, allocations: 4 kB / 497.6 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.1736, allocations: 12 kB / 497.6 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001504/0.1752, allocations: 2.966 MB / 0.4888 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.1752, allocations: 3.984 kB / 0.4888 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007181/0.1759, allocations: 0.4956 MB / 0.4893 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.708e-05/0.176, allocations: 100.8 kB / 0.4894 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.732e-05/0.176, allocations: 15.94 kB / 0.4894 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.1762, allocations: 19.98 kB / 0.4894 GB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/0.1763, allocations: 39.89 kB / 0.4895 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.566e-05/0.1764, allocations: 24 kB / 0.4895 GB, free: 13.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.1765, allocations: 131.2 kB / 0.4896 GB, free: 13.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1765, allocations: 0 / 0.4896 GB, free: 13.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001181/0.1777, allocations: 350.8 kB / 0.49 GB, free: 12.69 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.002117/0.1798, allocations: 1.292 MB / 0.4912 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00112/0.181, allocations: 472.1 kB / 0.4917 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.181, allocations: 1.625 kB / 0.4917 GB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00059/0.1816, allocations: 264.2 kB / 0.4919 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.182, allocations: 24 kB / 0.4919 GB, free: 10.6 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005768/0.1877, allocations: 4.273 MB / 0.4961 GB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006414/0.1884, allocations: 0.9906 MB / 0.4971 GB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005242/0.1889, allocations: 166.5 kB / 0.4972 GB, free: 4.848 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002818/0.1892, allocations: 209.4 kB / 0.4974 GB, free: 4.645 MB / 382.1 MB Notification: Performance of SimCode: time 9.61e-07/0.1892, allocations: 4 kB / 0.4974 GB, free: 4.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2522/0.4415, allocations: 12.07 MB / 0.5092 GB, free: 47.02 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/0.4417, allocations: 302.4 kB / 0.5095 GB, free: 46.63 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.467, allocations: 0 / 0.5095 GB, free: 46.63 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