Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 177.4 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.2 MB / 241 MB, free: 11.86 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008932/0.0008932, allocations: 90.05 kB / 292.1 MB, free: 10.91 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.354/0.354, allocations: 44.21 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.0003672, allocations: 8 kB / 460 MB, free: 1.402 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3354, allocations: 61.89 MB / 0.5097 GB, free: 38.29 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.454, allocations: 94.04 MB / 0.6015 GB, free: 1.055 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/0.4543, allocations: 107.9 kB / 0.6016 GB, free: 0.957 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:5283:11-5295: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 4.0.0+maint.om/Fluid/Dissipation.mo:5297:11-5298: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 4.0.0+maint.om/Fluid/Dissipation.mo:5301:11-5313: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 4.0.0+maint.om/Fluid/Dissipation.mo:5315:11-5316: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.02511/0.4794, allocations: 9.132 MB / 0.6105 GB, free: 7.727 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4795, allocations: 0 / 0.6105 GB, free: 7.727 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.745e-05/0.4795, allocations: 8 kB / 0.6105 GB, free: 7.719 MB / 426.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.0008199/0.4804, allocations: 0.5344 MB / 0.611 GB, free: 7.137 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.4804, allocations: 8.031 kB / 0.611 GB, free: 7.129 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.91e-05/0.4805, allocations: 78.53 kB / 0.6111 GB, free: 7.043 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.4806, allocations: 31.62 kB / 0.6112 GB, free: 7.012 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000347/0.481, allocations: 230.7 kB / 0.6114 GB, free: 6.746 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.727e-05/0.481, allocations: 32.92 kB / 0.6114 GB, free: 6.715 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.052e-05/0.4811, allocations: 43.98 kB / 0.6114 GB, free: 6.672 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008234/0.4819, allocations: 482 kB / 0.6119 GB, free: 6.188 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.4819, allocations: 0 / 0.6119 GB, free: 6.188 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.482, allocations: 12 kB / 0.6119 GB, free: 6.176 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.22e-05/0.482, allocations: 24.98 kB / 0.6119 GB, free: 6.152 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006854/0.4827, allocations: 427.7 kB / 0.6123 GB, free: 5.734 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.4844, allocations: 1.213 MB / 0.6135 GB, free: 4.422 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.4846, allocations: 90.39 kB / 0.6136 GB, free: 4.324 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.4846, allocations: 4 kB / 0.6136 GB, free: 4.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.4847, allocations: 38.56 kB / 0.6137 GB, free: 4.273 MB / 426.7 MB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.4847, allocations: 0 / 0.6137 GB, free: 4.273 MB / 426.7 MB Notification: Performance of matching and sorting (n=7): time 0.0004887/0.4852, allocations: 161.5 kB / 0.6138 GB, free: 4.109 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.4852, allocations: 63.34 kB / 0.6139 GB, free: 4.035 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.4854, allocations: 158.9 kB / 0.614 GB, free: 3.875 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.4854, allocations: 25.7 kB / 0.614 GB, free: 3.844 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.4856, allocations: 219.4 kB / 0.6143 GB, free: 3.625 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.4856, allocations: 27.64 kB / 0.6143 GB, free: 3.598 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.4857, allocations: 4 kB / 0.6143 GB, free: 3.594 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4858, allocations: 322.8 kB / 0.6146 GB, free: 3.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.4859, allocations: 59.95 kB / 0.6147 GB, free: 3.211 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.4862, allocations: 182.6 kB / 0.6148 GB, free: 2.977 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00017/0.4863, allocations: 83.95 kB / 0.6149 GB, free: 2.895 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4864, allocations: 0 / 0.6149 GB, free: 2.895 MB / 426.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004762/0.4868, allocations: 268.9 kB / 0.6152 GB, free: 2.625 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4869, allocations: 4 kB / 0.6152 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.4869, allocations: 8 kB / 0.6152 GB, free: 2.613 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.4869, allocations: 4 kB / 0.6152 GB, free: 2.609 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003646/0.4873, allocations: 88.41 kB / 0.6153 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009995/0.4883, allocations: 1.778 MB / 0.617 GB, free: 0.6758 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.4885, allocations: 32.11 kB / 0.617 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.664e-05/0.4885, allocations: 20 kB / 0.617 GB, free: 0.625 MB / 426.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.0002089/0.4887, allocations: 170.2 kB / 0.6172 GB, free: 460 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.4888, allocations: 19.77 kB / 0.6172 GB, free: 440 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005523/0.4893, allocations: 210 kB / 0.6174 GB, free: 224 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.4894, allocations: 8 kB / 0.6174 GB, free: 216 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4894, allocations: 0 / 0.6174 GB, free: 216 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4894, allocations: 0 / 0.6174 GB, free: 216 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004451/0.4898, allocations: 289.5 kB / 0.6177 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.4898, allocations: 0 / 0.6177 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002289/0.4901, allocations: 67.89 kB / 0.6178 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.4901, allocations: 3.953 kB / 0.6178 GB, free: 15.81 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.4901, allocations: 3.984 kB / 0.6178 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009807/0.4911, allocations: 1.774 MB / 0.6195 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4911, allocations: 288 / 0.6195 GB, free: 13.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003302/0.4915, allocations: 235.4 kB / 0.6197 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.607e-05/0.4915, allocations: 81.02 kB / 0.6198 GB, free: 13.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.4916, allocations: 7.953 kB / 0.6198 GB, free: 13.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.986e-05/0.4917, allocations: 15.97 kB / 0.6198 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.4917, allocations: 7.984 kB / 0.6199 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.108e-05/0.4917, allocations: 8 kB / 0.6199 GB, free: 13.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 9.891e-05/0.4919, allocations: 111.2 kB / 0.62 GB, free: 13.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.533e-06/0.4919, allocations: 7.938 kB / 0.62 GB, free: 13.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005522/0.4924, allocations: 103.5 kB / 0.6201 GB, free: 13.36 MB / 442.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.0008771/0.4933, allocations: 0.8441 MB / 0.6209 GB, free: 12.49 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005608/0.4939, allocations: 184.7 kB / 0.6211 GB, free: 12.31 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4939, allocations: 0 / 0.6211 GB, free: 12.31 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.4942, allocations: 79.88 kB / 0.6211 GB, free: 12.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001834/0.4944, allocations: 16.95 kB / 0.6212 GB, free: 12.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.4975, allocations: 3.934 MB / 0.625 GB, free: 8.156 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/0.4979, allocations: 0.8063 MB / 0.6258 GB, free: 7.324 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002086/0.4982, allocations: 69.17 kB / 0.6259 GB, free: 7.254 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.4983, allocations: 75.41 kB / 0.6259 GB, free: 7.18 MB / 442.7 MB Notification: Performance of SimCode: time 8.52e-07/0.4983, allocations: 0 / 0.6259 GB, free: 7.18 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02772/0.526, allocations: 5.168 MB / 0.631 GB, free: 2.289 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003797/0.5265, allocations: 276.5 kB / 0.6312 GB, free: 1.934 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/2.275, allocations: 3.562 kB / 0.6312 GB, free: 1.934 MB / 442.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.mat does not exist to compare? outputFormat=mat