Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.001599/0.0016, allocations: 183.1 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.803/1.803, allocations: 205.2 MB / 218.9 MB, free: 9.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008178/0.0008177, allocations: 85.56 kB / 267 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4564/0.4564, allocations: 43.48 MB / 358.6 MB, free: 51.59 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.685e-05/5.753e-05, allocations: 4 kB / 425.4 MB, free: 8.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1677, allocations: 58.84 MB / 484.3 MB, free: 13.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.453/0.6207, allocations: 95.03 MB / 0.5657 GB, free: 10.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/0.6211, allocations: 97.47 kB / 0.5658 GB, free: 10.42 MB / 394.7 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.04723/0.6684, allocations: 11.32 MB / 0.5769 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.446e-06/0.6684, allocations: 0 / 0.5769 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.6685, allocations: 7.938 kB / 0.5769 GB, free: 0.7383 MB / 394.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.0009464/0.6694, allocations: 0.5836 MB / 0.5775 GB, free: 136 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.6695, allocations: 8.031 kB / 0.5775 GB, free: 128 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.514e-05/0.6695, allocations: 77.47 kB / 0.5775 GB, free: 64 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.96e-05/0.6696, allocations: 31.62 kB / 0.5776 GB, free: 32 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.6699, allocations: 242.9 kB / 0.5778 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/0.67, allocations: 20.03 kB / 0.5778 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.741e-05/0.67, allocations: 26.36 kB / 0.5778 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007639/0.6708, allocations: 441.1 kB / 0.5783 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.6708, allocations: 3.938 kB / 0.5783 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.059e-05/0.6709, allocations: 9.562 kB / 0.5783 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.194e-05/0.6709, allocations: 40.75 kB / 0.5783 GB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007352/0.6717, allocations: 0.522 MB / 0.5788 GB, free: 14.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.6736, allocations: 1.345 MB / 0.5801 GB, free: 13.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004968/0.6742, allocations: 270.6 kB / 0.5804 GB, free: 13.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.6743, allocations: 79.27 kB / 0.5805 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.602e-05/0.6743, allocations: 8 kB / 0.5805 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.6744, allocations: 38.42 kB / 0.5805 GB, free: 13.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 4.308e-06/0.6744, allocations: 4 kB / 0.5805 GB, free: 13.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.0004375/0.6748, allocations: 223.2 kB / 0.5807 GB, free: 13.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.6749, allocations: 55.41 kB / 0.5808 GB, free: 13.08 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.675, allocations: 129.4 kB / 0.5809 GB, free: 12.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.675, allocations: 33.52 kB / 0.5809 GB, free: 12.92 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.6752, allocations: 189.8 kB / 0.5811 GB, free: 12.74 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.008e-05/0.6752, allocations: 85.62 kB / 0.5812 GB, free: 12.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.262e-05/0.6753, allocations: 7.5 kB / 0.5812 GB, free: 12.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.6754, allocations: 326.1 kB / 0.5815 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.6755, allocations: 79.69 kB / 0.5816 GB, free: 12.28 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.6757, allocations: 154.8 kB / 0.5817 GB, free: 12.11 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.6759, allocations: 108.4 kB / 0.5819 GB, free: 12.02 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.6759, allocations: 0 / 0.5819 GB, free: 12.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004547/0.6764, allocations: 287.7 kB / 0.5821 GB, free: 11.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.6764, allocations: 8.344 kB / 0.5821 GB, free: 11.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.6764, allocations: 7.938 kB / 0.5821 GB, free: 11.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.6765, allocations: 8 kB / 0.5821 GB, free: 11.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006118/0.6771, allocations: 131.5 kB / 0.5823 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/0.6784, allocations: 2.366 MB / 0.5846 GB, free: 9.184 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000188/0.6786, allocations: 39.41 kB / 0.5846 GB, free: 9.148 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.6786, allocations: 19.62 kB / 0.5846 GB, free: 9.133 MB / 410.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.0001043/0.6787, allocations: 116.4 kB / 0.5848 GB, free: 9.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.967e-05/0.6788, allocations: 11.91 kB / 0.5848 GB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007077/0.6795, allocations: 342.5 kB / 0.5851 GB, free: 8.738 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.6795, allocations: 4 kB / 0.5851 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.6795, allocations: 0 / 0.5851 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.6795, allocations: 0 / 0.5851 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004063/0.6799, allocations: 349.2 kB / 0.5854 GB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.68, allocations: 0 / 0.5854 GB, free: 8.391 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004988/0.6805, allocations: 123.8 kB / 0.5855 GB, free: 8.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.6805, allocations: 0 / 0.5855 GB, free: 8.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.6805, allocations: 14 kB / 0.5856 GB, free: 8.262 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.6817, allocations: 2.36 MB / 0.5879 GB, free: 5.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6818, allocations: 0 / 0.5879 GB, free: 5.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004279/0.6822, allocations: 351.9 kB / 0.5882 GB, free: 5.504 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.527e-05/0.6823, allocations: 100.8 kB / 0.5883 GB, free: 5.387 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.852e-05/0.6823, allocations: 3.625 kB / 0.5883 GB, free: 5.387 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.6825, allocations: 19.44 kB / 0.5883 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.13e-05/0.6826, allocations: 23.03 kB / 0.5883 GB, free: 5.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.6826, allocations: 7.984 kB / 0.5883 GB, free: 5.344 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.897e-05/0.6827, allocations: 104.4 kB / 0.5884 GB, free: 5.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6827, allocations: 0 / 0.5884 GB, free: 5.25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007058/0.6834, allocations: 194.4 kB / 0.5886 GB, free: 5.07 MB / 410.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.001115/0.6845, allocations: 1.023 MB / 0.5896 GB, free: 4.066 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006626/0.6852, allocations: 249.9 kB / 0.5899 GB, free: 3.859 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6852, allocations: 0 / 0.5899 GB, free: 3.859 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003693/0.6856, allocations: 152.3 kB / 0.59 GB, free: 3.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.6858, allocations: 26.12 kB / 0.59 GB, free: 3.711 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001181/0.687, allocations: 0.5458 MB / 0.5906 GB, free: 3.176 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003514/0.6873, allocations: 0.8017 MB / 0.5914 GB, free: 2.352 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000323/0.6877, allocations: 105.8 kB / 0.5915 GB, free: 2.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001287/0.6878, allocations: 89.38 kB / 0.5915 GB, free: 2.219 MB / 410.7 MB Notification: Performance of SimCode: time 4.51e-07/0.6878, allocations: 0 / 0.5915 GB, free: 2.219 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.7101, allocations: 6.81 MB / 0.5982 GB, free: 11.5 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002341/0.7104, allocations: 230.9 kB / 0.5984 GB, free: 11.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.67, allocations: 0 / 0.5984 GB, free: 11.23 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW.fmu > ModelicaTest_3.2.3_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_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW_res.mat does not exist to compare? outputFormat=mat