Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC.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.HelicalPipe.kc_overall_KC,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_HelicalPipe_kc_overall_KC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_HelicalPipe_kc_overall_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009533/0.0009533, allocations: 198.5 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.211/1.211, allocations: 226.5 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006884/0.0006886, allocations: 103.5 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2748/0.2748, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002561/0.0002562, allocations: 8 kB / 465.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.273, allocations: 62.96 MB / 0.516 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC): time 0.001582/0.2746, allocations: 1.672 MB / 0.5176 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.2763, allocations: 1.713 MB / 0.5193 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.262e-05/0.2764, allocations: 0 / 0.5193 GB, free: 34.69 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001929/0.2766, allocations: 44.92 kB / 0.5193 GB, free: 34.67 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002552/0.2768, allocations: 115 kB / 0.5194 GB, free: 34.61 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005068/0.2773, allocations: 298.2 kB / 0.5197 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003873/0.2777, allocations: 448 kB / 0.5201 GB, free: 34.31 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.823e-05/0.2778, allocations: 49.33 kB / 0.5202 GB, free: 34.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.278, allocations: 146.2 kB / 0.5203 GB, free: 34.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.2782, allocations: 182.9 kB / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.2782, allocations: 8.5 kB / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006369/0.2789, allocations: 0.5224 MB / 0.521 GB, free: 34 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.599e-05/0.279, allocations: 92.28 kB / 0.5211 GB, free: 33.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.2791, allocations: 171.7 kB / 0.5213 GB, free: 33.85 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000389/0.2795, allocations: 435 kB / 0.5217 GB, free: 33.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2795, allocations: 0 / 0.5217 GB, free: 33.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2795, allocations: 0 / 0.5217 GB, free: 33.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2795, allocations: 0 / 0.5217 GB, free: 33.72 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.0007485/0.2803, allocations: 0.6121 MB / 0.5223 GB, free: 33.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2803, allocations: 11.81 kB / 0.5223 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.666e-05/0.2804, allocations: 82.64 kB / 0.5224 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.593e-05/0.2805, allocations: 49 kB / 0.5224 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.2807, allocations: 281.6 kB / 0.5227 GB, free: 32.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.2807, allocations: 23.81 kB / 0.5227 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.451e-05/0.2808, allocations: 35.88 kB / 0.5228 GB, free: 32.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006751/0.2814, allocations: 0.5626 MB / 0.5233 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2815, allocations: 0 / 0.5233 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.2815, allocations: 14.72 kB / 0.5233 GB, free: 32.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-05/0.2815, allocations: 42.52 kB / 0.5234 GB, free: 32.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007404/0.2823, allocations: 0.5789 MB / 0.5239 GB, free: 32.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.2836, allocations: 1.179 MB / 0.5251 GB, free: 31.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005434/0.2841, allocations: 382.8 kB / 0.5254 GB, free: 31.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.2844, allocations: 141.5 kB / 0.5256 GB, free: 31.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.2844, allocations: 10.34 kB / 0.5256 GB, free: 31.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.2844, allocations: 37.28 kB / 0.5256 GB, free: 31.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=22): time 1.312e-06/0.2845, allocations: 0 / 0.5256 GB, free: 31.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008346/0.2853, allocations: 479.2 kB / 0.5261 GB, free: 31.67 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.2853, allocations: 54.34 kB / 0.5261 GB, free: 31.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003727/0.2857, allocations: 453.6 kB / 0.5266 GB, free: 31.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.165e-05/0.2857, allocations: 32.42 kB / 0.5266 GB, free: 31.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.658e-05/0.2858, allocations: 186.2 kB / 0.5268 GB, free: 31.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.934e-05/0.2859, allocations: 69.81 kB / 0.5268 GB, free: 31.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.787e-05/0.2859, allocations: 4 kB / 0.5268 GB, free: 31.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.229e-05/0.286, allocations: 359.9 kB / 0.5272 GB, free: 30.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.2862, allocations: 119.9 kB / 0.5273 GB, free: 30.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.2864, allocations: 129.3 kB / 0.5274 GB, free: 30.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004433/0.2869, allocations: 271.7 kB / 0.5277 GB, free: 30.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2869, allocations: 0 / 0.5277 GB, free: 30.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005205/0.2874, allocations: 351.9 kB / 0.528 GB, free: 30.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.2874, allocations: 5.688 kB / 0.528 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.2874, allocations: 3.938 kB / 0.528 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.2875, allocations: 6.969 kB / 0.528 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006904/0.2882, allocations: 163.1 kB / 0.5282 GB, free: 30.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.2897, allocations: 5.514 MB / 0.5336 GB, free: 25.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.2899, allocations: 51.23 kB / 0.5336 GB, free: 25.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.438e-05/0.2899, allocations: 16.23 kB / 0.5336 GB, free: 25.22 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (22): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * 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: 9 {1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001467/0.2901, allocations: 194.9 kB / 0.5338 GB, free: 25.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.086e-05/0.2901, allocations: 32.72 kB / 0.5339 GB, free: 25.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007353/0.2909, allocations: 471.8 kB / 0.5343 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.2909, allocations: 2.719 kB / 0.5343 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2909, allocations: 0 / 0.5343 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2909, allocations: 6.75 kB / 0.5343 GB, free: 24.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000329/0.2912, allocations: 373.7 kB / 0.5347 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2912, allocations: 0 / 0.5347 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005916/0.2918, allocations: 161 kB / 0.5348 GB, free: 24.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.2919, allocations: 3.062 kB / 0.5348 GB, free: 24.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.2919, allocations: 7.125 kB / 0.5348 GB, free: 24.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001512/0.2934, allocations: 5.521 MB / 0.5402 GB, free: 19.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.2934, allocations: 3.938 kB / 0.5402 GB, free: 19.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005432/0.294, allocations: 466.7 kB / 0.5407 GB, free: 19.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.454e-05/0.2941, allocations: 112.1 kB / 0.5408 GB, free: 18.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.2941, allocations: 4 kB / 0.5408 GB, free: 18.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.2943, allocations: 15.75 kB / 0.5408 GB, free: 18.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.285e-05/0.2944, allocations: 22.31 kB / 0.5408 GB, free: 18.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.2944, allocations: 12.5 kB / 0.5408 GB, free: 18.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002549/0.2947, allocations: 334.3 kB / 0.5412 GB, free: 18.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2947, allocations: 0 / 0.5412 GB, free: 18.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004205/0.2951, allocations: 150.1 kB / 0.5413 GB, free: 18.76 MB / 378.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 (22): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * 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: 9 {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.0009369/0.2961, allocations: 1.098 MB / 0.5424 GB, free: 17.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009968/0.2971, allocations: 410.9 kB / 0.5428 GB, free: 17.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2971, allocations: 6.625 kB / 0.5428 GB, free: 17.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007273/0.2978, allocations: 281.9 kB / 0.543 GB, free: 17.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004905/0.2983, allocations: 85.42 kB / 0.5431 GB, free: 17.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.3016, allocations: 2.72 MB / 0.5458 GB, free: 16.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.3019, allocations: 0.8507 MB / 0.5466 GB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.3021, allocations: 113.7 kB / 0.5467 GB, free: 15.91 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3021, allocations: 0 / 0.5467 GB, free: 15.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.901/5.203, allocations: 20.79 MB / 0.567 GB, free: 4.293 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_HelicalPipe_kc_overall_KC_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-07 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_HelicalPipe_kc_overall_KC.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/HeatTransfer/HelicalPipe/kc_overall_KC/kc_overall_KC.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HelicalPipe.kc_overall_KC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches