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_laminar.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_laminar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_laminar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_laminar,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_laminar",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.002219/0.002219, allocations: 180.3 kB / 8.365 MB, free: 0.7109 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.15/2.15, 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.001065/0.001065, allocations: 83.16 kB / 262.1 MB, free: 13.88 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.2993/0.2993, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.617e-05/2.62e-05, allocations: 0 / 418.4 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4262/0.4262, allocations: 58.85 MB / 477.2 MB, free: 5.293 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1743/0.6006, allocations: 93.12 MB / 0.557 GB, free: 6.152 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003794/0.601, allocations: 95.42 kB / 0.557 GB, free: 6.062 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05569/0.6568, allocations: 12.12 MB / 0.5689 GB, free: 9.754 MB / 411.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.6568, allocations: 4 kB / 0.5689 GB, free: 9.75 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.147e-05/0.6569, allocations: 8 kB / 0.5689 GB, free: 9.742 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001531/0.6584, allocations: 0.6514 MB / 0.5695 GB, free: 9.047 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.6585, allocations: 16.03 kB / 0.5695 GB, free: 9.031 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001534/0.6586, allocations: 47.39 kB / 0.5696 GB, free: 8.984 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006338/0.6593, allocations: 290.4 kB / 0.5699 GB, free: 8.66 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.6593, allocations: 16 kB / 0.5699 GB, free: 8.645 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.969e-05/0.6594, allocations: 31.98 kB / 0.5699 GB, free: 8.613 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001013/0.6605, allocations: 386.3 kB / 0.5703 GB, free: 8.234 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.6618, allocations: 0.5525 MB / 0.5708 GB, free: 7.664 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.6618, allocations: 0 / 0.5708 GB, free: 7.664 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.634e-05/0.6619, allocations: 8 kB / 0.5708 GB, free: 7.656 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.354e-05/0.6619, allocations: 25.3 kB / 0.5709 GB, free: 7.629 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003418/0.6654, allocations: 1.375 MB / 0.5722 GB, free: 6.203 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006506/0.6661, allocations: 255.6 kB / 0.5724 GB, free: 5.926 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/0.6664, allocations: 122.6 kB / 0.5726 GB, free: 5.797 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.896e-05/0.6665, allocations: 19.92 kB / 0.5726 GB, free: 5.777 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.928e-05/0.6666, allocations: 38.56 kB / 0.5726 GB, free: 5.73 MB / 411.1 MB Notification: Performance of pre-optimization done (n=20): time 3.577e-06/0.6666, allocations: 0 / 0.5726 GB, free: 5.73 MB / 411.1 MB Notification: Performance of matching and sorting (n=20): time 0.0009851/0.6676, allocations: 284.4 kB / 0.5729 GB, free: 5.449 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.6677, allocations: 107 kB / 0.573 GB, free: 5.32 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003577/0.668, allocations: 223.8 kB / 0.5732 GB, free: 5.094 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 5.055e-05/0.6681, allocations: 25.7 kB / 0.5732 GB, free: 5.062 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002376/0.6683, allocations: 306 kB / 0.5735 GB, free: 4.762 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.6685, allocations: 67 kB / 0.5736 GB, free: 4.695 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.018e-05/0.6685, allocations: 3.938 kB / 0.5736 GB, free: 4.691 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.6687, allocations: 330.8 kB / 0.5739 GB, free: 4.359 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.669, allocations: 116.2 kB / 0.574 GB, free: 4.242 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004544/0.6695, allocations: 239.4 kB / 0.5742 GB, free: 3.953 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004579/0.67, allocations: 167.8 kB / 0.5744 GB, free: 3.789 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.67, allocations: 0 / 0.5744 GB, free: 3.789 MB / 411.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001181/0.6712, allocations: 389.4 kB / 0.5748 GB, free: 3.402 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/0.6712, allocations: 8 kB / 0.5748 GB, free: 3.395 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001362/0.6714, allocations: 40 kB / 0.5748 GB, free: 3.355 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.618e-05/0.6714, allocations: 8 kB / 0.5748 GB, free: 3.348 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004234/0.6719, allocations: 47.89 kB / 0.5749 GB, free: 3.301 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.6719, allocations: 4 kB / 0.5749 GB, free: 3.297 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005006/0.6724, allocations: 39.81 kB / 0.5749 GB, free: 3.258 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.109e-05/0.6725, allocations: 24 kB / 0.5749 GB, free: 3.234 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 12 (m_flow_IN_con_4[3].target,m_flow_IN_con_4[2].target,m_flow_IN_con_4[1].target,m_flow_IN_con_3[3].target,m_flow_IN_con_3[2].target,m_flow_IN_con_3[1].target,m_flow_IN_con_2[3].target,m_flow_IN_con_2[2].target,m_flow_IN_con_2[1].target,m_flow_IN_con_1[3].target,m_flow_IN_con_1[2].target,m_flow_IN_con_1[1].target) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.0001777/0.6727, allocations: 124.8 kB / 0.5751 GB, free: 3.105 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009275/0.6736, allocations: 282.4 kB / 0.5753 GB, free: 2.824 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001208/0.6738, allocations: 19.72 kB / 0.5753 GB, free: 2.805 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.675, allocations: 410.8 kB / 0.5757 GB, free: 2.402 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.48e-05/0.6751, allocations: 4 kB / 0.5757 GB, free: 2.398 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.6751, allocations: 0 / 0.5757 GB, free: 2.398 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.6751, allocations: 3.984 kB / 0.5757 GB, free: 2.395 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008851/0.676, allocations: 349.8 kB / 0.5761 GB, free: 2.016 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001178/0.6762, allocations: 35.97 kB / 0.5761 GB, free: 1.98 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.6765, allocations: 31.97 kB / 0.5761 GB, free: 1.949 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.134e-06/0.6765, allocations: 3.938 kB / 0.5761 GB, free: 1.945 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.305e-05/0.6766, allocations: 15.98 kB / 0.5762 GB, free: 1.93 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.6766, allocations: 0 / 0.5762 GB, free: 1.93 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.6766, allocations: 0 / 0.5762 GB, free: 1.93 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.6776, allocations: 0.5458 MB / 0.5767 GB, free: 1.355 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.6778, allocations: 108.8 kB / 0.5768 GB, free: 1.23 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.542e-05/0.6779, allocations: 0 / 0.5768 GB, free: 1.23 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.6783, allocations: 23.97 kB / 0.5768 GB, free: 1.207 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.6785, allocations: 19.97 kB / 0.5768 GB, free: 1.188 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.137e-05/0.6785, allocations: 16 kB / 0.5768 GB, free: 1.172 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002315/0.6788, allocations: 160.5 kB / 0.577 GB, free: 1.016 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.6788, allocations: 8 kB / 0.577 GB, free: 1.008 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001008/0.6798, allocations: 159.4 kB / 0.5772 GB, free: 0.8516 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.001844/0.6817, allocations: 1.334 MB / 0.5785 GB, free: 15.48 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.6828, allocations: 0.5868 MB / 0.579 GB, free: 14.82 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.6828, allocations: 8.188 kB / 0.579 GB, free: 14.82 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006099/0.6835, allocations: 444.3 kB / 0.5795 GB, free: 14.31 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005494/0.684, allocations: 24.52 kB / 0.5795 GB, free: 14.29 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.6871, allocations: 0.7679 MB / 0.5802 GB, free: 13.47 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000617/0.6877, allocations: 0.8765 MB / 0.5811 GB, free: 12.57 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002745/0.688, allocations: 115.4 kB / 0.5812 GB, free: 12.45 MB / 427.1 MB Notification: Performance of SimCode: time 1.483e-06/0.6881, allocations: 0 / 0.5812 GB, free: 12.45 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.935/3.623, allocations: 8.396 MB / 0.5894 GB, free: 4.059 MB / 427.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_laminar.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_laminar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_laminar.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_laminar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_laminar_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_laminar_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-07 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_laminar.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_laminar.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_laminar_res.mat does not exist to compare? outputFormat=mat