Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent_KC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001193/0.001193, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2132/0.2132, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 75.88 kB / 480.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3164, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC): time 0.003159/0.3196, allocations: 1.884 MB / 0.5324 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001464/0.3211, allocations: 0.8522 MB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.994e-05/0.3212, allocations: 2.219 kB / 0.5332 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002573/0.3215, allocations: 53.52 kB / 0.5333 GB, free: 11.24 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003376/0.3219, allocations: 90.8 kB / 0.5334 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003011/0.3222, allocations: 77.83 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003194/0.3225, allocations: 265 kB / 0.5337 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.538e-05/0.3226, allocations: 30.27 kB / 0.5337 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.3228, allocations: 106.2 kB / 0.5338 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.323, allocations: 115.6 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.148e-05/0.3231, allocations: 6.875 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002687/0.3233, allocations: 121.9 kB / 0.534 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.683e-05/0.3234, allocations: 69.08 kB / 0.5341 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.3236, allocations: 104.9 kB / 0.5342 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004757/0.3241, allocations: 301.5 kB / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3241, allocations: 4 kB / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3241, allocations: 0 / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.3241, allocations: 1.125 kB / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001007/0.3251, allocations: 0.5536 MB / 0.535 GB, free: 9.961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.3252, allocations: 8.938 kB / 0.535 GB, free: 9.961 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/0.3253, allocations: 70.67 kB / 0.5351 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.975e-05/0.3254, allocations: 29.25 kB / 0.5351 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003306/0.3257, allocations: 238.5 kB / 0.5354 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.3257, allocations: 18.75 kB / 0.5354 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.122e-05/0.3258, allocations: 32.5 kB / 0.5354 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007333/0.3265, allocations: 379.4 kB / 0.5358 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.3266, allocations: 3.938 kB / 0.5358 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.889e-05/0.3266, allocations: 10.47 kB / 0.5358 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.259e-05/0.3267, allocations: 24.05 kB / 0.5358 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007833/0.3275, allocations: 375.9 kB / 0.5362 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.3291, allocations: 0.8514 MB / 0.537 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005233/0.3296, allocations: 264.2 kB / 0.5373 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.3299, allocations: 97.33 kB / 0.5374 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.3299, allocations: 3.406 kB / 0.5374 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.3299, allocations: 39.78 kB / 0.5374 GB, free: 8.375 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.3299, allocations: 0 / 0.5374 GB, free: 8.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007607/0.3307, allocations: 329.5 kB / 0.5377 GB, free: 8.223 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.3307, allocations: 53.28 kB / 0.5378 GB, free: 8.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003853/0.3311, allocations: 339.8 kB / 0.5381 GB, free: 7.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.3312, allocations: 29.7 kB / 0.5381 GB, free: 7.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.3313, allocations: 179.3 kB / 0.5383 GB, free: 7.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/0.3314, allocations: 62.88 kB / 0.5383 GB, free: 7.695 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001605/0.3316, allocations: 58.98 kB / 0.5384 GB, free: 7.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3318, allocations: 338.7 kB / 0.5387 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002713/0.332, allocations: 99.52 kB / 0.5388 GB, free: 7.281 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.3324, allocations: 188.8 kB / 0.539 GB, free: 7.125 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005968/0.333, allocations: 305 kB / 0.5393 GB, free: 6.918 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.333, allocations: 1.562 kB / 0.5393 GB, free: 6.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006411/0.3337, allocations: 351.2 kB / 0.5396 GB, free: 6.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.3337, allocations: 7.438 kB / 0.5396 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3337, allocations: 3.625 kB / 0.5396 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.3337, allocations: 4.25 kB / 0.5396 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/0.3343, allocations: 123.1 kB / 0.5398 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002114/0.3364, allocations: 3.653 MB / 0.5433 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.3367, allocations: 42.12 kB / 0.5434 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.3368, allocations: 14.81 kB / 0.5434 GB, free: 3.035 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (m_flow_IN_con_2[3].roughness,m_flow_IN_con_2[2].roughness,m_flow_IN_con_2[1].roughness,m_flow_IN_con_1[3].roughness,m_flow_IN_con_1[2].roughness,m_flow_IN_con_1[1].roughness) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002876/0.3371, allocations: 180.7 kB / 0.5436 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.217e-05/0.3371, allocations: 27.81 kB / 0.5436 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006885/0.3378, allocations: 327.2 kB / 0.5439 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3378, allocations: 9.938 kB / 0.5439 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.3379, allocations: 0 / 0.5439 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.3379, allocations: 4.938 kB / 0.5439 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004049/0.3383, allocations: 300.4 kB / 0.5442 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3383, allocations: 1.062 kB / 0.5442 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004935/0.3388, allocations: 108.4 kB / 0.5443 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.3388, allocations: 1.062 kB / 0.5443 GB, free: 2.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.3388, allocations: 6.969 kB / 0.5443 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001964/0.3408, allocations: 3.651 MB / 0.5479 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3408, allocations: 5.109 kB / 0.5479 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005342/0.3414, allocations: 347.7 kB / 0.5482 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.3415, allocations: 110.6 kB / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.939e-05/0.3415, allocations: 9.062 kB / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.3417, allocations: 8.344 kB / 0.5483 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.028e-05/0.3418, allocations: 19.72 kB / 0.5483 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.3418, allocations: 4.094 kB / 0.5483 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002742/0.3421, allocations: 246.1 kB / 0.5486 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3421, allocations: 5.25 kB / 0.5486 GB, free: 14.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004283/0.3425, allocations: 74.81 kB / 0.5487 GB, free: 14.19 MB / 414.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 6 systems {1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000966/0.3435, allocations: 0.9086 MB / 0.5495 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009327/0.3445, allocations: 327 kB / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3445, allocations: 0 / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000541/0.345, allocations: 184.5 kB / 0.55 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004322/0.3455, allocations: 80.69 kB / 0.5501 GB, free: 13.03 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00421/0.3497, allocations: 3.359 MB / 0.5534 GB, free: 9.516 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.3501, allocations: 0.7911 MB / 0.5542 GB, free: 8.699 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.3503, allocations: 82.88 kB / 0.5542 GB, free: 8.621 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.3504, allocations: 75.41 kB / 0.5543 GB, free: 8.551 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3504, allocations: 7.938 kB / 0.5543 GB, free: 8.543 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03063/0.3811, allocations: 8.644 MB / 0.5628 GB, free: 164 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.8, allocations: 7.875 kB / 0.5628 GB, free: 160 kB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_turbulent_KC.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/Dissipation/Verifications/HeatTransfer/StraightPipe/kc_turbulent_KC/kc_turbulent_KC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches