Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_turbulent_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01005/0.01005, allocations: 167.1 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.957/1.957, allocations: 170.8 MB / 186.6 MB, free: 1.152 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002763/0.002763, allocations: 103.4 kB / 226.2 MB, free: 10.12 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5022/0.5022, allocations: 38.05 MB / 303.7 MB, free: 42.48 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004734/0.0004734, allocations: 16 kB / 363 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1123, allocations: 48.71 MB / 411.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4462/0.5585, allocations: 83.58 MB / 495.3 MB, free: 4.191 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003938/0.559, allocations: 93.75 kB / 495.4 MB, free: 4.137 MB / 330.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.05495/0.614, allocations: 11.27 MB / 0.4948 GB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.614, allocations: 0 / 0.4948 GB, free: 10.49 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.614, allocations: 4 kB / 0.4948 GB, free: 10.48 MB / 346.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.001339/0.6154, allocations: 0.5918 MB / 0.4954 GB, free: 9.867 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.6155, allocations: 12.03 kB / 0.4954 GB, free: 9.855 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.6156, allocations: 74.97 kB / 0.4955 GB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.582e-05/0.6157, allocations: 31.62 kB / 0.4955 GB, free: 9.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003893/0.6161, allocations: 244.5 kB / 0.4957 GB, free: 9.492 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.6161, allocations: 21.84 kB / 0.4957 GB, free: 9.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.21e-05/0.6162, allocations: 26.8 kB / 0.4958 GB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.6174, allocations: 464.9 kB / 0.4962 GB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.6174, allocations: 0 / 0.4962 GB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.262e-05/0.6175, allocations: 10.88 kB / 0.4962 GB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.423e-05/0.6176, allocations: 44.34 kB / 0.4963 GB, free: 9.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.619, allocations: 0.5535 MB / 0.4968 GB, free: 8.648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003044/0.6221, allocations: 1.365 MB / 0.4981 GB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.6231, allocations: 286.5 kB / 0.4984 GB, free: 7.094 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.145e-05/0.6232, allocations: 15.55 kB / 0.4984 GB, free: 7.082 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.6232, allocations: 34.56 kB / 0.4985 GB, free: 7.039 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 3.416e-06/0.6232, allocations: 0 / 0.4985 GB, free: 7.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.001277/0.6245, allocations: 337.4 kB / 0.4988 GB, free: 6.758 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.6246, allocations: 63.33 kB / 0.4988 GB, free: 6.684 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.6248, allocations: 130.3 kB / 0.499 GB, free: 6.559 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.6248, allocations: 28.02 kB / 0.499 GB, free: 6.527 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.625, allocations: 190.2 kB / 0.4992 GB, free: 6.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.6251, allocations: 89.48 kB / 0.4993 GB, free: 6.273 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.6251, allocations: 3.25 kB / 0.4993 GB, free: 6.273 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.6253, allocations: 327.5 kB / 0.4996 GB, free: 5.953 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.6257, allocations: 94.05 kB / 0.4997 GB, free: 5.875 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004318/0.6261, allocations: 180 kB / 0.4998 GB, free: 5.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004121/0.6265, allocations: 113.8 kB / 0.4999 GB, free: 5.598 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.842e-06/0.6266, allocations: 4 kB / 0.4999 GB, free: 5.594 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001069/0.6276, allocations: 337.8 kB / 0.5003 GB, free: 5.309 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.6277, allocations: 8 kB / 0.5003 GB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.6277, allocations: 0 / 0.5003 GB, free: 5.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/0.6277, allocations: 7.984 kB / 0.5003 GB, free: 5.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001099/0.6288, allocations: 136.2 kB / 0.5004 GB, free: 5.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/0.6306, allocations: 2.361 MB / 0.5027 GB, free: 2.723 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003593/0.631, allocations: 31.61 kB / 0.5028 GB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.6311, allocations: 13.75 kB / 0.5028 GB, free: 2.684 MB / 346.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.0003183/0.6314, allocations: 189.8 kB / 0.5029 GB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.085e-05/0.6315, allocations: 15.75 kB / 0.503 GB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001447/0.6329, allocations: 384.5 kB / 0.5033 GB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.633, allocations: 4 kB / 0.5033 GB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.633, allocations: 0 / 0.5033 GB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.633, allocations: 0 / 0.5033 GB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006006/0.6336, allocations: 342.5 kB / 0.5037 GB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.6336, allocations: 0 / 0.5037 GB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009838/0.6346, allocations: 127.4 kB / 0.5038 GB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.6346, allocations: 0 / 0.5038 GB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.279e-05/0.6347, allocations: 11.36 kB / 0.5038 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00174/0.6364, allocations: 2.354 MB / 0.5061 GB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6365, allocations: 4.219 kB / 0.5061 GB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.6375, allocations: 380.1 kB / 0.5065 GB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.402e-05/0.6376, allocations: 88.95 kB / 0.5065 GB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.423e-05/0.6377, allocations: 3.625 kB / 0.5065 GB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/0.6379, allocations: 22.61 kB / 0.5066 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.907e-05/0.638, allocations: 23.97 kB / 0.5066 GB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.6381, allocations: 15.38 kB / 0.5066 GB, free: 14.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001073/0.6382, allocations: 104.4 kB / 0.5067 GB, free: 14.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6382, allocations: 0 / 0.5067 GB, free: 14.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009161/0.6391, allocations: 189.7 kB / 0.5069 GB, free: 14.51 MB / 362.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.00205/0.6412, allocations: 1.069 MB / 0.5079 GB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.6426, allocations: 297 kB / 0.5082 GB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.6426, allocations: 0 / 0.5082 GB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008037/0.6434, allocations: 169.8 kB / 0.5084 GB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.6437, allocations: 11.44 kB / 0.5084 GB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004417/0.6481, allocations: 3.154 MB / 0.5115 GB, free: 9.938 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005495/0.6487, allocations: 0.8176 MB / 0.5123 GB, free: 9.102 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005773/0.6493, allocations: 97.73 kB / 0.5124 GB, free: 9.004 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001959/0.6495, allocations: 88.39 kB / 0.5124 GB, free: 8.973 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/0.6495, allocations: 4 kB / 0.5124 GB, free: 8.969 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03413/0.6837, allocations: 6.64 MB / 0.5189 GB, free: 2.449 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003867/0.6841, allocations: 251.6 kB / 0.5192 GB, free: 2.098 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.985/3.669, allocations: 0 / 0.5192 GB, free: 2.098 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW_res.mat does not exist to compare? outputFormat=mat