Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_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_volumeFlowRate_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_volumeFlowRate_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_volumeFlowRate_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.001282/0.001282, allocations: 199 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.581/1.581, allocations: 227.2 MB / 245 MB, free: 7.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009819/0.0009819, allocations: 103 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3817/0.3817, allocations: 45.22 MB / 394.6 MB, free: 31.62 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000419/0.000419, allocations: 8 kB / 468.5 MB, free: 7.617 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4495/0.45, allocations: 63.24 MB / 0.5193 GB, free: 43.81 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.5798, allocations: 91.6 MB / 0.6087 GB, free: 14.01 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.5801, allocations: 103.9 kB / 0.6088 GB, free: 13.91 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5503:11-5506:61:writable] Error: Type mismatch in binding rho = rho, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:5514:11-5517:59:writable] Error: Type mismatch in binding rho = rho, expected subtype of Real[3], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.02379/0.6039, allocations: 7.998 MB / 0.6167 GB, free: 5.918 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.604, allocations: 0 / 0.6167 GB, free: 5.918 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.478e-05/0.604, allocations: 8 kB / 0.6167 GB, free: 5.91 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007371/0.6048, allocations: 462.7 kB / 0.6171 GB, free: 5.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/0.6049, allocations: 8.031 kB / 0.6171 GB, free: 5.402 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.171e-05/0.6049, allocations: 54.53 kB / 0.6172 GB, free: 5.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007252/0.6057, allocations: 95.58 kB / 0.6173 GB, free: 5.246 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.606, allocations: 234.7 kB / 0.6175 GB, free: 4.977 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.606, allocations: 8 kB / 0.6175 GB, free: 4.969 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.843e-05/0.606, allocations: 20 kB / 0.6175 GB, free: 4.949 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.6067, allocations: 313.8 kB / 0.6178 GB, free: 4.641 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.6068, allocations: 0 / 0.6178 GB, free: 4.641 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.6068, allocations: 7.984 kB / 0.6178 GB, free: 4.633 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.684e-05/0.6069, allocations: 19.98 kB / 0.6178 GB, free: 4.613 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008412/0.6077, allocations: 327.7 kB / 0.6181 GB, free: 4.293 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.6094, allocations: 0.844 MB / 0.619 GB, free: 3.367 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007604/0.6102, allocations: 230.3 kB / 0.6192 GB, free: 3.133 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.423e-05/0.6102, allocations: 0 / 0.6192 GB, free: 3.133 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.6103, allocations: 38.56 kB / 0.6192 GB, free: 3.086 MB / 426.7 MB Notification: Performance of pre-optimization done (n=10): time 1.021e-06/0.6103, allocations: 0 / 0.6192 GB, free: 3.086 MB / 426.7 MB Notification: Performance of matching and sorting (n=10): time 0.001129/0.6114, allocations: 301.6 kB / 0.6195 GB, free: 2.785 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.6115, allocations: 55.41 kB / 0.6196 GB, free: 2.719 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.6116, allocations: 174.3 kB / 0.6197 GB, free: 2.539 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.6117, allocations: 25.7 kB / 0.6198 GB, free: 2.508 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.966e-05/0.6118, allocations: 139.6 kB / 0.6199 GB, free: 2.367 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/0.6118, allocations: 35.45 kB / 0.6199 GB, free: 2.332 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.543e-05/0.6118, allocations: 0 / 0.6199 GB, free: 2.332 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.612, allocations: 330.8 kB / 0.6202 GB, free: 2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002916/0.6123, allocations: 87.91 kB / 0.6203 GB, free: 1.914 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003348/0.6126, allocations: 138.8 kB / 0.6205 GB, free: 1.754 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003118/0.613, allocations: 100.3 kB / 0.6205 GB, free: 1.656 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.613, allocations: 3.938 kB / 0.6206 GB, free: 1.652 MB / 426.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0007895/0.6138, allocations: 289 kB / 0.6208 GB, free: 1.363 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.6138, allocations: 6.5 kB / 0.6208 GB, free: 1.359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.6138, allocations: 4 kB / 0.6208 GB, free: 1.355 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.6138, allocations: 4 kB / 0.6208 GB, free: 1.352 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004819/0.6143, allocations: 80.12 kB / 0.6209 GB, free: 1.273 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001147/0.6155, allocations: 1.785 MB / 0.6227 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.6157, allocations: 27.73 kB / 0.6227 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.522e-05/0.6158, allocations: 15.98 kB / 0.6227 GB, free: 15.38 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 initialization (17): * Single equations (assignments): 14 * 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.0001619/0.616, allocations: 141.8 kB / 0.6228 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.632e-05/0.616, allocations: 11.86 kB / 0.6228 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008256/0.6168, allocations: 278.8 kB / 0.6231 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.6169, allocations: 4 kB / 0.6231 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.6169, allocations: 96 / 0.6231 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.6169, allocations: 3.938 kB / 0.6231 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003232/0.6172, allocations: 257.5 kB / 0.6234 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.6172, allocations: 0 / 0.6234 GB, free: 14.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003827/0.6176, allocations: 67.84 kB / 0.6234 GB, free: 14.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.6176, allocations: 3.953 kB / 0.6234 GB, free: 14.56 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.6177, allocations: 11.98 kB / 0.6234 GB, free: 14.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.6187, allocations: 1.781 MB / 0.6252 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.6187, allocations: 288 / 0.6252 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007433/0.6195, allocations: 323.2 kB / 0.6255 GB, free: 12.37 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.146e-05/0.6195, allocations: 96.84 kB / 0.6256 GB, free: 12.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.6196, allocations: 11.89 kB / 0.6256 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.6198, allocations: 19.98 kB / 0.6256 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/0.6199, allocations: 7.984 kB / 0.6256 GB, free: 12.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.6199, allocations: 11.97 kB / 0.6256 GB, free: 12.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.62, allocations: 138 kB / 0.6258 GB, free: 12.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.62, allocations: 0 / 0.6258 GB, free: 12.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004009/0.6204, allocations: 71.84 kB / 0.6258 GB, free: 12 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 (10): * Single equations (assignments): 7 * 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.00119/0.6216, allocations: 0.9046 MB / 0.6267 GB, free: 11.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008115/0.6225, allocations: 232.1 kB / 0.6269 GB, free: 10.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.6225, allocations: 4 kB / 0.6269 GB, free: 10.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004512/0.6229, allocations: 127.8 kB / 0.6271 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.6232, allocations: 15.23 kB / 0.6271 GB, free: 10.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002922/0.6261, allocations: 2.262 MB / 0.6293 GB, free: 8.367 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.6265, allocations: 0.7358 MB / 0.63 GB, free: 7.605 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002448/0.6268, allocations: 69.34 kB / 0.6301 GB, free: 7.539 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001319/0.6269, allocations: 63.39 kB / 0.6301 GB, free: 7.477 MB / 442.7 MB Notification: Performance of SimCode: time 7.81e-07/0.6269, allocations: 0 / 0.6301 GB, free: 7.477 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.6452, allocations: 4.655 MB / 0.6347 GB, free: 3.086 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002523/0.6455, allocations: 259.9 kB / 0.6349 GB, free: 2.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.519, allocations: 1.125 kB / 0.6349 GB, free: 2.73 MB / 442.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_volumeFlowRate_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_volumeFlowRate_DPMFLOW.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_volumeFlowRate_DPMFLOW_res.mat does not exist to compare? outputFormat=mat