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.001362/0.001362, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001441/0.001441, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.436/1.436, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.002455/0.002455, allocations: 51.92 kB / 377.8 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2566, allocations: 53.35 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004089/0.2607, allocations: 2.796 MB / 433.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.2622, allocations: 0.8645 MB / 434.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.2624, allocations: 7.938 kB / 434.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.2627, allocations: 79.34 kB / 434.9 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003192/0.263, allocations: 142.9 kB / 435 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.2633, allocations: 83.88 kB / 435.1 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005622/0.2638, allocations: 438.3 kB / 435.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.264, allocations: 67.95 kB / 435.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/0.2642, allocations: 163.5 kB / 435.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002712/0.2645, allocations: 183.2 kB / 435.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.163e-05/0.2645, allocations: 32 kB / 435.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.2646, allocations: 36 kB / 436 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.017e-05/0.2647, allocations: 75.75 kB / 436.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.2649, allocations: 191.1 kB / 436.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005299/0.2654, allocations: 438.7 kB / 436.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2654, allocations: 0 / 436.7 MB, free: 1.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2654, allocations: 4 kB / 436.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.2654, allocations: 3.938 kB / 436.7 MB, free: 1.297 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.001184/0.2666, allocations: 0.6118 MB / 437.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.2666, allocations: 8.031 kB / 437.3 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001092/0.2668, allocations: 75.16 kB / 437.4 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.743e-05/0.2668, allocations: 48.7 kB / 437.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.2673, allocations: 246.4 kB / 437.7 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.2675, allocations: 106.2 kB / 437.8 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.2675, allocations: 20.38 kB / 437.8 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005859/0.2681, allocations: 338.4 kB / 438.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.2681, allocations: 7.938 kB / 438.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.919e-05/0.2682, allocations: 8 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.2682, allocations: 8 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004474/0.2686, allocations: 209.9 kB / 438.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.2702, allocations: 0.7941 MB / 439.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005736/0.2708, allocations: 258.5 kB / 439.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.271, allocations: 104.8 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.271, allocations: 7.938 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.271, allocations: 38.56 kB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.573e-06/0.271, allocations: 4 kB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001104/0.2722, allocations: 418.2 kB / 439.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001947/0.2723, allocations: 316.4 kB / 440.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.2727, allocations: 280.2 kB / 440.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.2727, allocations: 37.7 kB / 440.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.2729, allocations: 176.7 kB / 440.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.95e-05/0.273, allocations: 115 kB / 440.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001253/0.2731, allocations: 69.64 kB / 440.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.2733, allocations: 342.8 kB / 441.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.2735, allocations: 91.95 kB / 441.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003313/0.2738, allocations: 213.2 kB / 441.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004847/0.2743, allocations: 263.5 kB / 441.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2743, allocations: 4 kB / 441.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006675/0.275, allocations: 361.8 kB / 442.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.622e-05/0.275, allocations: 37.7 kB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.275, allocations: 0 / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.2752, allocations: 40.94 kB / 442.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.2762, allocations: 155.8 kB / 442.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003992/0.2802, allocations: 3.037 MB / 445.4 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003579/0.2806, allocations: 35.81 kB / 445.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.2806, allocations: 15.98 kB / 445.5 MB, free: 7.867 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.0002328/0.2808, allocations: 155.4 kB / 445.6 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-05/0.2809, allocations: 31.81 kB / 445.7 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.749e-05/0.281, allocations: 39.08 kB / 445.7 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.299e-06/0.281, allocations: 8 kB / 445.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.281, allocations: 3.938 kB / 445.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007602/0.2818, allocations: 0.6423 MB / 446.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000486/0.2823, allocations: 364.5 kB / 446.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.2823, allocations: 4 kB / 446.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/0.2836, allocations: 203.7 kB / 446.9 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-05/0.2837, allocations: 24.84 kB / 446.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/0.2837, allocations: 8 kB / 446.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003369/0.2871, allocations: 2.834 MB / 449.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2871, allocations: 8.062 kB / 449.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009445/0.288, allocations: 0.513 MB / 450.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.2882, allocations: 59.77 kB / 450.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.332e-05/0.2882, allocations: 11.98 kB / 450.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.2885, allocations: 23.92 kB / 450.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.084e-05/0.2886, allocations: 27.95 kB / 450.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.2886, allocations: 8 kB / 450.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002237/0.2888, allocations: 199.1 kB / 450.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2888, allocations: 0 / 450.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004457/0.2893, allocations: 107.9 kB / 450.7 MB, free: 2.207 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.001209/0.2905, allocations: 1.061 MB / 451.8 MB, free: 1.117 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.2921, allocations: 0.5214 MB / 452.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2921, allocations: 96 / 452.3 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.2935, allocations: 394.3 kB / 452.7 MB, free: 176 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000557/0.2941, allocations: 88.84 kB / 452.8 MB, free: 88 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005275/0.2994, allocations: 3.413 MB / 456.2 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.2998, allocations: 0.7838 MB / 457 MB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001672/0.3, allocations: 38.95 kB / 457 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001722/0.3001, allocations: 103.4 kB / 457.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3001, allocations: 0 / 457.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04332/0.3435, allocations: 9.919 MB / 467 MB, free: 1.918 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.25, allocations: 4.062 kB / 467 MB, free: 1.914 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.833361553999566]