Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2125/0.2125, allocations: 44.19 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 54.84 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1153, allocations: 60.84 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC): time 0.004008/0.1194, allocations: 2.87 MB / 472.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003504/0.1229, allocations: 2.465 MB / 474.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002435/0.1232, allocations: 4 kB / 474.7 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004184/0.1236, allocations: 123.4 kB / 474.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005089/0.1242, allocations: 226.5 kB / 475.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.1256, allocations: 0.5242 MB / 475.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009466/0.1265, allocations: 0.9363 MB / 476.5 MB, free: 7.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.1267, allocations: 114.2 kB / 476.6 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.1271, allocations: 330 kB / 477 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004136/0.1275, allocations: 401.7 kB / 477.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.856e-05/0.1276, allocations: 24 kB / 477.4 MB, free: 6.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.129, allocations: 0.9358 MB / 478.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002338/0.1293, allocations: 270.6 kB / 478.6 MB, free: 5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004119/0.1297, allocations: 456.6 kB / 479 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001542/0.1313, allocations: 1.354 MB / 480.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1313, allocations: 0 / 480.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1313, allocations: 0 / 480.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1313, allocations: 0 / 480.4 MB, free: 3.191 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.002074/0.1334, allocations: 1.453 MB / 481.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1334, allocations: 8.031 kB / 481.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001658/0.1336, allocations: 165 kB / 482 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.1338, allocations: 127.3 kB / 482.1 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00061/0.1344, allocations: 0.5105 MB / 482.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.331e-05/0.1345, allocations: 77.94 kB / 482.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.1346, allocations: 95.98 kB / 482.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002121/0.1367, allocations: 1.415 MB / 484.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.1367, allocations: 4 kB / 484.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.77e-05/0.1368, allocations: 43.98 kB / 484.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.353e-05/0.1369, allocations: 70.08 kB / 484.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002094/0.139, allocations: 1.374 MB / 485.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003856/0.1429, allocations: 3.07 MB / 488.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/0.1442, allocations: 0.7127 MB / 489.5 MB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006412/0.1448, allocations: 289.4 kB / 489.8 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.824e-05/0.1449, allocations: 16.16 kB / 489.8 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.1449, allocations: 42.73 kB / 489.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.974e-06/0.1449, allocations: 0 / 489.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002232/0.1471, allocations: 0.9359 MB / 490.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.506e-05/0.1472, allocations: 187.9 kB / 490.9 MB, free: 8.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/0.1488, allocations: 1.353 MB / 492.3 MB, free: 6.875 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.1488, allocations: 33.7 kB / 492.3 MB, free: 6.836 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004194/0.1492, allocations: 0.5394 MB / 492.9 MB, free: 6.293 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.1494, allocations: 118.4 kB / 493 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.1496, allocations: 158.2 kB / 493.1 MB, free: 6.016 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.1497, allocations: 334 kB / 493.5 MB, free: 5.684 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007018/0.1504, allocations: 301 kB / 493.8 MB, free: 5.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008739/0.1513, allocations: 0.6169 MB / 494.4 MB, free: 4.613 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.153, allocations: 0.9673 MB / 495.3 MB, free: 3.488 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.153, allocations: 4 kB / 495.4 MB, free: 3.484 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002004/0.155, allocations: 1.034 MB / 496.4 MB, free: 2.441 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.155, allocations: 14.59 kB / 496.4 MB, free: 2.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.155, allocations: 12.69 kB / 496.4 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.982e-05/0.1551, allocations: 16 kB / 496.4 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000586/0.1557, allocations: 167.7 kB / 496.6 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.056e-05/0.1557, allocations: 19.94 kB / 496.6 MB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000719/0.1564, allocations: 166.2 kB / 496.8 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.604e-05/0.1565, allocations: 47.98 kB / 496.8 MB, free: 2.008 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 26 (IN_var_3[6].target,IN_var_3[5].target,IN_var_3[4].target,IN_var_3[3].target,IN_var_3[2].target,IN_var_3[1].target,IN_con_3[6].target,IN_con_3[5].target,IN_con_3[4].target,IN_con_3[3].target,IN_con_3[2].target,IN_con_3[1].target,IN_var_2.target,IN_con_2.target,IN_var_1[6].target,IN_var_1[5].target,IN_var_1[4].target,IN_var_1[3].target,IN_var_1[2].target,IN_var_1[1].target,IN_con_1[6].target,IN_con_1[5].target,IN_con_1[4].target,IN_con_1[3].target,IN_con_1[2].target,IN_con_1[1].target) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005138/0.157, allocations: 367.5 kB / 497.2 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/0.1573, allocations: 122.4 kB / 497.3 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.1586, allocations: 0.763 MB / 498.1 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1586, allocations: 4 kB / 498.1 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.1587, allocations: 0 / 498.1 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.1587, allocations: 7.984 kB / 498.1 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.1599, allocations: 0.7139 MB / 498.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1599, allocations: 7.938 kB / 498.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004368/0.1603, allocations: 103.9 kB / 498.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.1603, allocations: 4 kB / 498.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.1604, allocations: 19.98 kB / 498.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.1604, allocations: 4 kB / 498.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1604, allocations: 0 / 498.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.162, allocations: 1.157 MB / 0.4884 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002462/0.1623, allocations: 199.4 kB / 0.4886 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.1624, allocations: 12 kB / 0.4886 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006231/0.1631, allocations: 35.95 kB / 0.4886 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.1632, allocations: 35.97 kB / 0.4886 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.1633, allocations: 19.98 kB / 0.4886 GB, free: 14.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.1644, allocations: 0.935 MB / 0.4896 GB, free: 13.39 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1644, allocations: 4 kB / 0.4896 GB, free: 13.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001114/0.1655, allocations: 287.9 kB / 0.4898 GB, free: 13.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002322/0.1678, allocations: 1.851 MB / 0.4916 GB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00183/0.1697, allocations: 0.7523 MB / 0.4924 GB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1697, allocations: 0 / 0.4924 GB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006962/0.1704, allocations: 303.7 kB / 0.4927 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.1718, allocations: 264.9 kB / 0.4929 GB, free: 9.918 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2016/0.3735, allocations: 12.2 MB / 0.5048 GB, free: 47.89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007361/0.3743, allocations: 1.164 MB / 0.506 GB, free: 47.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001005/0.3753, allocations: 393.4 kB / 0.5063 GB, free: 47.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000476/0.3758, allocations: 392 kB / 0.5067 GB, free: 47.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3758, allocations: 1.062 kB / 0.5067 GB, free: 47.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05002/0.4258, allocations: 27.32 MB / 0.5334 GB, free: 30.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.228/8.654, allocations: 15 kB / 0.5334 GB, free: 30.96 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_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_twoPhaseOverall_KC/kc_twoPhaseOverall_KC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches