Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_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.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_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.00216/0.00216, 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.086/2.086, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001195/0.001195, allocations: 88.69 kB / 262.1 MB, free: 13.89 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.3184/0.3184, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 3.031e-05/3.035e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.457/0.4571, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2564/0.7135, allocations: 109.7 MB / 0.5731 GB, free: 5.512 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003982/0.7139, allocations: 95.94 kB / 0.5732 GB, free: 5.418 MB / 411.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4955:11-4956:126:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4977:11-4978:120:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4937:11-4953:48:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4959:11-4975:59:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.1408/0.8548, allocations: 27.54 MB / 0.6001 GB, free: 9.551 MB / 443.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.8549, allocations: 0 / 0.6001 GB, free: 9.551 MB / 443.1 MB Notification: Performance of Transformations before backend: time 2.472e-05/0.8549, allocations: 8 kB / 0.6001 GB, free: 9.543 MB / 443.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002713/0.8576, allocations: 0.9041 MB / 0.601 GB, free: 8.594 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/0.8577, allocations: 8.031 kB / 0.601 GB, free: 8.586 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.8579, allocations: 79.02 kB / 0.6011 GB, free: 8.508 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008258/0.8588, allocations: 350.1 kB / 0.6014 GB, free: 8.125 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.764e-05/0.8588, allocations: 24 kB / 0.6014 GB, free: 8.102 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/0.859, allocations: 44 kB / 0.6015 GB, free: 8.059 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002777/0.8618, allocations: 1.218 MB / 0.6027 GB, free: 6.84 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002438/0.8643, allocations: 1.046 MB / 0.6037 GB, free: 5.785 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.708e-05/0.8643, allocations: 0 / 0.6037 GB, free: 5.785 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.907e-05/0.8644, allocations: 0 / 0.6037 GB, free: 5.785 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001433/0.8646, allocations: 77.91 kB / 0.6038 GB, free: 5.711 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007208/0.8718, allocations: 2.775 MB / 0.6065 GB, free: 2.797 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001205/0.8731, allocations: 391.5 kB / 0.6068 GB, free: 2.402 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.8734, allocations: 125.4 kB / 0.607 GB, free: 2.277 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.403e-05/0.8735, allocations: 4.281 kB / 0.607 GB, free: 2.273 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.8735, allocations: 38.84 kB / 0.607 GB, free: 2.227 MB / 443.1 MB Notification: Performance of pre-optimization done (n=34): time 5.591e-06/0.8735, allocations: 0 / 0.607 GB, free: 2.227 MB / 443.1 MB Notification: Performance of matching and sorting (n=34): time 0.000883/0.8744, allocations: 311.7 kB / 0.6073 GB, free: 1.918 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.8745, allocations: 55.41 kB / 0.6074 GB, free: 1.852 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002542/0.8747, allocations: 186.4 kB / 0.6075 GB, free: 1.66 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 3.714e-05/0.8748, allocations: 25.7 kB / 0.6076 GB, free: 1.629 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003216/0.8751, allocations: 448.6 kB / 0.608 GB, free: 1.184 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.8753, allocations: 114.3 kB / 0.6081 GB, free: 1.07 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.881e-05/0.8753, allocations: 0 / 0.6081 GB, free: 1.07 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.8755, allocations: 334.8 kB / 0.6084 GB, free: 0.7344 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.8758, allocations: 125.6 kB / 0.6085 GB, free: 0.6094 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000476/0.8763, allocations: 313.3 kB / 0.6088 GB, free: 220 kB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004494/0.8768, allocations: 191.9 kB / 0.609 GB, free: 28 kB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.8768, allocations: 4 kB / 0.609 GB, free: 24 kB / 443.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001196/0.878, allocations: 465.5 kB / 0.6095 GB, free: 15.56 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.878, allocations: 8 kB / 0.6095 GB, free: 15.55 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.8781, allocations: 4 kB / 0.6095 GB, free: 15.55 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.231e-05/0.8781, allocations: 12 kB / 0.6095 GB, free: 15.54 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.8795, allocations: 207.7 kB / 0.6097 GB, free: 15.34 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002175/0.8817, allocations: 3.001 MB / 0.6126 GB, free: 12.22 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005895/0.8824, allocations: 51.5 kB / 0.6127 GB, free: 12.17 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.367e-05/0.8825, allocations: 32 kB / 0.6127 GB, free: 12.14 MB / 459.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 6 (roughness,geometry[5],geometry[4],geometry[3],geometry[2],geometry[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002113/0.8827, allocations: 132.8 kB / 0.6128 GB, free: 12 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008076/0.8835, allocations: 309.4 kB / 0.6131 GB, free: 11.69 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.71e-05/0.8836, allocations: 19.81 kB / 0.6131 GB, free: 11.67 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/0.8855, allocations: 0.5156 MB / 0.6136 GB, free: 11.16 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.8855, allocations: 4 kB / 0.6136 GB, free: 11.15 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.8855, allocations: 7.984 kB / 0.6137 GB, free: 11.14 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.8855, allocations: 0 / 0.6137 GB, free: 11.14 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002255/0.8878, allocations: 0.9737 MB / 0.6146 GB, free: 10.1 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.8878, allocations: 4 kB / 0.6146 GB, free: 10.1 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.8891, allocations: 171.8 kB / 0.6148 GB, free: 9.93 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.571e-05/0.8891, allocations: 4 kB / 0.6148 GB, free: 9.926 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.265e-05/0.8891, allocations: 15.92 kB / 0.6148 GB, free: 9.91 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.8912, allocations: 2.973 MB / 0.6177 GB, free: 6.82 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.8913, allocations: 0 / 0.6177 GB, free: 6.82 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009712/0.8923, allocations: 0.5387 MB / 0.6182 GB, free: 6.191 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001038/0.8924, allocations: 96.86 kB / 0.6183 GB, free: 6.078 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.745e-05/0.8925, allocations: 11.94 kB / 0.6183 GB, free: 6.066 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003411/0.8928, allocations: 8 kB / 0.6183 GB, free: 6.059 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001186/0.893, allocations: 39.95 kB / 0.6184 GB, free: 6.02 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-05/0.893, allocations: 19.98 kB / 0.6184 GB, free: 6 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0001431/0.8932, allocations: 123.2 kB / 0.6185 GB, free: 5.879 MB / 459.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8932, allocations: 0 / 0.6185 GB, free: 5.879 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001605/0.8948, allocations: 358.6 kB / 0.6188 GB, free: 5.527 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002901/0.8977, allocations: 1.934 MB / 0.6207 GB, free: 3.512 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001736/0.8995, allocations: 397.3 kB / 0.6211 GB, free: 3.125 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.8996, allocations: 0 / 0.6211 GB, free: 3.125 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008718/0.9004, allocations: 216.2 kB / 0.6213 GB, free: 2.914 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.9008, allocations: 27.02 kB / 0.6213 GB, free: 2.887 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003361/0.9042, allocations: 1.086 MB / 0.6224 GB, free: 1.73 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000812/0.9051, allocations: 0.9914 MB / 0.6234 GB, free: 0.7148 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004601/0.9055, allocations: 207.4 kB / 0.6236 GB, free: 0.5117 MB / 459.1 MB Notification: Performance of SimCode: time 1.412e-06/0.9056, allocations: 4 kB / 0.6236 GB, free: 0.5078 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.414/4.32, allocations: 24.18 MB / 0.6472 GB, free: 138.4 MB / 475.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_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.Channel.dp_internalFlowOverall_DPMFLOW_res.mat does not exist to compare? outputFormat=mat