Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_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.Bend.dp_curvedOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Bend_dp_curvedOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Bend_dp_curvedOverall_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.002022/0.002022, allocations: 179 kB / 8.364 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 86.83 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3163/0.3163, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.249e-05, allocations: 4.219 kB / 418.4 MB, free: 40.91 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4864/0.4865, allocations: 58.84 MB / 477.2 MB, free: 5.293 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2214/0.708, allocations: 100.8 MB / 0.5645 GB, free: 14.46 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003868/0.7084, allocations: 103.9 kB / 0.5646 GB, free: 14.36 MB / 411.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4646:11-4649:67:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4673:11-4676:68:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[3], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4633:11-4636:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[2], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4660:11-4663:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[2], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.1228/0.8313, allocations: 22.44 MB / 0.5865 GB, free: 7.77 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.8313, allocations: 0 / 0.5865 GB, free: 7.77 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.8313, allocations: 8 kB / 0.5865 GB, free: 7.762 MB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001604/0.833, allocations: 0.604 MB / 0.5871 GB, free: 7.113 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/0.833, allocations: 16.03 kB / 0.5871 GB, free: 7.098 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001329/0.8332, allocations: 31.62 kB / 0.5871 GB, free: 7.066 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005566/0.8338, allocations: 262.5 kB / 0.5874 GB, free: 6.77 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.8338, allocations: 12 kB / 0.5874 GB, free: 6.758 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.327e-05/0.8339, allocations: 20 kB / 0.5874 GB, free: 6.738 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00103/0.8349, allocations: 441.8 kB / 0.5878 GB, free: 6.309 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.836, allocations: 429.2 kB / 0.5882 GB, free: 5.883 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.836, allocations: 3.938 kB / 0.5882 GB, free: 5.879 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.533e-05/0.8361, allocations: 3.953 kB / 0.5882 GB, free: 5.875 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.977e-05/0.8362, allocations: 49.27 kB / 0.5883 GB, free: 5.828 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002961/0.8391, allocations: 1.223 MB / 0.5895 GB, free: 4.504 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001095/0.8403, allocations: 342.5 kB / 0.5898 GB, free: 4.156 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002711/0.8406, allocations: 109.2 kB / 0.5899 GB, free: 4.047 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.1e-05/0.8406, allocations: 7.938 kB / 0.5899 GB, free: 4.039 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.8407, allocations: 34.56 kB / 0.5899 GB, free: 3.996 MB / 427.1 MB Notification: Performance of pre-optimization done (n=26): time 3.126e-06/0.8407, allocations: 0 / 0.5899 GB, free: 3.996 MB / 427.1 MB Notification: Performance of matching and sorting (n=26): time 0.000795/0.8415, allocations: 264.3 kB / 0.5902 GB, free: 3.734 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.8415, allocations: 63.39 kB / 0.5902 GB, free: 3.66 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002173/0.8418, allocations: 161.5 kB / 0.5904 GB, free: 3.496 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.8418, allocations: 25.7 kB / 0.5904 GB, free: 3.465 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.842, allocations: 278.2 kB / 0.5907 GB, free: 3.191 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.8421, allocations: 90.66 kB / 0.5908 GB, free: 3.102 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.396e-05/0.8422, allocations: 0 / 0.5908 GB, free: 3.102 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.8423, allocations: 322.8 kB / 0.5911 GB, free: 2.777 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.8426, allocations: 95.94 kB / 0.5912 GB, free: 2.684 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003163/0.8429, allocations: 143.1 kB / 0.5913 GB, free: 2.531 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.8433, allocations: 125.3 kB / 0.5914 GB, free: 2.41 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.8433, allocations: 0 / 0.5914 GB, free: 2.41 MB / 427.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008209/0.8441, allocations: 311.5 kB / 0.5917 GB, free: 2.102 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.8442, allocations: 4 kB / 0.5917 GB, free: 2.098 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.8442, allocations: 4 kB / 0.5917 GB, free: 2.094 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.8442, allocations: 0 / 0.5917 GB, free: 2.094 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.8453, allocations: 123.8 kB / 0.5919 GB, free: 1.973 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002213/0.8475, allocations: 3.02 MB / 0.5948 GB, free: 14.84 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.8479, allocations: 27.72 kB / 0.5948 GB, free: 14.81 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.212e-05/0.848, allocations: 15.98 kB / 0.5948 GB, free: 14.79 MB / 443.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001429/0.8481, allocations: 113.1 kB / 0.595 GB, free: 14.68 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007165/0.8488, allocations: 265.3 kB / 0.5952 GB, free: 14.41 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.078e-05/0.8489, allocations: 15.81 kB / 0.5952 GB, free: 14.39 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001285/0.8502, allocations: 397.8 kB / 0.5956 GB, free: 13.99 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.8503, allocations: 11.92 kB / 0.5956 GB, free: 13.98 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.8503, allocations: 0 / 0.5956 GB, free: 13.98 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.8503, allocations: 4 kB / 0.5956 GB, free: 13.98 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006201/0.8509, allocations: 313.8 kB / 0.5959 GB, free: 13.63 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.8509, allocations: 0 / 0.5959 GB, free: 13.63 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001008/0.852, allocations: 119.8 kB / 0.596 GB, free: 13.52 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.779e-06/0.852, allocations: 4 kB / 0.596 GB, free: 13.51 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.94e-05/0.852, allocations: 7.984 kB / 0.596 GB, free: 13.5 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00208/0.8541, allocations: 3.016 MB / 0.599 GB, free: 10.37 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.8541, allocations: 0 / 0.599 GB, free: 10.37 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008254/0.855, allocations: 399.3 kB / 0.5994 GB, free: 9.965 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.8551, allocations: 104.8 kB / 0.5995 GB, free: 9.844 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.571e-05/0.8552, allocations: 3.953 kB / 0.5995 GB, free: 9.84 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003156/0.8555, allocations: 8 kB / 0.5995 GB, free: 9.832 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.308e-05/0.8556, allocations: 27.95 kB / 0.5995 GB, free: 9.805 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.955e-05/0.8557, allocations: 8 kB / 0.5995 GB, free: 9.797 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0001549/0.8558, allocations: 131.2 kB / 0.5996 GB, free: 9.668 MB / 443.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.8558, allocations: 0 / 0.5996 GB, free: 9.668 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.001015/0.8569, allocations: 203.4 kB / 0.5998 GB, free: 9.469 MB / 443.1 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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001786/0.8587, allocations: 1.093 MB / 0.6009 GB, free: 8.352 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.8599, allocations: 303.7 kB / 0.6012 GB, free: 8.055 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.8599, allocations: 0 / 0.6012 GB, free: 8.055 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007898/0.8607, allocations: 180.3 kB / 0.6014 GB, free: 7.879 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.861, allocations: 19.84 kB / 0.6014 GB, free: 7.859 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.8628, allocations: 0.6374 MB / 0.602 GB, free: 7.176 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005599/0.8634, allocations: 0.8458 MB / 0.6028 GB, free: 6.305 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002967/0.8637, allocations: 111.4 kB / 0.6029 GB, free: 6.195 MB / 443.1 MB Notification: Performance of SimCode: time 4.438e-06/0.8637, allocations: 0 / 0.6029 GB, free: 6.195 MB / 443.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.13/3.993, allocations: 13.71 MB / 0.6163 GB, free: 8.473 MB / 459.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_DPMFLOW_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Bend_dp_curvedOverall_DPMFLOW_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Bend_dp_curvedOverall_DPMFLOW.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_curvedOverall_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.Bend.dp_curvedOverall_DPMFLOW_res.mat does not exist to compare? outputFormat=mat