Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_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.StraightPipe.dp_turbulent_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_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.00091/0.0009101, allocations: 98.3 kB / 17 MB, free: 6.418 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.0008844/0.0008844, allocations: 188.6 kB / 17.89 MB, free: 5.945 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.37/1.37, allocations: 223.3 MB / 241.9 MB, free: 272 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2065/0.2065, allocations: 44.23 MB / 337.2 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003966, allocations: 8 kB / 409.8 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1204, allocations: 61.92 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW): time 0.002273/0.1227, allocations: 1.489 MB / 473.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.125, allocations: 1.509 MB / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.244e-05/0.1251, allocations: 0 / 474.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002471/0.1254, allocations: 39.81 kB / 474.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000299/0.1257, allocations: 75.66 kB / 474.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006473/0.1264, allocations: 351.1 kB / 475.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002956/0.1267, allocations: 270.7 kB / 475.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.71e-05/0.1267, allocations: 20.41 kB / 475.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.1269, allocations: 95.5 kB / 475.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001714/0.1271, allocations: 127.5 kB / 475.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.1271, allocations: 8 kB / 475.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009224/0.1281, allocations: 0.6587 MB / 476.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.733e-05/0.1282, allocations: 79.59 kB / 476.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.611e-05/0.1282, allocations: 61.58 kB / 476.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005239/0.1288, allocations: 367.5 kB / 476.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1288, allocations: 0 / 476.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1288, allocations: 0 / 476.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.1288, allocations: 4 kB / 476.8 MB, free: 8.465 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0008732/0.1297, allocations: 0.577 MB / 477.4 MB, free: 7.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.1297, allocations: 12.03 kB / 477.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.622e-05/0.1298, allocations: 74.52 kB / 477.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.952e-05/0.1299, allocations: 35.53 kB / 477.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000262/0.1302, allocations: 234.6 kB / 477.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.1302, allocations: 24.52 kB / 477.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.258e-05/0.1302, allocations: 31.97 kB / 477.8 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007517/0.131, allocations: 471.3 kB / 478.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.131, allocations: 0 / 478.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.1311, allocations: 12 kB / 478.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-05/0.1311, allocations: 44.91 kB / 478.3 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008273/0.132, allocations: 0.5621 MB / 478.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001825/0.1338, allocations: 1.311 MB / 480.2 MB, free: 4.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005072/0.1343, allocations: 274.5 kB / 480.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.1345, allocations: 100.8 kB / 480.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.512e-05/0.1346, allocations: 12.36 kB / 480.5 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.1346, allocations: 38.56 kB / 480.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.244e-06/0.1346, allocations: 0 / 480.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.0007338/0.1354, allocations: 357.7 kB / 480.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.1354, allocations: 51.41 kB / 481 MB, free: 4.016 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.1356, allocations: 142 kB / 481.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.1356, allocations: 25.7 kB / 481.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.1357, allocations: 191.8 kB / 481.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.765e-05/0.1358, allocations: 86.75 kB / 481.4 MB, free: 3.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-05/0.1358, allocations: 8 kB / 481.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.136, allocations: 326.8 kB / 481.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.1362, allocations: 99.78 kB / 481.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002417/0.1364, allocations: 182.2 kB / 482 MB, free: 2.906 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.1367, allocations: 116.1 kB / 482.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1367, allocations: 0 / 482.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000573/0.1373, allocations: 329.1 kB / 482.5 MB, free: 2.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.1373, allocations: 6.5 kB / 482.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.1373, allocations: 15.88 kB / 482.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.1373, allocations: 7.938 kB / 482.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004516/0.1378, allocations: 119.9 kB / 482.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001212/0.139, allocations: 2.364 MB / 485 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.1392, allocations: 39.67 kB / 485 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.1392, allocations: 15.94 kB / 485 MB, free: 15.81 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (roughness) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.1395, allocations: 178.2 kB / 485.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.39e-05/0.1395, allocations: 19.8 kB / 485.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007995/0.1403, allocations: 371.5 kB / 485.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.1403, allocations: 4 kB / 485.6 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1403, allocations: 4 kB / 485.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1404, allocations: 7.984 kB / 485.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004219/0.1408, allocations: 345.2 kB / 485.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1408, allocations: 0 / 485.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.1412, allocations: 103.9 kB / 486 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.1412, allocations: 4 kB / 486 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.1412, allocations: 12 kB / 486 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.1424, allocations: 2.36 MB / 488.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1424, allocations: 4.062 kB / 488.4 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005736/0.143, allocations: 379.4 kB / 488.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.824e-05/0.143, allocations: 96.86 kB / 488.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.1431, allocations: 8 kB / 488.9 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.1432, allocations: 15.98 kB / 488.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.595e-05/0.1433, allocations: 23.97 kB / 488.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.1433, allocations: 8 kB / 488.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.969e-05/0.1434, allocations: 105.8 kB / 489 MB, free: 11.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1434, allocations: 0 / 489 MB, free: 11.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005968/0.144, allocations: 159.6 kB / 489.2 MB, free: 11.45 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 (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001256/0.1453, allocations: 1.04 MB / 490.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007858/0.1461, allocations: 304 kB / 490.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.1461, allocations: 0 / 490.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000398/0.1465, allocations: 192.6 kB / 490.7 MB, free: 9.898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.1468, allocations: 19.94 kB / 490.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.1491, allocations: 1.48 MB / 492.2 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004091/0.1495, allocations: 0.8065 MB / 493 MB, free: 7.488 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003129/0.1498, allocations: 101.7 kB / 493.1 MB, free: 7.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.15, allocations: 87.34 kB / 493.2 MB, free: 7.301 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.15, allocations: 4 kB / 493.2 MB, free: 7.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02072/0.1707, allocations: 6.532 MB / 499.7 MB, free: 1.027 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002258/0.171, allocations: 282.2 kB / 0.4883 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.085/2.256, allocations: 0 / 0.4883 GB, free: 0.6602 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW_res.mat does not exist to compare? outputFormat=mat