Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 211 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002615/0.002615, allocations: 43.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2425/0.2451, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.0042/0.2493, allocations: 2.555 MB / 433.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.2507, allocations: 0.81 MB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.2509, allocations: 8 kB / 434.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.2511, allocations: 75.41 kB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003063/0.2514, allocations: 138.9 kB / 434.7 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002167/0.2516, allocations: 87.84 kB / 434.7 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005376/0.2522, allocations: 442.4 kB / 435.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.2523, allocations: 65.58 kB / 435.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002108/0.2525, allocations: 155.5 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002498/0.2528, allocations: 159.2 kB / 435.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.164e-05/0.2529, allocations: 32 kB / 435.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.648e-05/0.2529, allocations: 36 kB / 435.6 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.253, allocations: 79.69 kB / 435.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.2532, allocations: 163.3 kB / 435.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004767/0.2537, allocations: 442.2 kB / 436.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2537, allocations: 4 kB / 436.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2537, allocations: 0 / 436.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.2537, allocations: 0 / 436.3 MB, free: 1.426 MB / 334.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.0011/0.2548, allocations: 0.6118 MB / 436.9 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.2548, allocations: 8.031 kB / 436.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.2549, allocations: 71.19 kB / 437 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.302e-05/0.255, allocations: 44.7 kB / 437 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004478/0.2554, allocations: 254.4 kB / 437.3 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.2556, allocations: 102.2 kB / 437.4 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.2556, allocations: 20.38 kB / 437.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007465/0.2564, allocations: 0.6857 MB / 438.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.2564, allocations: 3.938 kB / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.2564, allocations: 12 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.2564, allocations: 12 kB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004582/0.2569, allocations: 205.8 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.2583, allocations: 0.7163 MB / 439 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000562/0.2589, allocations: 255.8 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.2591, allocations: 112.8 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.2591, allocations: 7.938 kB / 439.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.2592, allocations: 38.56 kB / 439.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.473e-06/0.2592, allocations: 0 / 439.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.00104/0.2602, allocations: 418.2 kB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002105/0.2604, allocations: 312.4 kB / 440.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003378/0.2607, allocations: 288.2 kB / 440.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.073e-05/0.2608, allocations: 33.7 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001486/0.2609, allocations: 176.7 kB / 440.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.261, allocations: 111 kB / 440.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.2612, allocations: 73.64 kB / 440.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.2613, allocations: 342.8 kB / 441.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.2616, allocations: 117.7 kB / 441.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004631/0.262, allocations: 500 kB / 441.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004603/0.2625, allocations: 263.5 kB / 442 MB, free: 11.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2625, allocations: 0 / 442 MB, free: 11.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006668/0.2631, allocations: 395.5 kB / 442.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.2632, allocations: 29.7 kB / 442.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.2632, allocations: 0 / 442.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.2634, allocations: 44.83 kB / 442.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009573/0.2643, allocations: 159.8 kB / 442.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.2681, allocations: 3.014 MB / 445.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003107/0.2684, allocations: 43.75 kB / 445.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.704e-05/0.2684, allocations: 12 kB / 445.7 MB, free: 7.238 MB / 350.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.0002065/0.2686, allocations: 144.1 kB / 445.8 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.292e-05/0.2687, allocations: 39.75 kB / 445.9 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.592e-05/0.2688, allocations: 39.08 kB / 445.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2688, allocations: 3.938 kB / 445.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.2688, allocations: 11.92 kB / 445.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007626/0.2695, allocations: 0.6462 MB / 446.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.27, allocations: 312.5 kB / 446.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.27, allocations: 0 / 446.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.2712, allocations: 207.7 kB / 447.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.666e-05/0.2713, allocations: 24.84 kB / 447.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.2713, allocations: 8 kB / 447.1 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003265/0.2746, allocations: 2.83 MB / 449.9 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2746, allocations: 0 / 449.9 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008502/0.2754, allocations: 0.5052 MB / 450.4 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001645/0.2756, allocations: 63.77 kB / 450.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.27e-05/0.2756, allocations: 8.141 kB / 450.5 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.2759, allocations: 23.94 kB / 450.5 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.337e-05/0.276, allocations: 27.89 kB / 450.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/0.276, allocations: 12.08 kB / 450.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.2762, allocations: 207 kB / 450.8 MB, free: 1.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2762, allocations: 0 / 450.8 MB, free: 1.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004501/0.2767, allocations: 107.9 kB / 450.9 MB, free: 1.633 MB / 350.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.001216/0.2779, allocations: 1.057 MB / 451.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.2795, allocations: 0.5504 MB / 452.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.2795, allocations: 0 / 452.5 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.2809, allocations: 390.3 kB / 452.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.2814, allocations: 92.84 kB / 453 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005217/0.2866, allocations: 3.525 MB / 456.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001716/0.2868, allocations: 169.8 kB / 456.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001693/0.2869, allocations: 38.95 kB / 456.7 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.2871, allocations: 103.4 kB / 456.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2871, allocations: 0 / 456.8 MB, free: 11.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0475/0.3346, allocations: 10.88 MB / 467.7 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.23, allocations: 7.938 kB / 467.7 MB, free: 0.8945 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.H from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank1.m in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.m from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.H in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.H from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.m in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.m from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.898924001958221]