Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.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.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_trunk_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_trunk_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 199.7 kB / 8.541 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.163/1.163, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009589/0.0009594, allocations: 91.41 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1874/0.1874, allocations: 45.14 MB / 383.3 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2329/0.4204, allocations: 69.39 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08511/0.5055, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2644/0.77, allocations: 107.8 MB / 0.6092 GB, free: 11 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.7703, allocations: 101.7 kB / 0.6093 GB, free: 10.94 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Fluid/Dissipation.mo:4393:11-4407: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 trunk/Fluid/Dissipation.mo:4369:11-4383: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 trunk/Fluid/Dissipation.mo:4418:11-4432:76:writable] Error: Type mismatch in binding x_flow = x_flow, expected subtype of Real[6], got type Real. 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.1012/0.8714, allocations: 39.7 MB / 0.6481 GB, free: 9.457 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.8715, allocations: 8 kB / 0.6481 GB, free: 9.449 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008517/0.8723, allocations: 222.3 kB / 0.6483 GB, free: 9.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007114/0.8731, allocations: 498.7 kB / 0.6488 GB, free: 8.723 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.8731, allocations: 36 kB / 0.6488 GB, free: 8.688 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.8732, allocations: 56 kB / 0.6488 GB, free: 8.633 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001383/0.8746, allocations: 1.186 MB / 0.65 GB, free: 7.824 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.8762, allocations: 1.188 MB / 0.6512 GB, free: 6.887 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.8762, allocations: 0 / 0.6512 GB, free: 6.887 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.063e-05/0.8763, allocations: 3.984 kB / 0.6512 GB, free: 6.883 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.175e-05/0.8763, allocations: 62.09 kB / 0.6512 GB, free: 6.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003916/0.8803, allocations: 2.701 MB / 0.6539 GB, free: 4.441 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009082/0.8812, allocations: 0.6825 MB / 0.6545 GB, free: 3.758 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000351/0.8815, allocations: 241.8 kB / 0.6548 GB, free: 3.527 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-05/0.8816, allocations: 16.14 kB / 0.6548 GB, free: 3.512 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.8816, allocations: 42.3 kB / 0.6548 GB, free: 3.465 MB / 442.7 MB Notification: Performance of pre-optimization done (n=32): time 2.174e-06/0.8817, allocations: 0 / 0.6548 GB, free: 3.465 MB / 442.7 MB Notification: Performance of matching and sorting (n=32): time 0.001059/0.8827, allocations: 0.5574 MB / 0.6554 GB, free: 2.945 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.224e-05/0.8828, allocations: 188.1 kB / 0.6555 GB, free: 2.719 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005632/0.8834, allocations: 0.5584 MB / 0.6561 GB, free: 2.258 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.8834, allocations: 29.69 kB / 0.6561 GB, free: 2.223 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.8837, allocations: 489.6 kB / 0.6566 GB, free: 1.793 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.344e-05/0.8838, allocations: 107.9 kB / 0.6567 GB, free: 1.699 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.45e-05/0.8838, allocations: 0 / 0.6567 GB, free: 1.699 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.884, allocations: 389.3 kB / 0.657 GB, free: 1.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/0.8844, allocations: 248.5 kB / 0.6573 GB, free: 1.133 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000534/0.8849, allocations: 0.5747 MB / 0.6578 GB, free: 460 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004777/0.8854, allocations: 335.6 kB / 0.6582 GB, free: 164 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.8854, allocations: 11.94 kB / 0.6582 GB, free: 152 kB / 442.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001462/0.8869, allocations: 0.8213 MB / 0.659 GB, free: 15.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.8869, allocations: 11.91 kB / 0.659 GB, free: 15.38 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.8869, allocations: 12 kB / 0.659 GB, free: 15.37 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/0.887, allocations: 19.98 kB / 0.659 GB, free: 15.35 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006992/0.8877, allocations: 179.6 kB / 0.6592 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.147e-05/0.8877, allocations: 19.92 kB / 0.6592 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00062/0.8883, allocations: 91.5 kB / 0.6593 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.91e-05/0.8884, allocations: 47.23 kB / 0.6593 GB, free: 15.03 MB / 458.7 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.0001604/0.8886, allocations: 142.3 kB / 0.6595 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001931/0.8888, allocations: 71.06 kB / 0.6595 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001426/0.8902, allocations: 0.8251 MB / 0.6604 GB, free: 14.04 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.8902, allocations: 8 kB / 0.6604 GB, free: 14.03 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.8902, allocations: 0 / 0.6604 GB, free: 14.03 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.8903, allocations: 0 / 0.6604 GB, free: 14.03 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001071/0.8913, allocations: 0.6623 MB / 0.661 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.8913, allocations: 11.98 kB / 0.661 GB, free: 13.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005229/0.8919, allocations: 119.4 kB / 0.6611 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.8919, allocations: 4 kB / 0.6611 GB, free: 13.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/0.892, allocations: 15.92 kB / 0.6612 GB, free: 13.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.892, allocations: 4 kB / 0.6612 GB, free: 13.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.892, allocations: 0 / 0.6612 GB, free: 13.3 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001032/0.893, allocations: 1.078 MB / 0.6622 GB, free: 12.22 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001135/0.8942, allocations: 1.464 MB / 0.6636 GB, free: 10.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001253/0.8943, allocations: 140.2 kB / 0.6638 GB, free: 10.61 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.8944, allocations: 4 kB / 0.6638 GB, free: 10.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000591/0.895, allocations: 51.95 kB / 0.6638 GB, free: 10.55 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.8951, allocations: 38.3 kB / 0.6639 GB, free: 10.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-05/0.8952, allocations: 19.98 kB / 0.6639 GB, free: 10.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003787/0.8956, allocations: 422.3 kB / 0.6643 GB, free: 10.18 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001812/0.8974, allocations: 387.8 kB / 0.6647 GB, free: 9.82 MB / 458.7 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.0006188/0.898, allocations: 334.9 kB / 0.665 GB, free: 9.492 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0008941/0.8989, allocations: 0.5839 MB / 0.6655 GB, free: 8.973 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.8989, allocations: 4.062 kB / 0.6655 GB, free: 8.969 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004116/0.8994, allocations: 264.8 kB / 0.6658 GB, free: 8.738 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006849/0.9, allocations: 103.1 kB / 0.6659 GB, free: 8.668 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.9025, allocations: 1.357 MB / 0.6672 GB, free: 7.34 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.9036, allocations: 1.271 MB / 0.6685 GB, free: 6.074 MB / 458.7 MB Notification: Performance of SimCode: time 6.01e-07/0.9036, allocations: 0 / 0.6685 GB, free: 6.074 MB / 458.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.mat does not exist to compare? outputFormat=mat