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.001223/0.001223, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001608/0.001608, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2096/0.2096, allocations: 46.12 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 79.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3458, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_turbulent_KC): time 0.002918/0.3488, allocations: 1.874 MB / 0.5324 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.35, allocations: 0.8571 MB / 0.5332 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.955e-05/0.3501, allocations: 1.344 kB / 0.5332 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002452/0.3504, allocations: 53.27 kB / 0.5333 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002824/0.3507, allocations: 90.97 kB / 0.5333 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.3509, allocations: 86.39 kB / 0.5334 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002624/0.3512, allocations: 255.9 kB / 0.5337 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.987e-05/0.3513, allocations: 35.69 kB / 0.5337 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.3515, allocations: 106.2 kB / 0.5338 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.3517, allocations: 123.5 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.3517, allocations: 6.875 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000222/0.3519, allocations: 121.6 kB / 0.534 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.999e-05/0.352, allocations: 60.31 kB / 0.5341 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.3521, allocations: 105.8 kB / 0.5342 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003621/0.3525, allocations: 305.6 kB / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3525, allocations: 0 / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3525, allocations: 0 / 0.5345 GB, free: 10.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3525, allocations: 0 / 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.0008233/0.3533, allocations: 0.562 MB / 0.535 GB, free: 9.957 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.3534, allocations: 9.5 kB / 0.5351 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.116e-05/0.3535, allocations: 70.23 kB / 0.5351 GB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.185e-05/0.3535, allocations: 29.81 kB / 0.5351 GB, free: 9.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.3538, allocations: 238.9 kB / 0.5354 GB, free: 9.637 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.134e-05/0.3538, allocations: 17.94 kB / 0.5354 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.3539, allocations: 35.77 kB / 0.5354 GB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005802/0.3545, allocations: 372.3 kB / 0.5358 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3545, allocations: 0 / 0.5358 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.3545, allocations: 14.14 kB / 0.5358 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.03e-05/0.3546, allocations: 24.61 kB / 0.5358 GB, free: 9.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005843/0.3552, allocations: 376.8 kB / 0.5362 GB, free: 9.219 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.3565, allocations: 0.8469 MB / 0.537 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005008/0.357, allocations: 262.4 kB / 0.5373 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002046/0.3572, allocations: 97.98 kB / 0.5374 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.3572, allocations: 2.25 kB / 0.5374 GB, free: 8.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.3573, allocations: 35.67 kB / 0.5374 GB, free: 8.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.543e-06/0.3573, allocations: 1.219 kB / 0.5374 GB, free: 8.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007735/0.3581, allocations: 340.7 kB / 0.5377 GB, free: 8.223 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.3581, allocations: 53.03 kB / 0.5378 GB, free: 8.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003438/0.3585, allocations: 339.3 kB / 0.5381 GB, free: 7.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.3585, allocations: 31.2 kB / 0.5381 GB, free: 7.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.3586, allocations: 170.5 kB / 0.5383 GB, free: 7.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.676e-05/0.3587, allocations: 63.38 kB / 0.5383 GB, free: 7.703 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.553e-05/0.3588, allocations: 62.56 kB / 0.5384 GB, free: 7.656 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.359, allocations: 342.7 kB / 0.5387 GB, free: 7.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.3592, allocations: 95.22 kB / 0.5388 GB, free: 7.285 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.3595, allocations: 199.3 kB / 0.539 GB, free: 7.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.36, allocations: 296.4 kB / 0.5393 GB, free: 6.922 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.36, allocations: 4 kB / 0.5393 GB, free: 6.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006238/0.3606, allocations: 350.6 kB / 0.5396 GB, free: 6.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3606, allocations: 7.438 kB / 0.5396 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3607, allocations: 3.188 kB / 0.5396 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.3607, allocations: 8.094 kB / 0.5396 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/0.3612, allocations: 119.4 kB / 0.5398 GB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.3631, allocations: 3.654 MB / 0.5433 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.3634, allocations: 37.55 kB / 0.5434 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.857e-05/0.3634, allocations: 21.95 kB / 0.5434 GB, free: 3.031 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.0002753/0.3637, allocations: 186.7 kB / 0.5436 GB, free: 2.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/0.3637, allocations: 27.5 kB / 0.5436 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006824/0.3644, allocations: 326.8 kB / 0.5439 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.3645, allocations: 2.25 kB / 0.5439 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3645, allocations: 3.938 kB / 0.5439 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.3645, allocations: 1.094 kB / 0.5439 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003489/0.3648, allocations: 301.2 kB / 0.5442 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3648, allocations: 0 / 0.5442 GB, free: 2.406 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.3653, allocations: 104.1 kB / 0.5443 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3653, allocations: 1.125 kB / 0.5443 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.3653, allocations: 15.36 kB / 0.5443 GB, free: 2.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.3672, allocations: 3.647 MB / 0.5479 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3673, allocations: 4.344 kB / 0.5479 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005476/0.3678, allocations: 348.4 kB / 0.5482 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.384e-05/0.3679, allocations: 106 kB / 0.5483 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.579e-05/0.368, allocations: 9.469 kB / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.3681, allocations: 8.734 kB / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.656e-05/0.3682, allocations: 18.52 kB / 0.5483 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.3682, allocations: 12.77 kB / 0.5484 GB, free: 14.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000249/0.3685, allocations: 243 kB / 0.5486 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3685, allocations: 0 / 0.5486 GB, free: 14.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004233/0.3689, allocations: 75.03 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.0009841/0.3699, allocations: 0.92 MB / 0.5496 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009173/0.3708, allocations: 323.8 kB / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3709, allocations: 1.062 kB / 0.5499 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005841/0.3714, allocations: 188.1 kB / 0.55 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.3719, allocations: 72.84 kB / 0.5501 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003908/0.3758, allocations: 3.357 MB / 0.5534 GB, free: 9.551 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.3762, allocations: 0.795 MB / 0.5542 GB, free: 8.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000197/0.3764, allocations: 82.89 kB / 0.5543 GB, free: 8.652 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.3766, allocations: 75.34 kB / 0.5543 GB, free: 8.582 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3766, allocations: 0 / 0.5543 GB, free: 8.582 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02736/0.4039, allocations: 8.647 MB / 0.5628 GB, free: 200 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.76, allocations: 15.52 kB / 0.5628 GB, free: 192 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