Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001068/0.001068, allocations: 107.2 kB / 16.41 MB, free: 6.5 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.001089/0.001089, allocations: 189.5 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.33/1.33, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1995/0.1995, allocations: 43.52 MB / 314.1 MB, free: 444 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 63.91 kB / 441.4 MB, free: 6.074 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1072, allocations: 57.79 MB / 499.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC): time 0.003855/0.1111, allocations: 2.879 MB / 0.4903 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003507/0.1147, allocations: 2.508 MB / 0.4927 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.1149, allocations: 8 kB / 0.4927 GB, free: 6.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004325/0.1154, allocations: 123.2 kB / 0.4928 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004952/0.1159, allocations: 226.6 kB / 0.4931 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001484/0.1174, allocations: 0.5369 MB / 0.4936 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.1184, allocations: 0.9325 MB / 0.4945 GB, free: 4.969 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002031/0.1187, allocations: 122.2 kB / 0.4946 GB, free: 4.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005323/0.1192, allocations: 330 kB / 0.4949 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005909/0.1198, allocations: 413.6 kB / 0.4953 GB, free: 4.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1199, allocations: 28 kB / 0.4954 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001463/0.1214, allocations: 0.9319 MB / 0.4963 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002462/0.1216, allocations: 266.6 kB / 0.4965 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004968/0.1221, allocations: 460.6 kB / 0.497 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.1239, allocations: 1.365 MB / 0.4983 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1239, allocations: 0 / 0.4983 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1239, allocations: 0 / 0.4983 GB, free: 1.055 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.595e-05/0.1239, allocations: 4 kB / 0.4983 GB, free: 1.051 MB / 382.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.002273/0.1262, allocations: 1.486 MB / 0.4997 GB, free: 15.51 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.1263, allocations: 8.031 kB / 0.4998 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001757/0.1264, allocations: 169 kB / 0.4999 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.1266, allocations: 136 kB / 0.5 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007253/0.1274, allocations: 0.515 MB / 0.5005 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.285e-05/0.1274, allocations: 77.94 kB / 0.5006 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001164/0.1275, allocations: 88 kB / 0.5007 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002035/0.1296, allocations: 1.427 MB / 0.5021 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.1296, allocations: 3.938 kB / 0.5021 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.077e-05/0.1297, allocations: 36 kB / 0.5021 GB, free: 12.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.668e-05/0.1298, allocations: 70.08 kB / 0.5022 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002173/0.132, allocations: 1.367 MB / 0.5035 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004536/0.1365, allocations: 3.091 MB / 0.5066 GB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001317/0.1379, allocations: 0.7186 MB / 0.5073 GB, free: 7.574 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006157/0.1385, allocations: 285.4 kB / 0.5075 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.093e-05/0.1386, allocations: 24.14 kB / 0.5076 GB, free: 7.254 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.1386, allocations: 38.73 kB / 0.5076 GB, free: 7.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.595e-06/0.1386, allocations: 0 / 0.5076 GB, free: 7.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002551/0.1412, allocations: 0.9353 MB / 0.5085 GB, free: 6.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.1413, allocations: 191.8 kB / 0.5087 GB, free: 6.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002379/0.1437, allocations: 1.361 MB / 0.51 GB, free: 4.656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.106e-05/0.1438, allocations: 29.7 kB / 0.51 GB, free: 4.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000557/0.1443, allocations: 0.548 MB / 0.5106 GB, free: 4.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.1445, allocations: 119 kB / 0.5107 GB, free: 3.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003097/0.1448, allocations: 158.2 kB / 0.5108 GB, free: 3.789 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.145, allocations: 334 kB / 0.5112 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000957/0.1459, allocations: 297 kB / 0.5114 GB, free: 3.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.1472, allocations: 0.6169 MB / 0.512 GB, free: 2.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002232/0.1495, allocations: 0.9682 MB / 0.513 GB, free: 1.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.1495, allocations: 0 / 0.513 GB, free: 1.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002885/0.1524, allocations: 1.055 MB / 0.514 GB, free: 212 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.1524, allocations: 8 kB / 0.514 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.631e-05/0.1525, allocations: 15.98 kB / 0.514 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.787e-05/0.1525, allocations: 16 kB / 0.5141 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008132/0.1533, allocations: 164.1 kB / 0.5142 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.482e-05/0.1534, allocations: 23.98 kB / 0.5142 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/0.1545, allocations: 174.7 kB / 0.5144 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.1546, allocations: 43.98 kB / 0.5144 GB, free: 15.77 MB / 414.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.0007705/0.1554, allocations: 371.5 kB / 0.5148 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003433/0.1557, allocations: 131.1 kB / 0.5149 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.1577, allocations: 0.7546 MB / 0.5157 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.1578, allocations: 8 kB / 0.5157 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.1578, allocations: 4 kB / 0.5157 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.1578, allocations: 3.984 kB / 0.5157 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.1596, allocations: 0.7063 MB / 0.5164 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/0.1596, allocations: 3.938 kB / 0.5164 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005881/0.1602, allocations: 107.9 kB / 0.5165 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.1602, allocations: 0 / 0.5165 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.429e-05/0.1603, allocations: 19.98 kB / 0.5165 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.902e-05/0.1603, allocations: 7.938 kB / 0.5165 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.1603, allocations: 4 kB / 0.5165 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.1626, allocations: 1.154 MB / 0.5176 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004264/0.163, allocations: 212.1 kB / 0.5178 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002166/0.1632, allocations: 11.94 kB / 0.5178 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006706/0.1639, allocations: 43.95 kB / 0.5179 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.1641, allocations: 35.97 kB / 0.5179 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/0.1641, allocations: 23.98 kB / 0.5179 GB, free: 12.07 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001238/0.1654, allocations: 0.9272 MB / 0.5189 GB, free: 11.14 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1654, allocations: 0 / 0.5189 GB, free: 11.14 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001168/0.1665, allocations: 303.4 kB / 0.5191 GB, free: 10.84 MB / 414.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.002233/0.1688, allocations: 1.856 MB / 0.521 GB, free: 8.949 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.1705, allocations: 0.7054 MB / 0.5216 GB, free: 8.246 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1705, allocations: 3.938 kB / 0.5216 GB, free: 8.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009565/0.1714, allocations: 304 kB / 0.5219 GB, free: 7.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002337/0.1738, allocations: 267.3 kB / 0.5222 GB, free: 7.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2336/0.4074, allocations: 11.17 MB / 0.5331 GB, free: 38.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007123/0.4082, allocations: 1.157 MB / 0.5342 GB, free: 37.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008432/0.409, allocations: 390.4 kB / 0.5346 GB, free: 37.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004389/0.4095, allocations: 397.2 kB / 0.535 GB, free: 37.29 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4095, allocations: 0 / 0.535 GB, free: 37.29 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05408/0.4635, allocations: 27.63 MB / 0.562 GB, free: 23.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.46/9.924, allocations: 12.38 kB / 0.562 GB, free: 23.8 MB / 414.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/Dissipation/Verifications/HeatTransfer/StraightPipe/kc_twoPhaseOverall_KC/kc_twoPhaseOverall_KC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches