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.001205/0.001205, allocations: 177.4 kB / 17.06 MB, free: 5.094 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.393/1.393, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008799/0.0008799, allocations: 95.28 kB / 292.1 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3725/0.3725, allocations: 44.21 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003405, allocations: 8 kB / 460 MB, free: 1.398 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.3747, allocations: 61.89 MB / 0.5097 GB, free: 38.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1423/0.5171, allocations: 96.29 MB / 0.6037 GB, free: 14.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.5174, allocations: 111.9 kB / 0.6038 GB, free: 14.7 MB / 426.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.03532/0.5527, allocations: 11.57 MB / 0.6151 GB, free: 3.051 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.5528, allocations: 0 / 0.6151 GB, free: 3.051 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.053e-05/0.5528, allocations: 4 kB / 0.6151 GB, free: 3.047 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.001364/0.5542, allocations: 0.5939 MB / 0.6157 GB, free: 2.406 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.546e-05/0.5543, allocations: 15.97 kB / 0.6157 GB, free: 2.391 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000117/0.5544, allocations: 74.53 kB / 0.6158 GB, free: 2.309 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.482e-05/0.5545, allocations: 35.61 kB / 0.6158 GB, free: 2.273 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.5548, allocations: 234.7 kB / 0.616 GB, free: 2.004 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.5548, allocations: 24.64 kB / 0.616 GB, free: 1.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.099e-05/0.5549, allocations: 24 kB / 0.6161 GB, free: 1.957 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007951/0.5557, allocations: 471.9 kB / 0.6165 GB, free: 1.488 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.5557, allocations: 0 / 0.6165 GB, free: 1.488 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.032e-05/0.5558, allocations: 8 kB / 0.6165 GB, free: 1.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.698e-05/0.5558, allocations: 44.97 kB / 0.6166 GB, free: 1.438 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008372/0.5567, allocations: 0.5543 MB / 0.6171 GB, free: 0.8828 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001975/0.5586, allocations: 1.349 MB / 0.6184 GB, free: 15.42 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005776/0.5592, allocations: 287.5 kB / 0.6187 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.219e-05/0.5593, allocations: 4 kB / 0.6187 GB, free: 15.12 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.5593, allocations: 46.92 kB / 0.6187 GB, free: 15.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 1.513e-06/0.5593, allocations: 0 / 0.6187 GB, free: 15.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.0007696/0.5601, allocations: 347 kB / 0.6191 GB, free: 14.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.5602, allocations: 55.41 kB / 0.6191 GB, free: 14.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.5603, allocations: 131.4 kB / 0.6193 GB, free: 14.52 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.5604, allocations: 29.7 kB / 0.6193 GB, free: 14.49 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.5605, allocations: 200 kB / 0.6195 GB, free: 14.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.992e-05/0.5606, allocations: 86.75 kB / 0.6196 GB, free: 14.2 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.5606, allocations: 8 kB / 0.6196 GB, free: 14.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.5607, allocations: 322.8 kB / 0.6199 GB, free: 13.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002004/0.561, allocations: 91.92 kB / 0.62 GB, free: 13.78 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.5612, allocations: 178.1 kB / 0.6201 GB, free: 13.57 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.5615, allocations: 120.7 kB / 0.6202 GB, free: 13.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.5615, allocations: 4 kB / 0.6202 GB, free: 13.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0005917/0.5621, allocations: 329 kB / 0.6206 GB, free: 13.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.5621, allocations: 8 kB / 0.6206 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.5621, allocations: 0 / 0.6206 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.5622, allocations: 8.297 kB / 0.6206 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005832/0.5628, allocations: 135.8 kB / 0.6207 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.5641, allocations: 2.367 MB / 0.623 GB, free: 10.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.5643, allocations: 31.69 kB / 0.6231 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.5643, allocations: 20.27 kB / 0.6231 GB, free: 10.46 MB / 442.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 () * 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.0001906/0.5645, allocations: 178.2 kB / 0.6232 GB, free: 10.28 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.237e-05/0.5645, allocations: 15.81 kB / 0.6233 GB, free: 10.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008174/0.5654, allocations: 384.5 kB / 0.6236 GB, free: 9.883 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.5654, allocations: 4 kB / 0.6236 GB, free: 9.879 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.5654, allocations: 0 / 0.6236 GB, free: 9.879 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.5654, allocations: 11.92 kB / 0.6236 GB, free: 9.867 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004069/0.5658, allocations: 333.3 kB / 0.624 GB, free: 9.492 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.5658, allocations: 7.938 kB / 0.624 GB, free: 9.484 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/0.5663, allocations: 119.9 kB / 0.6241 GB, free: 9.367 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.5664, allocations: 0 / 0.6241 GB, free: 9.367 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.5664, allocations: 11.94 kB / 0.6241 GB, free: 9.355 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.5676, allocations: 2.36 MB / 0.6264 GB, free: 6.902 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5676, allocations: 0 / 0.6264 GB, free: 6.902 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005414/0.5681, allocations: 379.6 kB / 0.6268 GB, free: 6.516 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.341e-05/0.5682, allocations: 96.86 kB / 0.6268 GB, free: 6.402 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.5682, allocations: 11.98 kB / 0.6269 GB, free: 6.391 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/0.5684, allocations: 12 kB / 0.6269 GB, free: 6.379 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.564e-05/0.5685, allocations: 19.97 kB / 0.6269 GB, free: 6.359 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.5685, allocations: 15.98 kB / 0.6269 GB, free: 6.344 MB / 442.7 MB Notification: Performance of sorting global known variables: time 6.182e-05/0.5686, allocations: 95.27 kB / 0.627 GB, free: 6.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5686, allocations: 0 / 0.627 GB, free: 6.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006934/0.5693, allocations: 187.5 kB / 0.6272 GB, free: 6.066 MB / 442.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 () * 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.001308/0.5706, allocations: 1.077 MB / 0.6282 GB, free: 4.961 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007647/0.5714, allocations: 288 kB / 0.6285 GB, free: 4.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5714, allocations: 0 / 0.6285 GB, free: 4.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004026/0.5718, allocations: 172.6 kB / 0.6287 GB, free: 4.512 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.572, allocations: 4 kB / 0.6287 GB, free: 4.508 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002949/0.575, allocations: 3.178 MB / 0.6318 GB, free: 1.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.5754, allocations: 0.8026 MB / 0.6326 GB, free: 408 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003156/0.5758, allocations: 101.7 kB / 0.6327 GB, free: 308 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.5759, allocations: 90.08 kB / 0.6327 GB, free: 220 kB / 442.7 MB Notification: Performance of SimCode: time 7.71e-07/0.5759, allocations: 0 / 0.6327 GB, free: 220 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.5964, allocations: 6.643 MB / 0.6392 GB, free: 9.828 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002531/0.5967, allocations: 260.2 kB / 0.6395 GB, free: 9.469 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.413, allocations: 0 / 0.6395 GB, free: 9.469 MB / 458.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