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.001697/0.001697, allocations: 123.4 kB / 17.79 MB, free: 5.281 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.001962/0.001962, allocations: 204.3 kB / 20.74 MB, free: 2.34 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.466/1.466, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001462/0.001462, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09626/0.09772, allocations: 53.32 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004119/0.1018, allocations: 2.782 MB / 429.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.1035, allocations: 0.8568 MB / 429.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.1036, allocations: 7.938 kB / 429.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.1039, allocations: 75.45 kB / 430 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003093/0.1043, allocations: 138.9 kB / 430.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002216/0.1045, allocations: 87.88 kB / 430.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005327/0.105, allocations: 438.3 kB / 430.7 MB, free: 428 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.1052, allocations: 59.39 kB / 430.7 MB, free: 364 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001806/0.1054, allocations: 167.4 kB / 430.9 MB, free: 196 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002506/0.1056, allocations: 179.2 kB / 431.1 MB, free: 16 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1897/0.2953, allocations: 33.64 kB / 431.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.2954, allocations: 34.59 kB / 431.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.087e-05/0.2955, allocations: 74.86 kB / 431.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.2957, allocations: 193.4 kB / 431.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005158/0.2962, allocations: 442.3 kB / 431.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2962, allocations: 1.5 kB / 431.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.2962, allocations: 0 / 431.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.156e-06/0.2962, allocations: 5.562 kB / 431.8 MB, free: 7.938 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.001029/0.2973, allocations: 0.692 MB / 432.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.2973, allocations: 9.969 kB / 432.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.814e-05/0.2974, allocations: 66.06 kB / 432.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.299e-05/0.2975, allocations: 48.47 kB / 432.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.2979, allocations: 302.8 kB / 432.9 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.169e-05/0.298, allocations: 56.94 kB / 433 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.351e-05/0.298, allocations: 22.03 kB / 433 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004985/0.2985, allocations: 334.2 kB / 433.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.2985, allocations: 5.422 kB / 433.3 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.947e-05/0.2986, allocations: 12.34 kB / 433.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.2986, allocations: 7.547 kB / 433.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004087/0.299, allocations: 212.4 kB / 433.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.3002, allocations: 0.8209 MB / 434.4 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005368/0.3007, allocations: 252.2 kB / 434.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/0.3009, allocations: 104.7 kB / 434.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.301, allocations: 10.52 kB / 434.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.301, allocations: 39.64 kB / 434.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.342e-06/0.301, allocations: 0 / 434.8 MB, free: 6.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001024/0.302, allocations: 488 kB / 435.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.32e-05/0.3021, allocations: 318.1 kB / 435.6 MB, free: 6.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/0.3023, allocations: 279 kB / 435.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.3024, allocations: 33.05 kB / 435.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.992e-05/0.3024, allocations: 182.3 kB / 436.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.733e-05/0.3025, allocations: 109.9 kB / 436.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.562e-05/0.3026, allocations: 64.28 kB / 436.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.663e-05/0.3027, allocations: 346.2 kB / 436.6 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.3029, allocations: 92.27 kB / 436.7 MB, free: 5.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002608/0.3031, allocations: 209 kB / 436.9 MB, free: 5.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004021/0.3035, allocations: 269.3 kB / 437.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3035, allocations: 1.812 kB / 437.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006034/0.3041, allocations: 366.4 kB / 437.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.3042, allocations: 33.02 kB / 437.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.3042, allocations: 3.938 kB / 437.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001601/0.3043, allocations: 36.05 kB / 437.6 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.3053, allocations: 162.2 kB / 437.7 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003037/0.3084, allocations: 3.231 MB / 440.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003335/0.3087, allocations: 35.61 kB / 441 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.3087, allocations: 13.56 kB / 441 MB, free: 2.113 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.0001876/0.3089, allocations: 149.7 kB / 441.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.664e-05/0.309, allocations: 33.12 kB / 441.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.986e-05/0.3091, allocations: 37.75 kB / 441.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.3091, allocations: 6.75 kB / 441.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3091, allocations: 5.703 kB / 441.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006236/0.3097, allocations: 0.6543 MB / 441.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000544/0.3103, allocations: 389.9 kB / 442.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3103, allocations: 0 / 442.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.3116, allocations: 211 kB / 442.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.326e-05/0.3117, allocations: 22.22 kB / 442.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.3117, allocations: 6.703 kB / 442.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003272/0.315, allocations: 3.041 MB / 445.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/0.315, allocations: 5.75 kB / 445.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000932/0.3159, allocations: 0.5075 MB / 446 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.3161, allocations: 140.2 kB / 446.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.3162, allocations: 8.047 kB / 446.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.3164, allocations: 18.41 kB / 446.2 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.473e-05/0.3165, allocations: 28.89 kB / 446.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.3166, allocations: 11.72 kB / 446.2 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002563/0.3168, allocations: 204 kB / 446.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3168, allocations: 0 / 446.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004842/0.3173, allocations: 101.6 kB / 446.5 MB, free: 13.53 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.00136/0.3187, allocations: 1.068 MB / 447.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001608/0.3203, allocations: 0.5203 MB / 448.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3203, allocations: 1.125 kB / 448.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.3217, allocations: 390.3 kB / 448.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.3223, allocations: 91 kB / 448.6 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005268/0.3276, allocations: 3.413 MB / 452 MB, free: 10.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000431/0.328, allocations: 0.7809 MB / 452.8 MB, free: 9.398 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002004/0.3282, allocations: 39.83 kB / 452.8 MB, free: 9.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.3284, allocations: 109.9 kB / 452.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3284, allocations: 0 / 452.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0411/0.3695, allocations: 9.693 MB / 462.6 MB, free: 6.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.64, allocations: 1.25 kB / 462.6 MB, free: 6.477 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.221577022995916]