Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 124.1 kB / 17.79 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 198.8 kB / 20.73 MB, free: 2.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 47.92 kB / 365.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.0948, allocations: 52.15 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004028/0.09883, allocations: 2.767 MB / 420.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.1002, allocations: 0.8294 MB / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1004, allocations: 8 kB / 421.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002491/0.1006, allocations: 75.39 kB / 421.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003088/0.1009, allocations: 138.9 kB / 421.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.1011, allocations: 83.81 kB / 421.7 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005311/0.1017, allocations: 438.4 kB / 422.1 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.1018, allocations: 68.03 kB / 422.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.102, allocations: 167.4 kB / 422.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000245/0.1023, allocations: 175.2 kB / 422.5 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.626e-05/0.1023, allocations: 32 kB / 422.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.859e-05/0.1024, allocations: 36 kB / 422.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.613e-05/0.1025, allocations: 83.67 kB / 422.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.1027, allocations: 191.1 kB / 422.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004776/0.1031, allocations: 442.2 kB / 423.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1031, allocations: 0 / 423.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1031, allocations: 4 kB / 423.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1032, allocations: 0 / 423.3 MB, free: 7.062 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001144/0.1043, allocations: 0.6871 MB / 424 MB, free: 6.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1043, allocations: 8.031 kB / 424 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.1044, allocations: 71.23 kB / 424 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.682e-05/0.1045, allocations: 44.7 kB / 424.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004495/0.105, allocations: 311.6 kB / 424.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.846e-05/0.1051, allocations: 46.83 kB / 424.4 MB, free: 5.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.548e-05/0.1051, allocations: 24.38 kB / 424.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000573/0.1057, allocations: 339.2 kB / 424.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.1057, allocations: 0 / 424.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.1057, allocations: 12 kB / 424.8 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.1057, allocations: 8 kB / 424.8 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004692/0.1062, allocations: 214 kB / 425 MB, free: 5.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001496/0.1077, allocations: 0.8266 MB / 425.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005928/0.1083, allocations: 255 kB / 426.1 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002334/0.1085, allocations: 116.8 kB / 426.2 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1086, allocations: 4 kB / 426.2 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.1086, allocations: 42.56 kB / 426.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.413e-06/0.1086, allocations: 0 / 426.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001124/0.1097, allocations: 475.3 kB / 426.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001852/0.1099, allocations: 324.4 kB / 427 MB, free: 2.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.1102, allocations: 283 kB / 427.3 MB, free: 2.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.044e-05/0.1103, allocations: 33.7 kB / 427.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.1104, allocations: 176.7 kB / 427.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.1105, allocations: 115 kB / 427.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.1106, allocations: 65.7 kB / 427.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1108, allocations: 346.7 kB / 428 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.1111, allocations: 91.95 kB / 428.1 MB, free: 1.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003497/0.1114, allocations: 212.4 kB / 428.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005023/0.1119, allocations: 266.7 kB / 428.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1119, allocations: 0 / 428.6 MB, free: 1.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007202/0.1126, allocations: 365.7 kB / 428.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.133e-05/0.1127, allocations: 39.98 kB / 429 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1127, allocations: 0 / 429 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001707/0.1128, allocations: 36.84 kB / 429 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.1139, allocations: 167.8 kB / 429.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004195/0.1181, allocations: 3.225 MB / 432.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003143/0.1184, allocations: 35.81 kB / 432.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.1184, allocations: 11.94 kB / 432.4 MB, free: 13.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002108/0.1186, allocations: 153.8 kB / 432.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-05/0.1187, allocations: 39.75 kB / 432.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.27e-05/0.1188, allocations: 43.11 kB / 432.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.1188, allocations: 7.984 kB / 432.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1188, allocations: 3.938 kB / 432.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008111/0.1196, allocations: 0.654 MB / 433.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005094/0.1201, allocations: 389.3 kB / 433.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1201, allocations: 4 kB / 433.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.1215, allocations: 203.7 kB / 433.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.006e-05/0.1216, allocations: 28.84 kB / 434 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.1216, allocations: 8 kB / 434 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00354/0.1251, allocations: 3.037 MB / 437 MB, free: 8.156 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.1251, allocations: 3.984 kB / 437 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009225/0.1261, allocations: 0.5013 MB / 437.5 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001801/0.1262, allocations: 136.9 kB / 437.6 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.71e-05/0.1263, allocations: 12 kB / 437.6 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002688/0.1266, allocations: 23.98 kB / 437.7 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.754e-05/0.1266, allocations: 27.91 kB / 437.7 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.1267, allocations: 7.984 kB / 437.7 MB, free: 7.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.1269, allocations: 202 kB / 437.9 MB, free: 7.215 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1269, allocations: 0 / 437.9 MB, free: 7.215 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004538/0.1273, allocations: 107.9 kB / 438 MB, free: 7.109 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001262/0.1286, allocations: 1.065 MB / 439.1 MB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001621/0.1302, allocations: 0.5137 MB / 439.6 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.1302, allocations: 11.88 kB / 439.6 MB, free: 5.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001452/0.1317, allocations: 398.8 kB / 440 MB, free: 5.062 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005278/0.1322, allocations: 80.53 kB / 440.1 MB, free: 4.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005263/0.1375, allocations: 3.407 MB / 443.5 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.1379, allocations: 0.7801 MB / 444.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000173/0.1381, allocations: 34.97 kB / 444.3 MB, free: 0.625 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.1383, allocations: 111.3 kB / 444.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1383, allocations: 0 / 444.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2136/0.3519, allocations: 9.685 MB / 454.1 MB, free: 29.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.61, allocations: 6.078 kB / 454.1 MB, free: 29.86 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00029988 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable openTank1.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank1.m in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.m from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.m in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.m from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.109528131317347]