Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_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_3_2_3_cpp_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 3.2.3+maint.om/package.mo): time 0.001524/0.001524, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001125, allocations: 80.92 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2996/0.2996, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.962e-05/2.962e-05, allocations: 224 / 418.3 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.4161, allocations: 58.85 MB / 477.2 MB, free: 5.184 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1834/0.5996, allocations: 94.38 MB / 0.5582 GB, free: 4.809 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003639/0.6, allocations: 95.92 kB / 0.5583 GB, free: 4.715 MB / 395.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:6216:11-6222: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 3.2.3+maint.om/Fluid/Dissipation.mo:6224:11-6227: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 3.2.3+maint.om/Fluid/Dissipation.mo:6230:11-6236: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 3.2.3+maint.om/Fluid/Dissipation.mo:6238:11-6241: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.05757/0.6576, allocations: 11.22 MB / 0.5692 GB, free: 9.422 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.6576, allocations: 0 / 0.5692 GB, free: 9.422 MB / 411.1 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.6577, allocations: 8 kB / 0.5692 GB, free: 9.414 MB / 411.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.00135/0.659, allocations: 0.5769 MB / 0.5698 GB, free: 8.793 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.6591, allocations: 8.031 kB / 0.5698 GB, free: 8.785 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.566e-05/0.6592, allocations: 35.58 kB / 0.5698 GB, free: 8.75 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.6596, allocations: 242.6 kB / 0.5701 GB, free: 8.473 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.6597, allocations: 8 kB / 0.5701 GB, free: 8.465 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.266e-05/0.6597, allocations: 16 kB / 0.5701 GB, free: 8.449 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009426/0.6607, allocations: 409.3 kB / 0.5705 GB, free: 8.051 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008956/0.6616, allocations: 394 kB / 0.5709 GB, free: 7.656 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.6616, allocations: 4 kB / 0.5709 GB, free: 7.652 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.089e-05/0.6617, allocations: 4 kB / 0.5709 GB, free: 7.648 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.158e-05/0.6618, allocations: 36.75 kB / 0.5709 GB, free: 7.613 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.6648, allocations: 1.27 MB / 0.5721 GB, free: 6.234 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007491/0.6655, allocations: 261.3 kB / 0.5724 GB, free: 5.973 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.6658, allocations: 76.81 kB / 0.5725 GB, free: 5.895 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.6658, allocations: 12.38 kB / 0.5725 GB, free: 5.883 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/0.6659, allocations: 38.5 kB / 0.5725 GB, free: 5.836 MB / 411.1 MB Notification: Performance of pre-optimization done (n=25): time 2.635e-06/0.6659, allocations: 0 / 0.5725 GB, free: 5.836 MB / 411.1 MB Notification: Performance of matching and sorting (n=25): time 0.0006087/0.6665, allocations: 209.8 kB / 0.5727 GB, free: 5.625 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.6666, allocations: 55.41 kB / 0.5728 GB, free: 5.559 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001589/0.6667, allocations: 121.2 kB / 0.5729 GB, free: 5.43 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.36e-05/0.6668, allocations: 25.7 kB / 0.5729 GB, free: 5.398 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.6669, allocations: 258.6 kB / 0.5732 GB, free: 5.145 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.839e-05/0.6671, allocations: 82.75 kB / 0.5732 GB, free: 5.062 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.049e-05/0.6671, allocations: 0 / 0.5732 GB, free: 5.062 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.6672, allocations: 330.8 kB / 0.5735 GB, free: 4.73 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.6674, allocations: 71.95 kB / 0.5736 GB, free: 4.66 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002667/0.6677, allocations: 150.1 kB / 0.5738 GB, free: 4.477 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.6681, allocations: 100.1 kB / 0.5739 GB, free: 4.379 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.6681, allocations: 3.938 kB / 0.5739 GB, free: 4.375 MB / 411.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007034/0.6688, allocations: 273 kB / 0.5741 GB, free: 4.102 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.6688, allocations: 8 kB / 0.5741 GB, free: 4.094 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.6689, allocations: 0 / 0.5741 GB, free: 4.094 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.6689, allocations: 4 kB / 0.5741 GB, free: 4.09 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001105/0.67, allocations: 131.8 kB / 0.5743 GB, free: 3.961 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00166/0.6717, allocations: 2.368 MB / 0.5766 GB, free: 1.5 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003446/0.6721, allocations: 27.72 kB / 0.5766 GB, free: 1.473 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.383e-05/0.6721, allocations: 19.98 kB / 0.5766 GB, free: 1.453 MB / 411.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 () * 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.0001496/0.6723, allocations: 112.9 kB / 0.5767 GB, free: 1.336 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005397/0.6729, allocations: 205.4 kB / 0.5769 GB, free: 1.129 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.683e-05/0.6729, allocations: 11.81 kB / 0.5769 GB, free: 1.117 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.674, allocations: 326 kB / 0.5772 GB, free: 0.793 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.674, allocations: 4 kB / 0.5772 GB, free: 0.7891 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.6741, allocations: 4 kB / 0.5772 GB, free: 0.7852 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.6741, allocations: 3.984 kB / 0.5773 GB, free: 0.7812 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004999/0.6746, allocations: 269.8 kB / 0.5775 GB, free: 492 kB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.816e-05/0.6746, allocations: 0 / 0.5775 GB, free: 492 kB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009771/0.6756, allocations: 115.9 kB / 0.5776 GB, free: 376 kB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.677e-06/0.6756, allocations: 0 / 0.5776 GB, free: 376 kB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.6757, allocations: 4 kB / 0.5776 GB, free: 372 kB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.6773, allocations: 2.371 MB / 0.5799 GB, free: 13.9 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.166e-06/0.6774, allocations: 3.984 kB / 0.5799 GB, free: 13.89 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006444/0.678, allocations: 319.3 kB / 0.5802 GB, free: 13.57 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.576e-05/0.6781, allocations: 96.86 kB / 0.5803 GB, free: 13.45 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.509e-05/0.6782, allocations: 3.984 kB / 0.5803 GB, free: 13.45 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002727/0.6784, allocations: 12.03 kB / 0.5804 GB, free: 13.44 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.879e-05/0.6785, allocations: 23.92 kB / 0.5804 GB, free: 13.41 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.6786, allocations: 15.98 kB / 0.5804 GB, free: 13.4 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.6787, allocations: 99.2 kB / 0.5805 GB, free: 13.3 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6787, allocations: 0 / 0.5805 GB, free: 13.3 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0008834/0.6796, allocations: 175.5 kB / 0.5807 GB, free: 13.13 MB / 427.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 () * 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.001534/0.6812, allocations: 1.02 MB / 0.5817 GB, free: 12.09 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0009433/0.6822, allocations: 244.7 kB / 0.5819 GB, free: 11.85 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.6822, allocations: 0 / 0.5819 GB, free: 11.85 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005845/0.6828, allocations: 131.9 kB / 0.582 GB, free: 11.72 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.683, allocations: 15.89 kB / 0.582 GB, free: 11.7 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.6847, allocations: 0.5361 MB / 0.5825 GB, free: 11.12 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005085/0.6852, allocations: 0.8062 MB / 0.5833 GB, free: 10.29 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.6855, allocations: 99.39 kB / 0.5834 GB, free: 10.19 MB / 427.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6855, allocations: 0 / 0.5834 GB, free: 10.19 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.025/3.71, allocations: 10.07 MB / 0.5933 GB, free: 128 kB / 427.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW_res.mat does not exist to compare? outputFormat=mat