Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_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_trunk_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 trunk/package.mo): time 0.001456/0.001456, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.419/1.419, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009374/0.0009374, allocations: 103.9 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3497/0.3497, allocations: 45.23 MB / 394.6 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003069/0.0003071, allocations: 4 kB / 468.5 MB, free: 7.598 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3205, allocations: 63.25 MB / 0.5193 GB, free: 37.44 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.176/0.4966, allocations: 95.1 MB / 0.6122 GB, free: 8.336 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003574/0.497, allocations: 103.9 kB / 0.6123 GB, free: 8.238 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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 trunk/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 trunk/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 trunk/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.03312/0.5302, allocations: 9.205 MB / 0.6212 GB, free: 14.93 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5302, allocations: 8 kB / 0.6213 GB, free: 14.92 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.5302, allocations: 4 kB / 0.6213 GB, free: 14.92 MB / 442.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.0009115/0.5312, allocations: 0.5306 MB / 0.6218 GB, free: 14.34 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.5312, allocations: 8.031 kB / 0.6218 GB, free: 14.33 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.5314, allocations: 78.53 kB / 0.6219 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.497e-05/0.5315, allocations: 31.62 kB / 0.6219 GB, free: 14.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.5319, allocations: 234.7 kB / 0.6221 GB, free: 13.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.437e-05/0.5319, allocations: 29 kB / 0.6221 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.861e-05/0.532, allocations: 39.94 kB / 0.6222 GB, free: 13.88 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.5331, allocations: 486 kB / 0.6226 GB, free: 13.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.5331, allocations: 0 / 0.6226 GB, free: 13.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.5331, allocations: 12 kB / 0.6227 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.656e-05/0.5332, allocations: 17 kB / 0.6227 GB, free: 13.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009916/0.5342, allocations: 439.7 kB / 0.6231 GB, free: 12.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.5365, allocations: 1.217 MB / 0.6243 GB, free: 11.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.5368, allocations: 86.5 kB / 0.6244 GB, free: 11.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.5368, allocations: 0 / 0.6244 GB, free: 11.52 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.5369, allocations: 34.56 kB / 0.6244 GB, free: 11.48 MB / 442.7 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.5369, allocations: 0 / 0.6244 GB, free: 11.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006591/0.5375, allocations: 173.4 kB / 0.6246 GB, free: 11.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.5376, allocations: 51.41 kB / 0.6246 GB, free: 11.24 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.5378, allocations: 157.1 kB / 0.6248 GB, free: 11.08 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.5379, allocations: 25.7 kB / 0.6248 GB, free: 11.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.5381, allocations: 219.4 kB / 0.625 GB, free: 10.83 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.693e-05/0.5381, allocations: 27.64 kB / 0.625 GB, free: 10.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.357e-05/0.5381, allocations: 4 kB / 0.625 GB, free: 10.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.5383, allocations: 326.8 kB / 0.6253 GB, free: 10.47 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.5385, allocations: 55.95 kB / 0.6254 GB, free: 10.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002949/0.5388, allocations: 184.1 kB / 0.6256 GB, free: 10.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.5391, allocations: 83.89 kB / 0.6256 GB, free: 10.09 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.5391, allocations: 4 kB / 0.6256 GB, free: 10.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0006838/0.5398, allocations: 257 kB / 0.6259 GB, free: 9.832 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.5398, allocations: 8 kB / 0.6259 GB, free: 9.824 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.185e-05/0.5399, allocations: 4.391 kB / 0.6259 GB, free: 9.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.5399, allocations: 7.938 kB / 0.6259 GB, free: 9.812 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.5404, allocations: 92.44 kB / 0.626 GB, free: 9.723 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001321/0.5417, allocations: 1.782 MB / 0.6277 GB, free: 7.871 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.542, allocations: 31.73 kB / 0.6278 GB, free: 7.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.394e-05/0.542, allocations: 12 kB / 0.6278 GB, free: 7.828 MB / 442.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.0003052/0.5423, allocations: 187.8 kB / 0.628 GB, free: 7.637 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.91e-05/0.5424, allocations: 7.906 kB / 0.628 GB, free: 7.629 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008035/0.5432, allocations: 222 kB / 0.6282 GB, free: 7.406 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.5432, allocations: 0 / 0.6282 GB, free: 7.406 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.5432, allocations: 0 / 0.6282 GB, free: 7.406 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.5433, allocations: 3.984 kB / 0.6282 GB, free: 7.402 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004818/0.5437, allocations: 293.5 kB / 0.6285 GB, free: 7.066 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.5438, allocations: 0 / 0.6285 GB, free: 7.066 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003163/0.5441, allocations: 59.95 kB / 0.6285 GB, free: 7.008 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.5441, allocations: 0 / 0.6285 GB, free: 7.008 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.5441, allocations: 11.98 kB / 0.6285 GB, free: 6.996 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.5452, allocations: 1.77 MB / 0.6303 GB, free: 5.156 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.5453, allocations: 8.281 kB / 0.6303 GB, free: 5.148 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004346/0.5457, allocations: 227.3 kB / 0.6305 GB, free: 4.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.446e-05/0.5458, allocations: 92.89 kB / 0.6306 GB, free: 4.801 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.5458, allocations: 4 kB / 0.6306 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.546, allocations: 15.98 kB / 0.6306 GB, free: 4.781 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.032e-05/0.546, allocations: 7.984 kB / 0.6306 GB, free: 4.773 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.5461, allocations: 4 kB / 0.6306 GB, free: 4.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001113/0.5462, allocations: 111.2 kB / 0.6307 GB, free: 4.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5462, allocations: 0 / 0.6307 GB, free: 4.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007499/0.5469, allocations: 107.5 kB / 0.6308 GB, free: 4.555 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.001131/0.5481, allocations: 0.8331 MB / 0.6316 GB, free: 3.695 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000776/0.5489, allocations: 176.4 kB / 0.6318 GB, free: 3.523 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.5489, allocations: 0 / 0.6318 GB, free: 3.523 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004097/0.5493, allocations: 88.36 kB / 0.6319 GB, free: 3.438 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.5496, allocations: 11.86 kB / 0.6319 GB, free: 3.426 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004254/0.5539, allocations: 3.928 MB / 0.6357 GB, free: 15.37 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/0.5544, allocations: 0.8102 MB / 0.6365 GB, free: 14.54 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003319/0.5548, allocations: 69.17 kB / 0.6366 GB, free: 14.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.5549, allocations: 75.41 kB / 0.6367 GB, free: 14.39 MB / 458.7 MB Notification: Performance of SimCode: time 7.71e-07/0.5549, allocations: 0 / 0.6367 GB, free: 14.39 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02369/0.5786, allocations: 5.162 MB / 0.6417 GB, free: 9.461 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003091/0.579, allocations: 274.3 kB / 0.642 GB, free: 9.105 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.368, allocations: 0 / 0.642 GB, free: 9.105 MB / 458.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_nominalPressureLossLawDensity_DPMFLOW.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_nominalPressureLossLawDensity_DPMFLOW_res.mat does not exist to compare? outputFormat=mat