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.001751/0.001755, allocations: 185.4 kB / 16.41 MB, free: 5.727 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.048/2.048, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001217/0.001216, allocations: 93.3 kB / 270.9 MB, free: 8.395 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.5351/0.5351, allocations: 43.55 MB / 362.7 MB, free: 51.92 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004627/0.0004628, allocations: 12 kB / 431.5 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1276, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.518/0.6457, allocations: 92.92 MB / 0.5696 GB, free: 9.473 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004262/0.6462, allocations: 99.92 kB / 0.5697 GB, free: 9.375 MB / 394.7 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.04222/0.6884, allocations: 8.958 MB / 0.5784 GB, free: 372 kB / 394.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.6885, allocations: 4 kB / 0.5784 GB, free: 368 kB / 394.7 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.6885, allocations: 4 kB / 0.5784 GB, free: 364 kB / 394.7 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.0009933/0.6895, allocations: 0.5219 MB / 0.579 GB, free: 15.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.6896, allocations: 15.97 kB / 0.579 GB, free: 15.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001211/0.6897, allocations: 78.52 kB / 0.579 GB, free: 15.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.913e-05/0.6898, allocations: 35.06 kB / 0.5791 GB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003881/0.6902, allocations: 235.4 kB / 0.5793 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.856e-05/0.6902, allocations: 36.98 kB / 0.5793 GB, free: 15.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.887e-05/0.6903, allocations: 32 kB / 0.5794 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.6916, allocations: 478.1 kB / 0.5798 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.776e-05/0.6917, allocations: 3.938 kB / 0.5798 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.6917, allocations: 12 kB / 0.5798 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.247e-05/0.6918, allocations: 34.02 kB / 0.5799 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.693, allocations: 427.7 kB / 0.5803 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/0.6954, allocations: 1.221 MB / 0.5815 GB, free: 13.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.6958, allocations: 78.53 kB / 0.5815 GB, free: 12.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.787e-05/0.6959, allocations: 11.94 kB / 0.5816 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.898e-05/0.6959, allocations: 30.56 kB / 0.5816 GB, free: 12.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 3.136e-06/0.6959, allocations: 0 / 0.5816 GB, free: 12.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0008606/0.6968, allocations: 170.4 kB / 0.5817 GB, free: 12.75 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.6968, allocations: 51.41 kB / 0.5818 GB, free: 12.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002167/0.6971, allocations: 149.5 kB / 0.5819 GB, free: 12.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.6971, allocations: 29.7 kB / 0.582 GB, free: 12.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.6973, allocations: 293.6 kB / 0.5822 GB, free: 12.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.6974, allocations: 23.66 kB / 0.5823 GB, free: 12.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.831e-05/0.6974, allocations: 4 kB / 0.5823 GB, free: 12.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.6975, allocations: 330.8 kB / 0.5826 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.6978, allocations: 55.95 kB / 0.5826 GB, free: 11.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000345/0.6982, allocations: 172.3 kB / 0.5828 GB, free: 11.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.6985, allocations: 88.84 kB / 0.5829 GB, free: 11.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.6985, allocations: 0 / 0.5829 GB, free: 11.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008368/0.6994, allocations: 257.3 kB / 0.5831 GB, free: 11.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/0.6994, allocations: 10.81 kB / 0.5831 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.219e-05/0.6994, allocations: 4 kB / 0.5832 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-05/0.6995, allocations: 4 kB / 0.5832 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006126/0.7001, allocations: 100.4 kB / 0.5833 GB, free: 11.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00132/0.7014, allocations: 1.789 MB / 0.585 GB, free: 9.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.7017, allocations: 23.84 kB / 0.585 GB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.7018, allocations: 15.98 kB / 0.585 GB, free: 9.211 MB / 410.7 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 () * Number of clocked 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.0003245/0.7021, allocations: 185.7 kB / 0.5852 GB, free: 9.02 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.245e-05/0.7022, allocations: 15.8 kB / 0.5852 GB, free: 9.004 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.7032, allocations: 212.5 kB / 0.5854 GB, free: 8.797 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.7032, allocations: 0 / 0.5854 GB, free: 8.797 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.7032, allocations: 3.984 kB / 0.5854 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.7032, allocations: 0 / 0.5854 GB, free: 8.793 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005165/0.7038, allocations: 289.5 kB / 0.5857 GB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.7038, allocations: 0 / 0.5857 GB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004462/0.7042, allocations: 63.94 kB / 0.5858 GB, free: 8.398 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.576e-06/0.7043, allocations: 0 / 0.5858 GB, free: 8.398 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.7043, allocations: 11.94 kB / 0.5858 GB, free: 8.387 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001293/0.7056, allocations: 1.774 MB / 0.5875 GB, free: 6.543 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.7056, allocations: 0 / 0.5875 GB, free: 6.543 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005826/0.7062, allocations: 227.4 kB / 0.5877 GB, free: 6.305 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.791e-05/0.7063, allocations: 85.02 kB / 0.5878 GB, free: 6.203 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.7064, allocations: 8.047 kB / 0.5878 GB, free: 6.195 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.7066, allocations: 16 kB / 0.5878 GB, free: 6.18 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.422e-05/0.7067, allocations: 11.92 kB / 0.5878 GB, free: 6.168 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.901e-05/0.7067, allocations: 4 kB / 0.5879 GB, free: 6.164 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001399/0.7068, allocations: 113.7 kB / 0.588 GB, free: 6.055 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7069, allocations: 0 / 0.588 GB, free: 6.055 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006728/0.7075, allocations: 111.5 kB / 0.5881 GB, free: 5.945 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 (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.001309/0.7089, allocations: 0.8298 MB / 0.5889 GB, free: 5.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009599/0.7099, allocations: 184 kB / 0.5891 GB, free: 4.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.7099, allocations: 0 / 0.5891 GB, free: 4.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005109/0.7104, allocations: 88.62 kB / 0.5891 GB, free: 4.824 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.7107, allocations: 8 kB / 0.5891 GB, free: 4.816 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004121/0.7148, allocations: 3.96 MB / 0.593 GB, free: 0.7344 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005226/0.7154, allocations: 0.8023 MB / 0.5938 GB, free: 15.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.7156, allocations: 75.41 kB / 0.5939 GB, free: 15.83 MB / 426.7 MB Notification: Performance of SimCode: time 1.704e-06/0.7156, allocations: 0 / 0.5939 GB, free: 15.83 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.882/3.598, allocations: 8.127 MB / 0.6018 GB, free: 7.715 MB / 426.7 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