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.002441/0.002441, allocations: 180.4 kB / 13.66 MB, free: 1.664 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.236/2.236, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001634/0.001633, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3058/0.3058, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.898e-05/4.917e-05, allocations: 4 kB / 425.4 MB, free: 23.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1636/0.1637, allocations: 58.86 MB / 484.3 MB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5477/0.7115, allocations: 92.83 MB / 0.5636 GB, free: 10.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003825/0.712, allocations: 96.47 kB / 0.5637 GB, free: 10.32 MB / 378.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.03987/0.7519, allocations: 8.958 MB / 0.5724 GB, free: 2.477 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.7519, allocations: 0 / 0.5724 GB, free: 2.477 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.7519, allocations: 4 kB / 0.5724 GB, free: 2.473 MB / 378.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.0009003/0.7528, allocations: 0.524 MB / 0.5729 GB, free: 1.926 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.7529, allocations: 12.03 kB / 0.5729 GB, free: 1.914 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001495/0.7531, allocations: 76.41 kB / 0.573 GB, free: 1.852 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.583e-05/0.7532, allocations: 31.62 kB / 0.573 GB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003825/0.7536, allocations: 237.9 kB / 0.5733 GB, free: 1.555 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.7536, allocations: 27.89 kB / 0.5733 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.436e-05/0.7537, allocations: 31.38 kB / 0.5733 GB, free: 1.512 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009679/0.7547, allocations: 457.7 kB / 0.5738 GB, free: 1.184 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.7547, allocations: 4 kB / 0.5738 GB, free: 1.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.7548, allocations: 14.5 kB / 0.5738 GB, free: 1.176 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.183e-05/0.7548, allocations: 24.77 kB / 0.5738 GB, free: 1.148 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008281/0.7557, allocations: 392.8 kB / 0.5742 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002416/0.7581, allocations: 1.217 MB / 0.5754 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.7583, allocations: 64 kB / 0.5754 GB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.605e-05/0.7584, allocations: 27.47 kB / 0.5755 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.7585, allocations: 4 kB / 0.5755 GB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.7585, allocations: 30.56 kB / 0.5755 GB, free: 15.59 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.585e-06/0.7586, allocations: 0 / 0.5755 GB, free: 15.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003536/0.7589, allocations: 95.47 kB / 0.5756 GB, free: 15.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.759, allocations: 59.34 kB / 0.5756 GB, free: 15.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.7592, allocations: 144.3 kB / 0.5758 GB, free: 15.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.7592, allocations: 29.08 kB / 0.5758 GB, free: 15.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.7594, allocations: 288 kB / 0.5761 GB, free: 14.99 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/0.7595, allocations: 26.95 kB / 0.5761 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.652e-05/0.7595, allocations: 6.25 kB / 0.5761 GB, free: 14.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.7596, allocations: 326.2 kB / 0.5764 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.7598, allocations: 43.11 kB / 0.5765 GB, free: 14.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.76, allocations: 163.2 kB / 0.5766 GB, free: 14.41 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.7602, allocations: 66.2 kB / 0.5767 GB, free: 14.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.7603, allocations: 0 / 0.5767 GB, free: 14.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005848/0.7609, allocations: 224.7 kB / 0.5769 GB, free: 14.15 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.7609, allocations: 8 kB / 0.5769 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.7609, allocations: 7.984 kB / 0.5769 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.761, allocations: 8 kB / 0.5769 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007069/0.7617, allocations: 96.19 kB / 0.577 GB, free: 14.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/0.7632, allocations: 1.785 MB / 0.5787 GB, free: 12.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003374/0.7636, allocations: 27.22 kB / 0.5788 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.291e-05/0.7636, allocations: 15.95 kB / 0.5788 GB, free: 12.15 MB / 394.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 () * 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.0001863/0.7638, allocations: 125.9 kB / 0.5789 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.15e-05/0.7639, allocations: 7.906 kB / 0.5789 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008025/0.7647, allocations: 170.6 kB / 0.5791 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.7647, allocations: 3.938 kB / 0.5791 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/0.7648, allocations: 7.984 kB / 0.5791 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.7648, allocations: 3.938 kB / 0.5791 GB, free: 11.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005744/0.7653, allocations: 293 kB / 0.5794 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.7654, allocations: 4 kB / 0.5794 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005012/0.7659, allocations: 63.94 kB / 0.5794 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.7659, allocations: 0 / 0.5794 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.275e-05/0.7659, allocations: 4 kB / 0.5794 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.7673, allocations: 1.776 MB / 0.5812 GB, free: 9.645 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.7673, allocations: 0 / 0.5812 GB, free: 9.645 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000352/0.7677, allocations: 198.2 kB / 0.5814 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.698e-05/0.7678, allocations: 85.02 kB / 0.5814 GB, free: 9.344 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.7678, allocations: 4.188 kB / 0.5814 GB, free: 9.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001938/0.768, allocations: 15.73 kB / 0.5815 GB, free: 9.328 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.609e-05/0.7681, allocations: 4 kB / 0.5815 GB, free: 9.324 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.7682, allocations: 7.984 kB / 0.5815 GB, free: 9.316 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001899/0.7684, allocations: 114.5 kB / 0.5816 GB, free: 9.211 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.477e-06/0.7684, allocations: 0 / 0.5816 GB, free: 9.211 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008664/0.7693, allocations: 106.7 kB / 0.5817 GB, free: 9.113 MB / 394.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 () * 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.001065/0.7704, allocations: 0.8032 MB / 0.5825 GB, free: 8.301 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007048/0.7711, allocations: 153.7 kB / 0.5826 GB, free: 8.168 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.7711, allocations: 0 / 0.5826 GB, free: 8.168 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000383/0.7715, allocations: 64.89 kB / 0.5827 GB, free: 8.109 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000249/0.7718, allocations: 7.375 kB / 0.5827 GB, free: 8.105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.7731, allocations: 433 kB / 0.5831 GB, free: 7.664 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005039/0.7737, allocations: 0.7938 MB / 0.5839 GB, free: 6.852 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.7738, allocations: 80.59 kB / 0.584 GB, free: 6.828 MB / 394.7 MB Notification: Performance of SimCode: time 1.493e-06/0.7738, allocations: 7.938 kB / 0.584 GB, free: 6.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.798/3.571, allocations: 8.157 MB / 0.5919 GB, free: 14.68 MB / 410.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