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.001926/0.001926, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.00248/0.00248, allocations: 190.8 kB / 23.71 MB, free: 4.406 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.455/1.455, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.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.001574/0.001574, allocations: 55.91 kB / 370.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2353, allocations: 52.18 MB / 422.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003927/0.2393, allocations: 2.554 MB / 425.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.2406, allocations: 0.7828 MB / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.2408, allocations: 0 / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000285/0.2411, allocations: 75.41 kB / 426 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002904/0.2413, allocations: 138.9 kB / 426.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.2416, allocations: 87.83 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005103/0.2421, allocations: 442.4 kB / 426.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.2422, allocations: 61.64 kB / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.2424, allocations: 159.4 kB / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.2427, allocations: 163.2 kB / 427 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.423e-05/0.2427, allocations: 36 kB / 427 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.544e-05/0.2428, allocations: 36 kB / 427.1 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.454e-05/0.2429, allocations: 75.73 kB / 427.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.243, allocations: 163.2 kB / 427.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004568/0.2435, allocations: 450.2 kB / 427.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2435, allocations: 0 / 427.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2435, allocations: 0 / 427.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.2435, allocations: 0 / 427.7 MB, free: 9.211 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.001081/0.2446, allocations: 0.6157 MB / 428.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.2446, allocations: 12.03 kB / 428.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.586e-05/0.2447, allocations: 63.17 kB / 428.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.222e-05/0.2448, allocations: 44.7 kB / 428.5 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.2453, allocations: 254.4 kB / 428.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001291/0.2454, allocations: 106.2 kB / 428.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.2454, allocations: 24.36 kB / 428.8 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007445/0.2462, allocations: 0.684 MB / 429.5 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.2462, allocations: 3.938 kB / 429.5 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.216e-05/0.2462, allocations: 12 kB / 429.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2462, allocations: 4 kB / 429.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004314/0.2467, allocations: 201.9 kB / 429.7 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.2481, allocations: 0.7201 MB / 430.5 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000545/0.2486, allocations: 251 kB / 430.7 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.2488, allocations: 100.9 kB / 430.8 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.313e-05/0.2488, allocations: 12 kB / 430.8 MB, free: 5.855 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.355e-05/0.2489, allocations: 46.59 kB / 430.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.2489, allocations: 4 kB / 430.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009829/0.2499, allocations: 398.2 kB / 431.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001615/0.25, allocations: 316.4 kB / 431.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.2503, allocations: 284.2 kB / 431.8 MB, free: 4.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.684e-05/0.2504, allocations: 33.7 kB / 431.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.2505, allocations: 176.8 kB / 432.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.569e-05/0.2506, allocations: 111 kB / 432.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.2507, allocations: 73.62 kB / 432.2 MB, free: 4.328 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2508, allocations: 346.7 kB / 432.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.251, allocations: 121.4 kB / 432.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004469/0.2515, allocations: 487.6 kB / 433.2 MB, free: 3.266 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004508/0.2519, allocations: 267.5 kB / 433.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.252, allocations: 0 / 433.4 MB, free: 2.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006577/0.2526, allocations: 395.4 kB / 433.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.2526, allocations: 37.69 kB / 433.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2527, allocations: 4 kB / 433.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001572/0.2528, allocations: 40.84 kB / 433.9 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009509/0.2538, allocations: 159.9 kB / 434.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003628/0.2574, allocations: 3.003 MB / 437.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002651/0.2577, allocations: 32.05 kB / 437.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.2577, allocations: 16 kB / 437.1 MB, free: 15.05 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.0001802/0.2579, allocations: 157.9 kB / 437.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.027e-05/0.2579, allocations: 35.77 kB / 437.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.998e-05/0.258, allocations: 39.08 kB / 437.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.258, allocations: 4 kB / 437.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.258, allocations: 3.938 kB / 437.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007063/0.2587, allocations: 0.651 MB / 438 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004042/0.2591, allocations: 308.4 kB / 438.3 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2591, allocations: 3.938 kB / 438.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.2604, allocations: 215.7 kB / 438.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.759e-05/0.2604, allocations: 20.84 kB / 438.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.2605, allocations: 8.094 kB / 438.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003361/0.2638, allocations: 2.834 MB / 441.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2638, allocations: 4.031 kB / 441.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008402/0.2647, allocations: 0.5119 MB / 441.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.2648, allocations: 59.75 kB / 441.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.665e-05/0.2649, allocations: 8 kB / 441.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000261/0.2651, allocations: 23.92 kB / 442 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.2652, allocations: 23.95 kB / 442 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.2652, allocations: 12 kB / 442 MB, free: 9.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002167/0.2654, allocations: 203.1 kB / 442.2 MB, free: 9.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2654, allocations: 0 / 442.2 MB, free: 9.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004268/0.2659, allocations: 107.9 kB / 442.3 MB, free: 9.434 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.2671, allocations: 1.065 MB / 443.4 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.2686, allocations: 0.5465 MB / 443.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.2686, allocations: 0 / 443.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.27, allocations: 398.9 kB / 444.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.2705, allocations: 99.86 kB / 444.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/0.2755, allocations: 3.505 MB / 447.9 MB, free: 3.617 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001686/0.2757, allocations: 169.8 kB / 448.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001515/0.2758, allocations: 38.95 kB / 448.1 MB, free: 3.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.276, allocations: 111.4 kB / 448.2 MB, free: 3.293 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.276, allocations: 0 / 448.2 MB, free: 3.293 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04359/0.3196, allocations: 10.88 MB / 459.1 MB, free: 8.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.29, allocations: 7.625 kB / 459.1 MB, free: 8.688 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.964298017788678]