Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_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.General.dp_volumeFlowRate_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_volumeFlowRate_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_volumeFlowRate_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.001573/0.001573, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.133/2.133, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001168/0.001168, allocations: 99 kB / 270.9 MB, free: 8.371 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.5373/0.5373, allocations: 43.55 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006927/0.0006927, allocations: 11.98 kB / 431.5 MB, free: 6.039 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1651, allocations: 58.84 MB / 490.3 MB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5351/0.7003, allocations: 89.44 MB / 0.5662 GB, free: 13.06 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000386/0.7008, allocations: 98.25 kB / 0.5663 GB, free: 12.96 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:5587:11-5590:61:writable] Error: Type mismatch in binding rho = rho, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:5598:11-5601:59:writable] Error: Type mismatch in binding rho = rho, expected subtype of Real[3], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.03936/0.7401, allocations: 7.822 MB / 0.5739 GB, free: 5.164 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.7402, allocations: 4 kB / 0.5739 GB, free: 5.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.138e-05/0.7402, allocations: 4 kB / 0.5739 GB, free: 5.156 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001051/0.7413, allocations: 450.6 kB / 0.5744 GB, free: 4.672 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.7414, allocations: 8.031 kB / 0.5744 GB, free: 4.664 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.7415, allocations: 62.52 kB / 0.5744 GB, free: 4.594 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001366/0.7429, allocations: 87.12 kB / 0.5745 GB, free: 4.512 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.7434, allocations: 234 kB / 0.5747 GB, free: 4.246 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.7434, allocations: 9.484 kB / 0.5747 GB, free: 4.238 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/0.7435, allocations: 16 kB / 0.5748 GB, free: 4.223 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001195/0.7447, allocations: 322.1 kB / 0.5751 GB, free: 3.902 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.7447, allocations: 0 / 0.5751 GB, free: 3.902 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.926e-05/0.7448, allocations: 4 kB / 0.5751 GB, free: 3.898 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-05/0.7448, allocations: 17.02 kB / 0.5751 GB, free: 3.883 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/0.7464, allocations: 335.6 kB / 0.5754 GB, free: 3.555 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.749, allocations: 0.8522 MB / 0.5762 GB, free: 2.613 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/0.7505, allocations: 218.3 kB / 0.5764 GB, free: 2.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.7505, allocations: 4 kB / 0.5764 GB, free: 2.387 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.7506, allocations: 34.56 kB / 0.5765 GB, free: 2.344 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 3.126e-06/0.7506, allocations: 0 / 0.5765 GB, free: 2.344 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.002001/0.7526, allocations: 305.6 kB / 0.5768 GB, free: 2.039 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.7527, allocations: 51.41 kB / 0.5768 GB, free: 1.977 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.753, allocations: 173.5 kB / 0.577 GB, free: 1.801 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.386e-05/0.753, allocations: 25.7 kB / 0.577 GB, free: 1.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.7532, allocations: 205.8 kB / 0.5772 GB, free: 1.566 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.904e-05/0.7533, allocations: 39.41 kB / 0.5772 GB, free: 1.527 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.7533, allocations: 4 kB / 0.5773 GB, free: 1.523 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.7535, allocations: 318.8 kB / 0.5776 GB, free: 1.203 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00063/0.7541, allocations: 87.91 kB / 0.5776 GB, free: 1.117 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006529/0.7548, allocations: 153.5 kB / 0.5778 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006297/0.7554, allocations: 96.23 kB / 0.5779 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.7555, allocations: 0 / 0.5779 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.00152/0.757, allocations: 277.1 kB / 0.5781 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.757, allocations: 8 kB / 0.5781 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.7571, allocations: 4.219 kB / 0.5782 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.7571, allocations: 4 kB / 0.5782 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009026/0.758, allocations: 79.84 kB / 0.5782 GB, free: 492 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001382/0.7594, allocations: 1.786 MB / 0.58 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004372/0.7599, allocations: 31.8 kB / 0.58 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.7599, allocations: 11.98 kB / 0.58 GB, free: 14.58 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002272/0.7602, allocations: 145.7 kB / 0.5802 GB, free: 14.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.57e-05/0.7603, allocations: 27.94 kB / 0.5802 GB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001628/0.7619, allocations: 270.7 kB / 0.5804 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.8e-06/0.7619, allocations: 0 / 0.5804 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.7619, allocations: 0 / 0.5804 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.7619, allocations: 3.984 kB / 0.5804 GB, free: 14.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004937/0.7624, allocations: 257.5 kB / 0.5807 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.7625, allocations: 0 / 0.5807 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007657/0.7632, allocations: 67.91 kB / 0.5808 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.7633, allocations: 7.953 kB / 0.5808 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.446e-05/0.7633, allocations: 11.98 kB / 0.5808 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.7646, allocations: 1.782 MB / 0.5825 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.7647, allocations: 3.938 kB / 0.5825 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/0.7661, allocations: 319.3 kB / 0.5828 GB, free: 11.56 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.217e-05/0.7662, allocations: 93 kB / 0.5829 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.885e-05/0.7663, allocations: 3.953 kB / 0.5829 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003968/0.7667, allocations: 15.98 kB / 0.5829 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.487e-05/0.7668, allocations: 15.91 kB / 0.5829 GB, free: 11.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.7e-05/0.7669, allocations: 7.984 kB / 0.583 GB, free: 11.41 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001943/0.7671, allocations: 140.9 kB / 0.5831 GB, free: 11.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7671, allocations: 0 / 0.5831 GB, free: 11.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005878/0.7677, allocations: 75.83 kB / 0.5832 GB, free: 11.2 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002079/0.7698, allocations: 0.9076 MB / 0.584 GB, free: 10.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.7715, allocations: 240 kB / 0.5843 GB, free: 10.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.7715, allocations: 0 / 0.5843 GB, free: 10.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009226/0.7724, allocations: 123.8 kB / 0.5844 GB, free: 9.906 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.7727, allocations: 11.95 kB / 0.5844 GB, free: 9.895 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004572/0.7773, allocations: 2.287 MB / 0.5866 GB, free: 7.547 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004705/0.7778, allocations: 0.7475 MB / 0.5874 GB, free: 6.773 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.7781, allocations: 59.38 kB / 0.5874 GB, free: 6.715 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7781, allocations: 0 / 0.5874 GB, free: 6.715 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.019/3.797, allocations: 5.781 MB / 0.5931 GB, free: 0.9453 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_volumeFlowRate_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_volumeFlowRate_DPMFLOW.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_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.General.dp_volumeFlowRate_DPMFLOW_res.mat does not exist to compare? outputFormat=mat