Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_Plate_kc_turbulent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_Plate_kc_turbulent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009373/0.0009373, allocations: 196.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 226.5 MB / 243.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007318/0.0007318, allocations: 102.3 kB / 295.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3032/0.3032, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000233/0.0002331, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2842, allocations: 62.96 MB / 0.516 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent): time 0.001553/0.2858, allocations: 1.508 MB / 0.5175 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.2869, allocations: 0.9071 MB / 0.5183 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.874e-05/0.2869, allocations: 3.938 kB / 0.5183 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.2871, allocations: 32.81 kB / 0.5184 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.2873, allocations: 70.62 kB / 0.5184 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.2876, allocations: 105.5 kB / 0.5185 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002054/0.2878, allocations: 244.5 kB / 0.5188 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.2879, allocations: 18.05 kB / 0.5188 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.288, allocations: 81 kB / 0.5189 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.2881, allocations: 101.3 kB / 0.519 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.2882, allocations: 5.719 kB / 0.519 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002083/0.2884, allocations: 131 kB / 0.5191 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.959e-05/0.2885, allocations: 56.62 kB / 0.5192 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.807e-05/0.2885, allocations: 93.83 kB / 0.5192 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001832/0.2887, allocations: 173.4 kB / 0.5194 GB, free: 35.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2887, allocations: 0 / 0.5194 GB, free: 35.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2888, allocations: 0 / 0.5194 GB, free: 35.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.2888, allocations: 0 / 0.5194 GB, free: 35.06 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007322/0.2895, allocations: 0.5085 MB / 0.5199 GB, free: 34.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.2895, allocations: 9.5 kB / 0.5199 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.398e-05/0.2896, allocations: 48.08 kB / 0.52 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003165/0.2899, allocations: 67.64 kB / 0.52 GB, free: 34.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001726/0.2901, allocations: 228.6 kB / 0.5202 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.2901, allocations: 3.609 kB / 0.5202 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.2901, allocations: 11.25 kB / 0.5203 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.2906, allocations: 288.7 kB / 0.5205 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.2906, allocations: 3.422 kB / 0.5205 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.832e-05/0.2906, allocations: 7 kB / 0.5205 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.297e-05/0.2907, allocations: 8.828 kB / 0.5206 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004926/0.2912, allocations: 251.3 kB / 0.5208 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008067/0.292, allocations: 0.8226 MB / 0.5216 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.2923, allocations: 201.4 kB / 0.5218 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.2926, allocations: 117 kB / 0.5219 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.2926, allocations: 4 kB / 0.5219 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.319e-05/0.2926, allocations: 37.66 kB / 0.5219 GB, free: 33.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.2926, allocations: 0 / 0.5219 GB, free: 33.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008394/0.2935, allocations: 356.1 kB / 0.5223 GB, free: 33.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.2935, allocations: 109.8 kB / 0.5224 GB, free: 33.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.2937, allocations: 255 kB / 0.5226 GB, free: 33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.2937, allocations: 28.61 kB / 0.5227 GB, free: 32.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.61e-05/0.2938, allocations: 138.7 kB / 0.5228 GB, free: 32.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.2938, allocations: 36.19 kB / 0.5228 GB, free: 32.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.274e-05/0.2938, allocations: 4.031 kB / 0.5228 GB, free: 32.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.252e-05/0.2939, allocations: 334.5 kB / 0.5231 GB, free: 32.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002388/0.2941, allocations: 104.8 kB / 0.5232 GB, free: 32.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002413/0.2944, allocations: 150.2 kB / 0.5234 GB, free: 32.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004774/0.2949, allocations: 250.3 kB / 0.5236 GB, free: 32.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2949, allocations: 3.312 kB / 0.5236 GB, free: 32.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005922/0.2955, allocations: 305.1 kB / 0.5239 GB, free: 32.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2955, allocations: 5.156 kB / 0.5239 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/0.2955, allocations: 12.81 kB / 0.5239 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.2956, allocations: 0 / 0.5239 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.2958, allocations: 45.27 kB / 0.524 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.2958, allocations: 6.312 kB / 0.524 GB, free: 32.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.296, allocations: 36.42 kB / 0.524 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.296, allocations: 17.72 kB / 0.524 GB, free: 32.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 9.415e-05/0.2961, allocations: 133.7 kB / 0.5242 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.846e-05/0.2962, allocations: 16.97 kB / 0.5242 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004247/0.2966, allocations: 237.1 kB / 0.5244 GB, free: 32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2966, allocations: 2 kB / 0.5244 GB, free: 32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2966, allocations: 2.281 kB / 0.5244 GB, free: 32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2967, allocations: 0 / 0.5244 GB, free: 32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/0.297, allocations: 263.6 kB / 0.5247 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/0.297, allocations: 5.438 kB / 0.5247 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.2972, allocations: 48.02 kB / 0.5247 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2972, allocations: 6.594 kB / 0.5247 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.2972, allocations: 2.688 kB / 0.5247 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2972, allocations: 0 / 0.5247 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2972, allocations: 0 / 0.5247 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005579/0.2978, allocations: 0.508 MB / 0.5252 GB, free: 31.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.2978, allocations: 97.36 kB / 0.5253 GB, free: 31.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.184e-05/0.2979, allocations: 0 / 0.5253 GB, free: 31.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.2981, allocations: 31.44 kB / 0.5253 GB, free: 31.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.225e-05/0.2982, allocations: 19.98 kB / 0.5254 GB, free: 31.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.2982, allocations: 3.312 kB / 0.5254 GB, free: 31.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001274/0.2983, allocations: 195.6 kB / 0.5255 GB, free: 31.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2983, allocations: 0 / 0.5255 GB, free: 31.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003816/0.2987, allocations: 68.75 kB / 0.5256 GB, free: 31.18 MB / 378.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.000875/0.2996, allocations: 1.088 MB / 0.5267 GB, free: 30.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005741/0.3002, allocations: 306.5 kB / 0.527 GB, free: 30.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.3002, allocations: 0 / 0.527 GB, free: 30.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002759/0.3005, allocations: 195.4 kB / 0.5272 GB, free: 30.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.301, allocations: 43.08 kB / 0.5272 GB, free: 30.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.3033, allocations: 1.561 MB / 0.5287 GB, free: 29.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002083/0.3035, allocations: 0.74 MB / 0.5294 GB, free: 28.56 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.3036, allocations: 52.98 kB / 0.5295 GB, free: 28.52 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3036, allocations: 0 / 0.5295 GB, free: 28.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.805/3.109, allocations: 3.788 MB / 0.5332 GB, free: 28.21 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_Plate_kc_turbulent_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-07 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_Plate_kc_turbulent.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/HeatTransfer/Plate/kc_turbulent/kc_turbulent.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.Plate.kc_turbulent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,cp[1],cp[2],cp[3],eta[1],eta[2],eta[3],lambda[1],lambda[2],lambda[3],rho[1],rho[2],rho[3],velocity[1],velocity[2],velocity[3],Nu[1],Nu[2],Nu[3],Pr[1],Pr[2],Pr[3],Re[1],Re[2],Re[3],input_v_0.y,input_v_1.y,input_v_2.y Variables in the result:IN_con[1].L,IN_con[2].L,IN_con[3].L,IN_var[1].cp,IN_var[1].eta,IN_var[1].lambda,IN_var[1].rho,IN_var[1].velocity,IN_var[2].cp,IN_var[2].eta,IN_var[2].lambda,IN_var[2].rho,IN_var[2].velocity,IN_var[3].cp,IN_var[3].eta,IN_var[3].lambda,IN_var[3].rho,IN_var[3].velocity,L,Nu[1],Nu[2],Nu[3],Pr[1],Pr[2],Pr[3],Re[1],Re[2],Re[3],cp[1],cp[2],cp[3],eta[1],eta[2],eta[3],input_v_0.duration,input_v_0.height,input_v_0.offset,input_v_0.startTime,input_v_0.y,input_v_1.amplitude,input_v_1.f,input_v_1.offset,input_v_1.phase,input_v_1.startTime,input_v_1.y,input_v_2.fallTimeConst,input_v_2.offset,input_v_2.outMax,input_v_2.riseTime,input_v_2.riseTimeConst,input_v_2.startTime,input_v_2.y,input_v_2.y_riseTime,lambda[1],lambda[2],lambda[3],n,rho[1],rho[2],rho[3],time,velocity[1],velocity[2],velocity[3]