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.002357/0.002357, allocations: 179.1 kB / 13.66 MB, free: 1.66 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.172/2.172, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001117/0.001117, allocations: 86.38 kB / 267.5 MB, free: 14.12 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.3011/0.3011, allocations: 43.48 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.465e-05/3.491e-05, allocations: 4 kB / 425.4 MB, free: 23.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1225, allocations: 58.85 MB / 484.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5089/0.6315, allocations: 98.47 MB / 0.5691 GB, free: 4.684 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003757/0.632, allocations: 101.2 kB / 0.5692 GB, free: 4.625 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1113/0.7433, allocations: 23.56 MB / 0.5922 GB, free: 472 kB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.7434, allocations: 0 / 0.5922 GB, free: 472 kB / 394.7 MB Notification: Performance of Transformations before backend: time 2.115e-05/0.7434, allocations: 8 kB / 0.5922 GB, free: 464 kB / 394.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.001746/0.7452, allocations: 0.6997 MB / 0.5929 GB, free: 15.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/0.7452, allocations: 8.031 kB / 0.5929 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002097/0.7455, allocations: 107.1 kB / 0.593 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.7456, allocations: 55.34 kB / 0.593 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006826/0.7463, allocations: 312.8 kB / 0.5933 GB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.574e-05/0.7464, allocations: 37.75 kB / 0.5934 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000124/0.7465, allocations: 56.23 kB / 0.5934 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.7483, allocations: 0.7143 MB / 0.5941 GB, free: 14.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/0.7483, allocations: 3.938 kB / 0.5941 GB, free: 14.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.322e-05/0.7484, allocations: 24.5 kB / 0.5941 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.94e-05/0.7485, allocations: 48.72 kB / 0.5942 GB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/0.7504, allocations: 0.7586 MB / 0.5949 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003984/0.7544, allocations: 1.532 MB / 0.5964 GB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.7556, allocations: 436 kB / 0.5968 GB, free: 12.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004001/0.7561, allocations: 140.3 kB / 0.597 GB, free: 12.19 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.564e-05/0.7562, allocations: 14.7 kB / 0.597 GB, free: 12.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.656e-05/0.7562, allocations: 42.23 kB / 0.597 GB, free: 12.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=28): time 3.096e-06/0.7562, allocations: 0 / 0.597 GB, free: 12.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=28): time 0.00122/0.7575, allocations: 381.1 kB / 0.5974 GB, free: 11.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.7575, allocations: 55.41 kB / 0.5974 GB, free: 11.72 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009914/0.7585, allocations: 0.517 MB / 0.598 GB, free: 11.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.751e-05/0.7586, allocations: 29.2 kB / 0.598 GB, free: 11.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002559/0.7589, allocations: 320.5 kB / 0.5983 GB, free: 11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.759, allocations: 99.45 kB / 0.5984 GB, free: 10.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.7591, allocations: 13.06 kB / 0.5984 GB, free: 10.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.7593, allocations: 336.5 kB / 0.5987 GB, free: 10.58 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004944/0.7598, allocations: 167.9 kB / 0.5989 GB, free: 10.44 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007107/0.7605, allocations: 416 kB / 0.5993 GB, free: 9.957 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006888/0.7612, allocations: 247.3 kB / 0.5995 GB, free: 9.746 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-06/0.7612, allocations: 0 / 0.5995 GB, free: 9.746 MB / 410.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001694/0.7629, allocations: 0.6222 MB / 0.6001 GB, free: 9.191 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.763, allocations: 12 kB / 0.6001 GB, free: 9.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.763, allocations: 8 kB / 0.6001 GB, free: 9.172 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.781e-05/0.7631, allocations: 12 kB / 0.6001 GB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/0.7651, allocations: 243.1 kB / 0.6004 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005526/0.7707, allocations: 7.315 MB / 0.6075 GB, free: 1.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007981/0.7715, allocations: 76.83 kB / 0.6076 GB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.567e-05/0.7716, allocations: 35.92 kB / 0.6076 GB, free: 1.312 MB / 410.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].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 (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.0002403/0.7719, allocations: 153.8 kB / 0.6078 GB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.772, allocations: 43.44 kB / 0.6078 GB, free: 1.125 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/0.7738, allocations: 0.5396 MB / 0.6083 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.7738, allocations: 4 kB / 0.6083 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.7738, allocations: 4 kB / 0.6083 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.7738, allocations: 0 / 0.6083 GB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009112/0.7748, allocations: 431.1 kB / 0.6088 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.7748, allocations: 112 / 0.6088 GB, free: 224 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.7766, allocations: 206.5 kB / 0.609 GB, free: 20 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.627e-06/0.7766, allocations: 0 / 0.609 GB, free: 20 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.576e-05/0.7767, allocations: 14.67 kB / 0.609 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005545/0.7822, allocations: 7.301 MB / 0.6161 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.7823, allocations: 0 / 0.6161 GB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.7835, allocations: 485.3 kB / 0.6166 GB, free: 8.055 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.7837, allocations: 124.5 kB / 0.6167 GB, free: 7.914 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001108/0.7838, allocations: 20 kB / 0.6167 GB, free: 7.898 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004446/0.7843, allocations: 10.94 kB / 0.6167 GB, free: 7.891 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/0.7844, allocations: 27.33 kB / 0.6167 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.251e-05/0.7845, allocations: 15.3 kB / 0.6168 GB, free: 7.855 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007594/0.7853, allocations: 397.5 kB / 0.6171 GB, free: 7.543 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.7853, allocations: 0 / 0.6171 GB, free: 7.543 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001075/0.7864, allocations: 191.7 kB / 0.6173 GB, free: 7.371 MB / 426.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 () * 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.002143/0.7885, allocations: 1.175 MB / 0.6185 GB, free: 6.215 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002573/0.7912, allocations: 0.5426 MB / 0.619 GB, free: 5.723 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.7912, allocations: 0 / 0.619 GB, free: 5.723 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001698/0.7929, allocations: 286 kB / 0.6193 GB, free: 5.461 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008323/0.7938, allocations: 116.8 kB / 0.6194 GB, free: 5.375 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.7966, allocations: 0.9024 MB / 0.6203 GB, free: 4.492 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007147/0.7974, allocations: 0.9047 MB / 0.6211 GB, free: 3.574 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000335/0.7977, allocations: 153.4 kB / 0.6213 GB, free: 3.52 MB / 426.7 MB Notification: Performance of SimCode: time 9.72e-07/0.7977, allocations: 0 / 0.6213 GB, free: 3.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.601/4.399, allocations: 34.02 MB / 0.6545 GB, free: 1.512 MB / 458.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