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_pressureLossCoefficient_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_pressureLossCoefficient_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_pressureLossCoefficient_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_pressureLossCoefficient_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_pressureLossCoefficient_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.001153/0.001153, allocations: 180.7 kB / 14.15 MB, free: 1.176 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.482/1.482, allocations: 221.3 MB / 236 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008488/0.0008487, allocations: 83.73 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2192/0.2192, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.845e-05/4.874e-05, allocations: 224 / 452 MB, free: 9.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 61.92 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4434/0.5745, allocations: 89.89 MB / 0.5896 GB, free: 15.35 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.5748, allocations: 95.94 kB / 0.5897 GB, free: 15.26 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:5404:11-5405:129:writable] Error: Type mismatch in binding rho = rho, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Fluid/Dissipation.mo:5412:11-5413:123:writable] Error: Type mismatch in binding rho = rho, expected subtype of Real[3], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.01325/0.5881, allocations: 4.361 MB / 0.594 GB, free: 10.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.5881, allocations: 0 / 0.594 GB, free: 10.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.5881, allocations: 4 kB / 0.594 GB, free: 10.91 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0005057/0.5887, allocations: 441.9 kB / 0.5944 GB, free: 10.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.5887, allocations: 12.03 kB / 0.5944 GB, free: 10.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.489e-05/0.5888, allocations: 46.55 kB / 0.5944 GB, free: 10.37 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006841/0.5895, allocations: 107.7 kB / 0.5945 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.5897, allocations: 210.8 kB / 0.5947 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.5897, allocations: 15.98 kB / 0.5948 GB, free: 10 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/0.5898, allocations: 19.95 kB / 0.5948 GB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.5901, allocations: 213.2 kB / 0.595 GB, free: 9.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.5902, allocations: 0 / 0.595 GB, free: 9.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.951e-05/0.5902, allocations: 4 kB / 0.595 GB, free: 9.766 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.893e-05/0.5902, allocations: 19.92 kB / 0.595 GB, free: 9.746 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002971/0.5905, allocations: 191.9 kB / 0.5952 GB, free: 9.559 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.5917, allocations: 0.7402 MB / 0.5959 GB, free: 8.727 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.5918, allocations: 78.47 kB / 0.596 GB, free: 8.641 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.176e-05/0.5919, allocations: 36.84 kB / 0.596 GB, free: 8.602 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.5919, allocations: 3.984 kB / 0.596 GB, free: 8.598 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.5919, allocations: 30.56 kB / 0.5961 GB, free: 8.559 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.592, allocations: 0 / 0.5961 GB, free: 8.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002611/0.5922, allocations: 105.5 kB / 0.5962 GB, free: 8.449 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.5923, allocations: 55.41 kB / 0.5962 GB, free: 8.383 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.5924, allocations: 179.5 kB / 0.5964 GB, free: 8.195 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.5925, allocations: 25.7 kB / 0.5964 GB, free: 8.164 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.693e-05/0.5926, allocations: 135.7 kB / 0.5965 GB, free: 8.027 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.5926, allocations: 27.64 kB / 0.5966 GB, free: 8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.555e-06/0.5926, allocations: 3.938 kB / 0.5966 GB, free: 7.996 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.5927, allocations: 326.8 kB / 0.5969 GB, free: 7.668 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.716e-05/0.5928, allocations: 35.97 kB / 0.5969 GB, free: 7.633 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.981e-05/0.5929, allocations: 86.84 kB / 0.597 GB, free: 7.523 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.166e-05/0.593, allocations: 47.95 kB / 0.597 GB, free: 7.477 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.593, allocations: 4 kB / 0.597 GB, free: 7.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002458/0.5933, allocations: 149.3 kB / 0.5972 GB, free: 7.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.5933, allocations: 8 kB / 0.5972 GB, free: 7.312 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.5933, allocations: 0 / 0.5972 GB, free: 7.312 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.5933, allocations: 4 kB / 0.5972 GB, free: 7.309 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008777/0.5942, allocations: 120 kB / 0.5973 GB, free: 7.191 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.5956, allocations: 1.813 MB / 0.5991 GB, free: 5.309 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.5957, allocations: 31.8 kB / 0.5991 GB, free: 5.277 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.5958, allocations: 8 kB / 0.5991 GB, free: 5.27 MB / 410.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 11 * 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 8.082e-05/0.5958, allocations: 113.1 kB / 0.5992 GB, free: 5.152 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.949e-05/0.5959, allocations: 15.81 kB / 0.5992 GB, free: 5.137 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003324/0.5962, allocations: 155 kB / 0.5994 GB, free: 4.973 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.5962, allocations: 8 kB / 0.5994 GB, free: 4.965 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.5963, allocations: 3.953 kB / 0.5994 GB, free: 4.961 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.5963, allocations: 0 / 0.5994 GB, free: 4.961 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002519/0.5965, allocations: 229.6 kB / 0.5996 GB, free: 4.688 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.5965, allocations: 0 / 0.5996 GB, free: 4.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000718/0.5972, allocations: 91.83 kB / 0.5997 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.5973, allocations: 4 kB / 0.5997 GB, free: 4.594 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.5973, allocations: 8 kB / 0.5997 GB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.5983, allocations: 1.778 MB / 0.6015 GB, free: 2.738 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.5984, allocations: 7.953 kB / 0.6015 GB, free: 2.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002313/0.5986, allocations: 214 kB / 0.6017 GB, free: 2.508 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.418e-05/0.5987, allocations: 92.94 kB / 0.6018 GB, free: 2.398 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.5987, allocations: 0 / 0.6018 GB, free: 2.398 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.5988, allocations: 15.98 kB / 0.6018 GB, free: 2.383 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.874e-05/0.5989, allocations: 8.094 kB / 0.6018 GB, free: 2.375 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.5989, allocations: 7.953 kB / 0.6018 GB, free: 2.367 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001094/0.599, allocations: 139.9 kB / 0.6019 GB, free: 2.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.599, allocations: 0 / 0.6019 GB, free: 2.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000321/0.5994, allocations: 47.84 kB / 0.602 GB, free: 2.184 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * 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.0006592/0.6, allocations: 0.7793 MB / 0.6027 GB, free: 1.379 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009176/0.601, allocations: 160 kB / 0.6029 GB, free: 1.223 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.601, allocations: 448 / 0.6029 GB, free: 1.223 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005522/0.6015, allocations: 103.8 kB / 0.603 GB, free: 1.121 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.6018, allocations: 35.91 kB / 0.603 GB, free: 1.086 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00064/0.6025, allocations: 285.3 kB / 0.6033 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003543/0.6029, allocations: 0.7475 MB / 0.604 GB, free: 4 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.603, allocations: 33.23 kB / 0.604 GB, free: 15.97 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.161e-05/0.6031, allocations: 44.77 kB / 0.6041 GB, free: 15.93 MB / 426.7 MB Notification: Performance of SimCode: time 6.02e-07/0.6031, allocations: 0 / 0.6041 GB, free: 15.93 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.6221, allocations: 4.961 MB / 0.6089 GB, free: 11.23 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/0.6224, allocations: 243.8 kB / 0.6092 GB, free: 10.92 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.386, allocations: 0 / 0.6092 GB, free: 10.92 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_pressureLossCoefficient_DPMFLOW.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_pressureLossCoefficient_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_pressureLossCoefficient_DPMFLOW.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_pressureLossCoefficient_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_pressureLossCoefficient_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_pressureLossCoefficient_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_pressureLossCoefficient_DPMFLOW.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_pressureLossCoefficient_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_pressureLossCoefficient_DPMFLOW_res.mat does not exist to compare? outputFormat=mat