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.002075/0.002075, allocations: 177.8 kB / 8.36 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.443/2.443, 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.00115/0.001149, allocations: 90.88 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.29/0.29, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.665e-05/2.669e-05, allocations: 4.219 kB / 418.4 MB, free: 40.92 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4123, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1786/0.591, allocations: 97.81 MB / 0.5615 GB, free: 1.375 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004075/0.5914, allocations: 95.94 kB / 0.5616 GB, free: 1.281 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1102/0.7016, allocations: 23.32 MB / 0.5844 GB, free: 9.77 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.7017, allocations: 4 kB / 0.5844 GB, free: 9.766 MB / 427.1 MB Notification: Performance of Transformations before backend: time 2.099e-05/0.7017, allocations: 4 kB / 0.5844 GB, free: 9.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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.001734/0.7035, allocations: 0.694 MB / 0.5851 GB, free: 9.02 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.7035, allocations: 8.031 kB / 0.5851 GB, free: 9.012 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/0.7037, allocations: 55.34 kB / 0.5851 GB, free: 8.957 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006759/0.7044, allocations: 314.2 kB / 0.5854 GB, free: 8.609 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.7045, allocations: 16 kB / 0.5855 GB, free: 8.594 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.7046, allocations: 36 kB / 0.5855 GB, free: 8.559 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001642/0.7062, allocations: 0.6779 MB / 0.5862 GB, free: 7.883 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.7078, allocations: 0.6324 MB / 0.5868 GB, free: 7.242 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.7079, allocations: 0 / 0.5868 GB, free: 7.242 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.847e-05/0.708, allocations: 0 / 0.5868 GB, free: 7.242 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001075/0.7081, allocations: 45.3 kB / 0.5868 GB, free: 7.199 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.7122, allocations: 1.374 MB / 0.5882 GB, free: 5.785 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.7137, allocations: 0.5065 MB / 0.5886 GB, free: 5.27 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004528/0.7142, allocations: 164.7 kB / 0.5888 GB, free: 5.105 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.709e-05/0.7142, allocations: 11.92 kB / 0.5888 GB, free: 5.094 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.7143, allocations: 42.52 kB / 0.5889 GB, free: 5.043 MB / 427.1 MB Notification: Performance of pre-optimization done (n=37): time 3.798e-06/0.7143, allocations: 0 / 0.5889 GB, free: 5.043 MB / 427.1 MB Notification: Performance of matching and sorting (n=37): time 0.001298/0.7156, allocations: 412.9 kB / 0.5893 GB, free: 4.633 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.7157, allocations: 59.34 kB / 0.5893 GB, free: 4.562 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004153/0.7161, allocations: 245.9 kB / 0.5895 GB, free: 4.316 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.7162, allocations: 25.7 kB / 0.5896 GB, free: 4.285 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000262/0.7165, allocations: 353.9 kB / 0.5899 GB, free: 3.938 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.7167, allocations: 130.1 kB / 0.59 GB, free: 3.809 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.773e-05/0.7167, allocations: 0 / 0.59 GB, free: 3.809 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.7169, allocations: 338.8 kB / 0.5904 GB, free: 3.469 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005283/0.7174, allocations: 189.4 kB / 0.5905 GB, free: 3.285 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007942/0.7182, allocations: 433.9 kB / 0.5909 GB, free: 2.746 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007703/0.719, allocations: 275.4 kB / 0.5912 GB, free: 2.477 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.221e-05/0.7191, allocations: 4 kB / 0.5912 GB, free: 2.473 MB / 427.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001833/0.7209, allocations: 0.6137 MB / 0.5918 GB, free: 1.852 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/0.721, allocations: 8 kB / 0.5918 GB, free: 1.844 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.721, allocations: 8.844 kB / 0.5918 GB, free: 1.836 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.851e-05/0.7211, allocations: 19.94 kB / 0.5918 GB, free: 1.816 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002191/0.7233, allocations: 263.6 kB / 0.5921 GB, free: 1.559 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005643/0.729, allocations: 7.329 MB / 0.5993 GB, free: 9.949 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000782/0.7298, allocations: 47.86 kB / 0.5993 GB, free: 9.902 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.436e-05/0.7299, allocations: 32 kB / 0.5993 GB, free: 9.871 MB / 443.1 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].target,m_flow_IN_con_4[3].roughness,m_flow_IN_con_4[2].target,m_flow_IN_con_4[2].roughness,m_flow_IN_con_4[1].target,m_flow_IN_con_4[1].roughness,m_flow_IN_con_3[3].target,m_flow_IN_con_3[3].roughness,m_flow_IN_con_3[2].target,m_flow_IN_con_3[2].roughness,m_flow_IN_con_3[1].target,m_flow_IN_con_3[1].roughness,m_flow_IN_con_2[3].target,m_flow_IN_con_2[3].roughness,m_flow_IN_con_2[2].target,m_flow_IN_con_2[2].roughness,m_flow_IN_con_2[1].target,m_flow_IN_con_2[1].roughness,m_flow_IN_con_1[3].target,m_flow_IN_con_1[3].roughness,m_flow_IN_con_1[2].target,m_flow_IN_con_1[2].roughness,m_flow_IN_con_1[1].target,m_flow_IN_con_1[1].roughness) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 61 * 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.000274/0.7302, allocations: 151 kB / 0.5995 GB, free: 9.719 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001236/0.7314, allocations: 412.5 kB / 0.5999 GB, free: 9.309 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.7316, allocations: 27.67 kB / 0.5999 GB, free: 9.281 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.7334, allocations: 0.5594 MB / 0.6004 GB, free: 8.715 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.955e-05/0.7335, allocations: 4 kB / 0.6004 GB, free: 8.711 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.7336, allocations: 0 / 0.6004 GB, free: 8.711 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.7336, allocations: 3.984 kB / 0.6005 GB, free: 8.707 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009866/0.7346, allocations: 397.7 kB / 0.6008 GB, free: 8.281 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.7346, allocations: 4 kB / 0.6008 GB, free: 8.277 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/0.7365, allocations: 211.8 kB / 0.601 GB, free: 8.07 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.94e-05/0.7366, allocations: 7.953 kB / 0.601 GB, free: 8.062 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.02e-05/0.7367, allocations: 15.92 kB / 0.6011 GB, free: 8.047 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005568/0.7423, allocations: 7.318 MB / 0.6082 GB, free: 460 kB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.421e-05/0.7423, allocations: 11.95 kB / 0.6082 GB, free: 448 kB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.7437, allocations: 0.5071 MB / 0.6087 GB, free: 15.91 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.7439, allocations: 112.6 kB / 0.6088 GB, free: 15.79 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.182e-05/0.744, allocations: 0 / 0.6088 GB, free: 15.79 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004432/0.7444, allocations: 16.08 kB / 0.6088 GB, free: 15.77 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.7446, allocations: 35.94 kB / 0.6089 GB, free: 15.73 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.048e-05/0.7447, allocations: 19.98 kB / 0.6089 GB, free: 15.71 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0002606/0.7449, allocations: 174 kB / 0.6091 GB, free: 15.55 MB / 459.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.745, allocations: 0 / 0.6091 GB, free: 15.55 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001237/0.7462, allocations: 199.5 kB / 0.6092 GB, free: 15.35 MB / 459.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 (37): * Single equations (assignments): 25 * 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.002244/0.7485, allocations: 1.21 MB / 0.6104 GB, free: 14.12 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.7512, allocations: 0.5676 MB / 0.611 GB, free: 13.55 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 8.807e-06/0.7513, allocations: 4 kB / 0.611 GB, free: 13.55 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.7531, allocations: 323.5 kB / 0.6113 GB, free: 13.23 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004849/0.7536, allocations: 24.36 kB / 0.6113 GB, free: 13.2 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003056/0.7567, allocations: 0.8607 MB / 0.6122 GB, free: 12.29 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000822/0.7576, allocations: 0.9132 MB / 0.613 GB, free: 11.36 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000404/0.758, allocations: 151.4 kB / 0.6132 GB, free: 11.21 MB / 459.1 MB Notification: Performance of SimCode: time 1.523e-06/0.758, allocations: 0 / 0.6132 GB, free: 11.21 MB / 459.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.771/4.529, allocations: 32.43 MB / 0.6449 GB, free: 146.4 MB / 475.1 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