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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 221.3 MB / 236 MB, free: 2.984 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008663/0.0008662, allocations: 91.05 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2153/0.2153, allocations: 44.15 MB / 382 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.745e-05/2.763e-05, allocations: 4.219 kB / 452 MB, free: 9.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.151, allocations: 61.91 MB / 0.5018 GB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4933/0.6444, allocations: 96.21 MB / 0.5958 GB, free: 9.012 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004552/0.645, allocations: 99.92 kB / 0.5959 GB, free: 8.914 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:6132:11-6138:61:writable] Error: Type mismatch in binding d_hyd = d_hyd, expected subtype of Real[4], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:6140:11-6143:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:6146:11-6152:59:writable] Error: Type mismatch in binding d_hyd = d_hyd, expected subtype of Real[4], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:6154:11-6157:67:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.0366/0.6816, allocations: 11.55 MB / 0.6072 GB, free: 13.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.6817, allocations: 0 / 0.6072 GB, free: 13.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.6817, allocations: 8 kB / 0.6072 GB, free: 13.29 MB / 426.7 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.001077/0.6828, allocations: 0.5685 MB / 0.6077 GB, free: 12.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.6828, allocations: 8.031 kB / 0.6077 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.683, allocations: 82.5 kB / 0.6078 GB, free: 12.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.327e-05/0.683, allocations: 31.56 kB / 0.6078 GB, free: 12.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.6834, allocations: 246.6 kB / 0.6081 GB, free: 12.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.6834, allocations: 24.78 kB / 0.6081 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.11e-05/0.6835, allocations: 27.98 kB / 0.6081 GB, free: 12.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006754/0.6842, allocations: 447.5 kB / 0.6085 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.6842, allocations: 0 / 0.6085 GB, free: 11.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.6842, allocations: 11.98 kB / 0.6086 GB, free: 11.76 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.375e-05/0.6843, allocations: 44.75 kB / 0.6086 GB, free: 11.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006831/0.685, allocations: 0.5145 MB / 0.6091 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.687, allocations: 1.337 MB / 0.6104 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000503/0.6875, allocations: 268.5 kB / 0.6107 GB, free: 9.48 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/0.6877, allocations: 85.25 kB / 0.6107 GB, free: 9.395 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.6877, allocations: 12.31 kB / 0.6108 GB, free: 9.383 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.6877, allocations: 38.52 kB / 0.6108 GB, free: 9.336 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 2.374e-06/0.6878, allocations: 0 / 0.6108 GB, free: 9.336 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.0004474/0.6882, allocations: 225.3 kB / 0.611 GB, free: 9.109 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.6883, allocations: 55.41 kB / 0.6111 GB, free: 9.043 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.6884, allocations: 122.2 kB / 0.6112 GB, free: 8.914 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.6884, allocations: 33.7 kB / 0.6112 GB, free: 8.875 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.6885, allocations: 191.8 kB / 0.6114 GB, free: 8.68 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.219e-05/0.6886, allocations: 86.73 kB / 0.6115 GB, free: 8.594 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.48e-05/0.6886, allocations: 8 kB / 0.6115 GB, free: 8.586 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.6888, allocations: 334.8 kB / 0.6118 GB, free: 8.25 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.689, allocations: 71.83 kB / 0.6119 GB, free: 8.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.6891, allocations: 154.2 kB / 0.612 GB, free: 7.992 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.6893, allocations: 100.1 kB / 0.6121 GB, free: 7.895 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.6893, allocations: 4 kB / 0.6121 GB, free: 7.891 MB / 426.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004386/0.6898, allocations: 293.1 kB / 0.6124 GB, free: 7.598 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.6898, allocations: 9.562 kB / 0.6124 GB, free: 7.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.6898, allocations: 3.953 kB / 0.6124 GB, free: 7.586 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.6898, allocations: 8 kB / 0.6124 GB, free: 7.578 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005934/0.6904, allocations: 132.2 kB / 0.6125 GB, free: 7.449 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.6918, allocations: 2.364 MB / 0.6149 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/0.692, allocations: 35.67 kB / 0.6149 GB, free: 4.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.692, allocations: 20.91 kB / 0.6149 GB, free: 4.938 MB / 426.7 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 () * 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.0001313/0.6922, allocations: 125.1 kB / 0.615 GB, free: 4.809 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.6922, allocations: 15.91 kB / 0.615 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007603/0.693, allocations: 343.3 kB / 0.6154 GB, free: 4.449 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.693, allocations: 4 kB / 0.6154 GB, free: 4.445 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.693, allocations: 0 / 0.6154 GB, free: 4.445 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.693, allocations: 3.984 kB / 0.6154 GB, free: 4.441 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004223/0.6934, allocations: 337.2 kB / 0.6157 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.6935, allocations: 7.938 kB / 0.6157 GB, free: 4.055 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005102/0.694, allocations: 119.8 kB / 0.6158 GB, free: 3.938 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.694, allocations: 4 kB / 0.6158 GB, free: 3.934 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.417e-05/0.694, allocations: 11.98 kB / 0.6158 GB, free: 3.922 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.6953, allocations: 2.352 MB / 0.6181 GB, free: 1.477 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.6953, allocations: 0 / 0.6181 GB, free: 1.477 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004167/0.6957, allocations: 351.5 kB / 0.6185 GB, free: 1.117 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.993e-05/0.6958, allocations: 96.86 kB / 0.6186 GB, free: 1.004 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.6958, allocations: 8.188 kB / 0.6186 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001559/0.696, allocations: 19.98 kB / 0.6186 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.936e-05/0.696, allocations: 19.97 kB / 0.6186 GB, free: 0.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.872e-05/0.6961, allocations: 11.94 kB / 0.6186 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.482e-05/0.6962, allocations: 102.2 kB / 0.6187 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6962, allocations: 0 / 0.6187 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006973/0.6969, allocations: 183.5 kB / 0.6189 GB, free: 0.668 MB / 426.7 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 () * 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.001147/0.698, allocations: 1.042 MB / 0.6199 GB, free: 15.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006025/0.6986, allocations: 251.8 kB / 0.6202 GB, free: 15.36 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6987, allocations: 0 / 0.6202 GB, free: 15.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000359/0.699, allocations: 152.3 kB / 0.6203 GB, free: 15.21 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.6992, allocations: 8.688 kB / 0.6203 GB, free: 15.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.7003, allocations: 0.5414 MB / 0.6208 GB, free: 14.62 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.7007, allocations: 0.8099 MB / 0.6216 GB, free: 13.79 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002983/0.701, allocations: 101.8 kB / 0.6217 GB, free: 13.69 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001363/0.7011, allocations: 91.39 kB / 0.6218 GB, free: 13.6 MB / 442.7 MB Notification: Performance of SimCode: time 9.42e-07/0.7011, allocations: 0 / 0.6218 GB, free: 13.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02108/0.7222, allocations: 6.786 MB / 0.6284 GB, free: 7.031 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.7225, allocations: 245.5 kB / 0.6287 GB, free: 6.734 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.588, allocations: 11.56 kB / 0.6287 GB, free: 6.727 MB / 442.7 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