Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.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.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",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.002099/0.002099, allocations: 179.4 kB / 8.363 MB, free: 0.7148 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.111/2.111, 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.001576/0.001576, allocations: 85.66 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.3207/0.3207, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.166e-05/2.174e-05, allocations: 224 / 418.3 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4321/0.4322, allocations: 58.86 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2323/0.6645, allocations: 105.6 MB / 0.5692 GB, free: 9.512 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003862/0.665, allocations: 95.92 kB / 0.5693 GB, free: 9.418 MB / 411.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4477:11-4491:77:writable] Error: Got type mismatch error, but matching types Real. This is a ***COMPILER BUG***, please report it to https://trac.openmodelica.org/OpenModelica. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4453:11-4467:78:writable] Error: Type mismatch in binding x_flow = x_flow, expected subtype of Real[6], got type Real. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Fluid/Dissipation.mo:4502:11-4516:76:writable] Error: Type mismatch in binding x_flow = x_flow, expected subtype of Real[6], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.1747/0.8397, allocations: 37.83 MB / 0.6062 GB, free: 3.121 MB / 443.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.8398, allocations: 0 / 0.6062 GB, free: 3.121 MB / 443.1 MB Notification: Performance of Transformations before backend: time 4.993e-05/0.8398, allocations: 16 kB / 0.6062 GB, free: 3.105 MB / 443.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.003086/0.8429, allocations: 1.188 MB / 0.6074 GB, free: 1.871 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.118e-05/0.843, allocations: 8.031 kB / 0.6074 GB, free: 1.863 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003969/0.8434, allocations: 134.3 kB / 0.6075 GB, free: 1.73 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001304/0.8447, allocations: 490.2 kB / 0.608 GB, free: 1.211 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.768e-05/0.8448, allocations: 32 kB / 0.608 GB, free: 1.18 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.845, allocations: 59.94 kB / 0.6081 GB, free: 1.121 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002679/0.8477, allocations: 1.152 MB / 0.6092 GB, free: 15.96 MB / 459.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003017/0.8508, allocations: 1.154 MB / 0.6103 GB, free: 14.77 MB / 459.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.549e-05/0.8509, allocations: 3.938 kB / 0.6104 GB, free: 14.77 MB / 459.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.851, allocations: 3.953 kB / 0.6104 GB, free: 14.77 MB / 459.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000129/0.8512, allocations: 66.08 kB / 0.6104 GB, free: 14.7 MB / 459.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006998/0.8582, allocations: 2.672 MB / 0.613 GB, free: 11.96 MB / 459.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.8599, allocations: 0.643 MB / 0.6137 GB, free: 11.27 MB / 459.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006196/0.8606, allocations: 225.5 kB / 0.6139 GB, free: 11.03 MB / 459.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-05/0.8607, allocations: 8.234 kB / 0.6139 GB, free: 11.02 MB / 459.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.704e-05/0.8607, allocations: 46.73 kB / 0.6139 GB, free: 10.96 MB / 459.1 MB Notification: Performance of pre-optimization done (n=32): time 3.927e-06/0.8608, allocations: 0 / 0.6139 GB, free: 10.96 MB / 459.1 MB Notification: Performance of matching and sorting (n=32): time 0.00182/0.8626, allocations: 0.5145 MB / 0.6144 GB, free: 10.45 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.8627, allocations: 192.1 kB / 0.6146 GB, free: 10.21 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.8638, allocations: 0.5543 MB / 0.6151 GB, free: 9.652 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00011/0.864, allocations: 25.7 kB / 0.6152 GB, free: 9.621 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005714/0.8645, allocations: 0.5899 MB / 0.6157 GB, free: 9.023 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.8648, allocations: 110.5 kB / 0.6159 GB, free: 8.914 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.464e-05/0.8648, allocations: 0 / 0.6159 GB, free: 8.914 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.865, allocations: 334.8 kB / 0.6162 GB, free: 8.578 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007294/0.8658, allocations: 237.4 kB / 0.6164 GB, free: 8.344 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009914/0.8668, allocations: 0.5425 MB / 0.6169 GB, free: 7.648 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009044/0.8677, allocations: 315.5 kB / 0.6172 GB, free: 7.34 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/0.8678, allocations: 7.953 kB / 0.6172 GB, free: 7.332 MB / 459.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002305/0.8701, allocations: 0.7513 MB / 0.618 GB, free: 6.574 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.8702, allocations: 8 kB / 0.618 GB, free: 6.566 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.358e-05/0.8702, allocations: 12 kB / 0.618 GB, free: 6.555 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.447e-05/0.8702, allocations: 16 kB / 0.618 GB, free: 6.539 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.8715, allocations: 172 kB / 0.6182 GB, free: 6.371 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.427e-05/0.8716, allocations: 35.73 kB / 0.6182 GB, free: 6.336 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.8727, allocations: 83.48 kB / 0.6183 GB, free: 6.254 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/0.8729, allocations: 51.98 kB / 0.6183 GB, free: 6.203 MB / 459.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 26 (IN_var_3[6].target,IN_var_3[5].target,IN_var_3[4].target,IN_var_3[3].target,IN_var_3[2].target,IN_var_3[1].target,IN_con_3[6].target,IN_con_3[5].target,IN_con_3[4].target,IN_con_3[3].target,IN_con_3[2].target,IN_con_3[1].target,IN_var_2.target,IN_con_2.target,IN_var_1[6].target,IN_var_1[5].target,IN_var_1[4].target,IN_var_1[3].target,IN_var_1[2].target,IN_var_1[1].target,IN_con_1[6].target,IN_con_1[5].target,IN_con_1[4].target,IN_con_1[3].target,IN_con_1[2].target,IN_con_1[1].target) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002814/0.8732, allocations: 154.9 kB / 0.6185 GB, free: 6.043 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001763/0.875, allocations: 0.5202 MB / 0.619 GB, free: 5.516 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002829/0.8753, allocations: 71.06 kB / 0.6191 GB, free: 5.445 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/0.8775, allocations: 0.672 MB / 0.6197 GB, free: 4.758 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.8776, allocations: 8 kB / 0.6197 GB, free: 4.75 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.8776, allocations: 4 kB / 0.6197 GB, free: 4.746 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.8776, allocations: 3.984 kB / 0.6197 GB, free: 4.742 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.8795, allocations: 0.6459 MB / 0.6204 GB, free: 4.059 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.8796, allocations: 0 / 0.6204 GB, free: 4.059 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.8806, allocations: 123.8 kB / 0.6205 GB, free: 3.938 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.8806, allocations: 0 / 0.6205 GB, free: 3.938 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.008e-05/0.8807, allocations: 12 kB / 0.6205 GB, free: 3.926 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.488e-06/0.8808, allocations: 7.938 kB / 0.6205 GB, free: 3.918 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.057e-06/0.8808, allocations: 3.984 kB / 0.6205 GB, free: 3.914 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.8828, allocations: 1.031 MB / 0.6215 GB, free: 2.832 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.8831, allocations: 140.1 kB / 0.6216 GB, free: 2.676 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/0.8832, allocations: 7.938 kB / 0.6216 GB, free: 2.668 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009824/0.8842, allocations: 47.95 kB / 0.6217 GB, free: 2.621 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.8844, allocations: 39.89 kB / 0.6217 GB, free: 2.582 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.733e-05/0.8845, allocations: 20 kB / 0.6218 GB, free: 2.562 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0007584/0.8853, allocations: 415.1 kB / 0.6221 GB, free: 2.16 MB / 459.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.8853, allocations: 0 / 0.6221 GB, free: 2.16 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001997/0.8873, allocations: 346.7 kB / 0.6225 GB, free: 1.82 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003306/0.8907, allocations: 2.141 MB / 0.6246 GB, free: 15.63 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.8926, allocations: 0.5489 MB / 0.6251 GB, free: 15.09 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.8926, allocations: 0 / 0.6251 GB, free: 15.09 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007461/0.8934, allocations: 244.6 kB / 0.6253 GB, free: 14.85 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.8947, allocations: 111.6 kB / 0.6254 GB, free: 14.74 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005519/0.9003, allocations: 1.631 MB / 0.627 GB, free: 13.05 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001238/0.9016, allocations: 1.178 MB / 0.6282 GB, free: 11.84 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.9026, allocations: 387.3 kB / 0.6286 GB, free: 11.46 MB / 475.1 MB Notification: Performance of SimCode: time 1.303e-06/0.9027, allocations: 3.938 kB / 0.6286 GB, free: 11.46 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.118/4.021, allocations: 17.62 MB / 0.6458 GB, free: 136.3 MB / 475.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.mat does not exist to compare? outputFormat=mat