Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.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.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 183.8 kB / 17.06 MB, free: 5.074 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.378/1.378, allocations: 223.2 MB / 241 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 92.78 kB / 292.1 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.349/0.349, allocations: 44.22 MB / 387.5 MB, free: 38.84 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003721/0.0003722, allocations: 8 kB / 460 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3862, allocations: 61.89 MB / 0.5097 GB, free: 38.17 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.53, allocations: 107.6 MB / 0.6147 GB, free: 3.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/0.5304, allocations: 107.9 kB / 0.6148 GB, free: 3.402 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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: Performance of FrontEnd - DAE generated: time 0.1029/0.6333, allocations: 39.01 MB / 0.6529 GB, free: 11.91 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.6333, allocations: 0 / 0.6529 GB, free: 11.91 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.381e-05/0.6334, allocations: 12 kB / 0.6529 GB, free: 11.9 MB / 474.7 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.002657/0.6361, allocations: 1.293 MB / 0.6542 GB, free: 10.55 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/0.6361, allocations: 8.031 kB / 0.6542 GB, free: 10.55 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003076/0.6364, allocations: 172.9 kB / 0.6544 GB, free: 10.37 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002404/0.6367, allocations: 134.3 kB / 0.6545 GB, free: 10.23 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009135/0.6376, allocations: 494.1 kB / 0.655 GB, free: 9.707 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.529e-05/0.6377, allocations: 70 kB / 0.655 GB, free: 9.641 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.6378, allocations: 100 kB / 0.6551 GB, free: 9.543 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.6399, allocations: 1.384 MB / 0.6565 GB, free: 8.121 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.6399, allocations: 0 / 0.6565 GB, free: 8.121 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.343e-05/0.64, allocations: 40 kB / 0.6565 GB, free: 8.082 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.407e-05/0.6401, allocations: 62.09 kB / 0.6566 GB, free: 8.02 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002356/0.6425, allocations: 1.417 MB / 0.658 GB, free: 6.594 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004994/0.6475, allocations: 3.09 MB / 0.661 GB, free: 3.414 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.6488, allocations: 0.7475 MB / 0.6617 GB, free: 2.613 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.769e-05/0.6489, allocations: 8.219 kB / 0.6617 GB, free: 2.605 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.6489, allocations: 46.73 kB / 0.6618 GB, free: 2.551 MB / 474.7 MB Notification: Performance of pre-optimization done (n=32): time 2.505e-06/0.6489, allocations: 0 / 0.6618 GB, free: 2.551 MB / 474.7 MB Notification: Performance of matching and sorting (n=32): time 0.002247/0.6512, allocations: 1.018 MB / 0.6628 GB, free: 1.527 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.6513, allocations: 187.9 kB / 0.6629 GB, free: 1.301 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.6529, allocations: 1.183 MB / 0.6641 GB, free: 108 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 4.577e-05/0.653, allocations: 29.7 kB / 0.6641 GB, free: 72 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004512/0.6534, allocations: 0.5394 MB / 0.6647 GB, free: 15.53 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.6536, allocations: 122.4 kB / 0.6648 GB, free: 15.41 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.6536, allocations: 12 kB / 0.6648 GB, free: 15.39 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.6537, allocations: 334 kB / 0.6651 GB, free: 15.06 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006823/0.6544, allocations: 325 kB / 0.6654 GB, free: 14.75 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000864/0.6553, allocations: 0.6404 MB / 0.666 GB, free: 13.95 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008127/0.6561, allocations: 415.5 kB / 0.6664 GB, free: 13.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.6561, allocations: 4 kB / 0.6664 GB, free: 13.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002091/0.6582, allocations: 1.083 MB / 0.6675 GB, free: 12.45 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.6583, allocations: 14.5 kB / 0.6675 GB, free: 12.44 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.6583, allocations: 12 kB / 0.6675 GB, free: 12.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/0.6583, allocations: 16 kB / 0.6675 GB, free: 12.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/0.6589, allocations: 179.6 kB / 0.6677 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.222e-05/0.659, allocations: 23.94 kB / 0.6677 GB, free: 12.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008088/0.6598, allocations: 158.5 kB / 0.6679 GB, free: 12.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.17e-05/0.6599, allocations: 47.98 kB / 0.6679 GB, free: 12.01 MB / 490.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 () * Number of clocked 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.0004933/0.6604, allocations: 372.1 kB / 0.6683 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002385/0.6606, allocations: 118.5 kB / 0.6684 GB, free: 11.52 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.662, allocations: 0.7858 MB / 0.6692 GB, free: 10.72 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.662, allocations: 8 kB / 0.6692 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.6621, allocations: 0 / 0.6692 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.6621, allocations: 7.984 kB / 0.6692 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.6633, allocations: 0.7101 MB / 0.6699 GB, free: 9.941 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.6633, allocations: 0 / 0.6699 GB, free: 9.941 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000459/0.6638, allocations: 111.9 kB / 0.67 GB, free: 9.832 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/0.6638, allocations: 4 kB / 0.67 GB, free: 9.828 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.6638, allocations: 23.92 kB / 0.67 GB, free: 9.805 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.6639, allocations: 4 kB / 0.67 GB, free: 9.801 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.6639, allocations: 4 kB / 0.67 GB, free: 9.797 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.6655, allocations: 1.283 MB / 0.6713 GB, free: 8.453 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003407/0.6658, allocations: 195.5 kB / 0.6714 GB, free: 8.242 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001676/0.666, allocations: 8 kB / 0.6715 GB, free: 8.234 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/0.6666, allocations: 55.95 kB / 0.6715 GB, free: 8.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.6668, allocations: 43.91 kB / 0.6715 GB, free: 8.137 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.074e-05/0.6668, allocations: 19.98 kB / 0.6716 GB, free: 8.117 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001087/0.6679, allocations: 0.9155 MB / 0.6725 GB, free: 7.199 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6679, allocations: 0 / 0.6725 GB, free: 7.199 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001229/0.6691, allocations: 315.8 kB / 0.6728 GB, free: 6.891 MB / 490.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 () * Number of clocked 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.002518/0.6717, allocations: 2.345 MB / 0.6751 GB, free: 4.492 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001508/0.6732, allocations: 0.7401 MB / 0.6758 GB, free: 3.754 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6732, allocations: 0 / 0.6758 GB, free: 3.754 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006601/0.6739, allocations: 335.7 kB / 0.6761 GB, free: 3.426 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.675, allocations: 252.8 kB / 0.6763 GB, free: 3.176 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2433/0.9183, allocations: 15.17 MB / 0.6912 GB, free: 116.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005441/0.9189, allocations: 1.177 MB / 0.6923 GB, free: 115.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0009747/0.9198, allocations: 396.1 kB / 0.6927 GB, free: 115.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004868/0.9203, allocations: 392.6 kB / 0.6931 GB, free: 115.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.002e-06/0.9203, allocations: 0 / 0.6931 GB, free: 115.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06628/0.9866, allocations: 26.03 MB / 0.7185 GB, free: 114.3 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/0.9869, allocations: 228 kB / 0.7187 GB, free: 114.1 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.833/3.82, allocations: 6.172 kB / 0.7187 GB, free: 114.1 MB / 490.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.mat does not exist to compare? outputFormat=mat