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_nominalPressureLossLawDensity_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_nominalPressureLossLawDensity_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_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.002147/0.002153, 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.186/2.186, 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.001103/0.001103, allocations: 88.94 kB / 262.1 MB, free: 13.87 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.3372/0.3372, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.804e-05/1.814e-05, allocations: 224 / 418.4 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.4308, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1957/0.6265, allocations: 92.17 MB / 0.556 GB, free: 7.012 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004869/0.627, allocations: 99.92 kB / 0.5561 GB, free: 6.914 MB / 395.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:5367:11-5379:61:writable] Error: Type mismatch in binding A_cross = A_cross, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:5381:11-5382:129:writable] Error: Type mismatch in binding zeta_TOT = zeta_TOT, expected subtype of Real[3], got type (type .Modelica.Icons.TypeReal bc:Real). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:5385:11-5397:67:writable] Error: Type mismatch in binding A_cross = A_cross, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:5399:11-5400:123:writable] Error: Type mismatch in binding zeta_TOT = zeta_TOT, expected subtype of Real[3], got type (type .Modelica.Icons.TypeReal bc:Real). Notification: Performance of FrontEnd - DAE generated: time 0.05261/0.6797, allocations: 8.834 MB / 0.5648 GB, free: 13.96 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6797, allocations: 0 / 0.5648 GB, free: 13.96 MB / 411.1 MB Notification: Performance of Transformations before backend: time 1.828e-05/0.6798, allocations: 4 kB / 0.5648 GB, free: 13.96 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: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.001147/0.6809, allocations: 0.5147 MB / 0.5653 GB, free: 13.4 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/0.681, allocations: 12.03 kB / 0.5653 GB, free: 13.39 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.6812, allocations: 31.62 kB / 0.5653 GB, free: 13.36 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005545/0.6817, allocations: 246.5 kB / 0.5655 GB, free: 13.07 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/0.6818, allocations: 8 kB / 0.5655 GB, free: 13.07 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.701e-05/0.6819, allocations: 20 kB / 0.5656 GB, free: 13.05 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001231/0.6831, allocations: 381.4 kB / 0.5659 GB, free: 12.67 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.6844, allocations: 405.3 kB / 0.5663 GB, free: 12.27 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.6844, allocations: 0 / 0.5663 GB, free: 12.27 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.585e-05/0.6845, allocations: 0 / 0.5663 GB, free: 12.27 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.791e-05/0.6846, allocations: 36.69 kB / 0.5663 GB, free: 12.23 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003282/0.6879, allocations: 1.124 MB / 0.5674 GB, free: 11.02 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.6882, allocations: 70.5 kB / 0.5675 GB, free: 10.94 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.6884, allocations: 28.78 kB / 0.5675 GB, free: 10.91 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.6884, allocations: 4.156 kB / 0.5675 GB, free: 10.91 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.6885, allocations: 34.55 kB / 0.5676 GB, free: 10.86 MB / 411.1 MB Notification: Performance of pre-optimization done (n=7): time 3.666e-06/0.6885, allocations: 0 / 0.5676 GB, free: 10.86 MB / 411.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005011/0.689, allocations: 93.56 kB / 0.5677 GB, free: 10.77 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.6891, allocations: 55.34 kB / 0.5677 GB, free: 10.7 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003144/0.6894, allocations: 145.4 kB / 0.5679 GB, free: 10.55 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.355e-05/0.6895, allocations: 29.7 kB / 0.5679 GB, free: 10.51 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003073/0.6898, allocations: 286 kB / 0.5682 GB, free: 10.23 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.942e-05/0.6899, allocations: 27.64 kB / 0.5682 GB, free: 10.2 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.958e-05/0.6899, allocations: 0 / 0.5682 GB, free: 10.2 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.6902, allocations: 322.8 kB / 0.5685 GB, free: 9.875 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.6904, allocations: 31.98 kB / 0.5685 GB, free: 9.844 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.6906, allocations: 159 kB / 0.5687 GB, free: 9.633 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/0.6908, allocations: 76.3 kB / 0.5687 GB, free: 9.559 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.6908, allocations: 0 / 0.5687 GB, free: 9.559 MB / 411.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004791/0.6913, allocations: 185.7 kB / 0.5689 GB, free: 9.371 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.6914, allocations: 11.19 kB / 0.5689 GB, free: 9.363 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.6914, allocations: 8 kB / 0.5689 GB, free: 9.355 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.478e-05/0.6914, allocations: 7.984 kB / 0.5689 GB, free: 9.348 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005942/0.692, allocations: 87.89 kB / 0.569 GB, free: 9.262 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/0.6933, allocations: 1.785 MB / 0.5708 GB, free: 7.406 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.6936, allocations: 27.77 kB / 0.5708 GB, free: 7.379 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.532e-05/0.6937, allocations: 12 kB / 0.5708 GB, free: 7.367 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 (dp_IN_con[3].target,dp_IN_con[2].target,dp_IN_con[1].target,m_flow_IN_con[3].target,m_flow_IN_con[2].target,m_flow_IN_con[1].target,NominalMassFlowRate) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 22 * 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.0001625/0.6939, allocations: 121.1 kB / 0.5709 GB, free: 7.242 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002479/0.6941, allocations: 101.5 kB / 0.571 GB, free: 7.137 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.68e-05/0.6942, allocations: 11.91 kB / 0.571 GB, free: 7.125 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006673/0.6949, allocations: 165.9 kB / 0.5712 GB, free: 6.961 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.6949, allocations: 0 / 0.5712 GB, free: 6.961 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.6949, allocations: 0 / 0.5712 GB, free: 6.961 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.6949, allocations: 0 / 0.5712 GB, free: 6.961 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003984/0.6953, allocations: 246 kB / 0.5714 GB, free: 6.684 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.6953, allocations: 0 / 0.5714 GB, free: 6.684 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004199/0.6958, allocations: 55.95 kB / 0.5715 GB, free: 6.629 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.6958, allocations: 0 / 0.5715 GB, free: 6.629 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.6958, allocations: 4 kB / 0.5715 GB, free: 6.625 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.697, allocations: 1.777 MB / 0.5732 GB, free: 4.777 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.867e-06/0.6971, allocations: 8.203 kB / 0.5732 GB, free: 4.77 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.6974, allocations: 191.4 kB / 0.5734 GB, free: 4.566 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.884e-05/0.6975, allocations: 81.02 kB / 0.5735 GB, free: 4.469 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.6975, allocations: 7.984 kB / 0.5735 GB, free: 4.461 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.6977, allocations: 7.938 kB / 0.5735 GB, free: 4.453 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.6978, allocations: 7.984 kB / 0.5735 GB, free: 4.445 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.6978, allocations: 4 kB / 0.5735 GB, free: 4.441 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.6979, allocations: 115.2 kB / 0.5736 GB, free: 4.328 MB / 411.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6979, allocations: 0 / 0.5736 GB, free: 4.328 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.000702/0.6987, allocations: 103.5 kB / 0.5737 GB, free: 4.227 MB / 411.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 (7): * Single equations (assignments): 4 * 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.0009505/0.6996, allocations: 0.8044 MB / 0.5745 GB, free: 3.398 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005969/0.7002, allocations: 124.9 kB / 0.5746 GB, free: 3.277 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.7003, allocations: 4 kB / 0.5746 GB, free: 3.273 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000361/0.7006, allocations: 71.89 kB / 0.5747 GB, free: 3.203 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.7009, allocations: 0 / 0.5747 GB, free: 3.203 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.7021, allocations: 413.4 kB / 0.5751 GB, free: 2.762 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005173/0.7026, allocations: 0.8021 MB / 0.5759 GB, free: 1.934 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.7028, allocations: 83.41 kB / 0.576 GB, free: 1.852 MB / 411.1 MB Notification: Performance of SimCode: time 8.91e-07/0.7028, allocations: 0 / 0.576 GB, free: 1.852 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.888/3.591, allocations: 8.15 MB / 0.5839 GB, free: 9.699 MB / 427.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_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_nominalPressureLossLawDensity_DPMFLOW_res.mat does not exist to compare? outputFormat=mat