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_overall_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_overall_KC,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_overall_KC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_overall_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.001542/0.001543, allocations: 187 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.396/2.396, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001147/0.001147, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3004/0.3004, allocations: 43.56 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005403/0.0005405, allocations: 12 kB / 431.5 MB, free: 20.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1412, allocations: 58.85 MB / 490.3 MB, free: 9.223 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC): time 0.003504/0.1448, allocations: 1.759 MB / 492.1 MB, free: 7.441 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003979/0.1488, allocations: 1.591 MB / 493.7 MB, free: 5.844 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002302/0.1491, allocations: 0 / 493.7 MB, free: 5.844 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000374/0.1495, allocations: 67.64 kB / 493.8 MB, free: 5.777 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004879/0.15, allocations: 99.67 kB / 493.9 MB, free: 5.68 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001419/0.1514, allocations: 283.2 kB / 494.1 MB, free: 5.402 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006834/0.1521, allocations: 319.2 kB / 494.4 MB, free: 5.09 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001548/0.1523, allocations: 65.05 kB / 494.5 MB, free: 5.023 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003165/0.1527, allocations: 143.3 kB / 494.7 MB, free: 4.883 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000322/0.153, allocations: 171.2 kB / 494.8 MB, free: 4.715 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.795e-05/0.1531, allocations: 15.94 kB / 494.8 MB, free: 4.699 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.1547, allocations: 0.5812 MB / 495.4 MB, free: 4.117 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.155, allocations: 99.58 kB / 495.5 MB, free: 4.02 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001813/0.1552, allocations: 93.45 kB / 495.6 MB, free: 3.922 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.1563, allocations: 479.1 kB / 496.1 MB, free: 3.453 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.1563, allocations: 0 / 496.1 MB, free: 3.453 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1563, allocations: 3.938 kB / 496.1 MB, free: 3.449 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.1564, allocations: 0 / 496.1 MB, free: 3.449 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.001831/0.1582, allocations: 0.725 MB / 496.8 MB, free: 2.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.969e-05/0.1583, allocations: 12.03 kB / 496.8 MB, free: 2.668 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001949/0.1585, allocations: 102.5 kB / 496.9 MB, free: 2.559 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.1586, allocations: 55.3 kB / 497 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006279/0.1593, allocations: 318.2 kB / 497.3 MB, free: 2.152 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-05/0.1594, allocations: 33.31 kB / 497.3 MB, free: 2.117 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.1595, allocations: 51.98 kB / 497.4 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001981/0.1615, allocations: 0.752 MB / 498.1 MB, free: 1.312 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.687e-05/0.1616, allocations: 4 kB / 498.1 MB, free: 1.309 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-05/0.1617, allocations: 23.98 kB / 498.1 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001236/0.1618, allocations: 57.2 kB / 498.2 MB, free: 1.227 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.164, allocations: 0.8052 MB / 499 MB, free: 428 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004036/0.1681, allocations: 1.539 MB / 0.4888 GB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.1696, allocations: 456.5 kB / 0.4892 GB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.413e-05/0.1697, allocations: 12.22 kB / 0.4893 GB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.1698, allocations: 34.8 kB / 0.4893 GB, free: 14.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 3.307e-06/0.1698, allocations: 0 / 0.4893 GB, free: 14.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.002069/0.1719, allocations: 0.56 MB / 0.4898 GB, free: 13.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.172, allocations: 55.41 kB / 0.4899 GB, free: 13.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.1732, allocations: 0.5796 MB / 0.4905 GB, free: 13.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.639e-05/0.1733, allocations: 29.81 kB / 0.4905 GB, free: 13.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002997/0.1736, allocations: 317.9 kB / 0.4908 GB, free: 12.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.1737, allocations: 102.5 kB / 0.4909 GB, free: 12.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.375e-05/0.1738, allocations: 8 kB / 0.4909 GB, free: 12.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001854/0.174, allocations: 338.8 kB / 0.4912 GB, free: 12.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006741/0.1747, allocations: 192.9 kB / 0.4914 GB, free: 12.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008809/0.1756, allocations: 436.9 kB / 0.4918 GB, free: 11.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000866/0.1765, allocations: 268.6 kB / 0.4921 GB, free: 11.31 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.1765, allocations: 4 kB / 0.4921 GB, free: 11.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.002036/0.1785, allocations: 0.6537 MB / 0.4927 GB, free: 10.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.384e-05/0.1786, allocations: 12.03 kB / 0.4927 GB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.1787, allocations: 8 kB / 0.4927 GB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.704e-05/0.1787, allocations: 15.95 kB / 0.4927 GB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002126/0.1808, allocations: 247.6 kB / 0.493 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006027/0.1869, allocations: 7.321 MB / 0.5001 GB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008495/0.1878, allocations: 91 kB / 0.5002 GB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.989e-05/0.1879, allocations: 31.98 kB / 0.5003 GB, free: 2.645 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 24 (m_flow_IN_con_4[3].roughness,m_flow_IN_con_4[3].target,m_flow_IN_con_4[2].roughness,m_flow_IN_con_4[2].target,m_flow_IN_con_4[1].roughness,m_flow_IN_con_4[1].target,m_flow_IN_con_3[3].roughness,m_flow_IN_con_3[3].target,m_flow_IN_con_3[2].roughness,m_flow_IN_con_3[2].target,m_flow_IN_con_3[1].roughness,m_flow_IN_con_3[1].target,m_flow_IN_con_2[3].roughness,m_flow_IN_con_2[3].target,m_flow_IN_con_2[2].roughness,m_flow_IN_con_2[2].target,m_flow_IN_con_2[1].roughness,m_flow_IN_con_2[1].target,m_flow_IN_con_1[3].roughness,m_flow_IN_con_1[3].target,m_flow_IN_con_1[2].roughness,m_flow_IN_con_1[2].target,m_flow_IN_con_1[1].roughness,m_flow_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 (64): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * 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: 12 {1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000555/0.1885, allocations: 269.4 kB / 0.5005 GB, free: 2.371 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.1886, allocations: 63.47 kB / 0.5006 GB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00203/0.1907, allocations: 0.5642 MB / 0.5011 GB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.1907, allocations: 4 kB / 0.5011 GB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.1907, allocations: 0 / 0.5011 GB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.1908, allocations: 3.984 kB / 0.5011 GB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009778/0.1918, allocations: 437.2 kB / 0.5015 GB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/0.1918, allocations: 4 kB / 0.5015 GB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/0.1937, allocations: 203.8 kB / 0.5017 GB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.1938, allocations: 0 / 0.5017 GB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.275e-05/0.1938, allocations: 19.94 kB / 0.5018 GB, free: 1.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005762/0.1996, allocations: 7.298 MB / 0.5089 GB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.1997, allocations: 4.031 kB / 0.5089 GB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.2012, allocations: 0.5038 MB / 0.5094 GB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002271/0.2015, allocations: 128.5 kB / 0.5095 GB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.2016, allocations: 7.953 kB / 0.5095 GB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004617/0.2021, allocations: 15.98 kB / 0.5095 GB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.2022, allocations: 19.97 kB / 0.5095 GB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.056e-05/0.2023, allocations: 19.98 kB / 0.5096 GB, free: 8.719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007929/0.2031, allocations: 402.8 kB / 0.51 GB, free: 8.328 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.2031, allocations: 11.88 kB / 0.51 GB, free: 8.316 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001116/0.2042, allocations: 183.8 kB / 0.5101 GB, free: 8.137 MB / 362.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * 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: 12 {1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002375/0.2066, allocations: 1.169 MB / 0.5113 GB, free: 6.941 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00325/0.2099, allocations: 0.6146 MB / 0.5119 GB, free: 6.328 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.21, allocations: 0 / 0.5119 GB, free: 6.328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002294/0.2123, allocations: 363.6 kB / 0.5122 GB, free: 5.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009269/0.2133, allocations: 109.8 kB / 0.5123 GB, free: 5.863 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3367/0.55, allocations: 8.886 MB / 0.521 GB, free: 44.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005601/0.5507, allocations: 0.9066 MB / 0.5219 GB, free: 43.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004186/0.5511, allocations: 155.1 kB / 0.522 GB, free: 43.52 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/0.5511, allocations: 4.625 kB / 0.522 GB, free: 43.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.761/4.312, allocations: 33.96 MB / 0.5552 GB, free: 21.11 MB / 362.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_KC_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_overall_KC_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_overall_KC.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_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_overall_KC_res.mat does not exist to compare? outputFormat=mat