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.001305/0.001305, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001508/0.001508, allocations: 207.2 kB / 23.73 MB, free: 4.523 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.00158/0.00158, allocations: 47.92 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2648, allocations: 53.35 MB / 431.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003871/0.2687, allocations: 2.574 MB / 433.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.2701, allocations: 0.81 MB / 434.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.2703, allocations: 7.938 kB / 434.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002824/0.2706, allocations: 67.44 kB / 434.5 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003109/0.2709, allocations: 142.9 kB / 434.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.2711, allocations: 91.81 kB / 434.7 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005132/0.2716, allocations: 430.4 kB / 435.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.2718, allocations: 65.64 kB / 435.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.272, allocations: 171.4 kB / 435.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002494/0.2723, allocations: 179.3 kB / 435.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.854e-05/0.2724, allocations: 36 kB / 435.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.164e-05/0.2724, allocations: 32 kB / 435.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.534e-05/0.2725, allocations: 75.75 kB / 435.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.2727, allocations: 163.2 kB / 435.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004968/0.2732, allocations: 450.2 kB / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2732, allocations: 0 / 436.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2732, allocations: 4 kB / 436.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.2732, allocations: 0 / 436.3 MB, free: 1.418 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.001101/0.2743, allocations: 0.6079 MB / 436.9 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2743, allocations: 8.031 kB / 436.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.509e-05/0.2744, allocations: 67.17 kB / 437 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.194e-05/0.2745, allocations: 44.7 kB / 437 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004569/0.275, allocations: 254.4 kB / 437.3 MB, free: 384 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.2751, allocations: 110.1 kB / 437.4 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.2751, allocations: 20.38 kB / 437.4 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007497/0.2759, allocations: 0.6818 MB / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.2759, allocations: 0 / 438.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.2759, allocations: 12 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.2759, allocations: 8 kB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004657/0.2764, allocations: 201.9 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.2779, allocations: 0.7279 MB / 439 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005555/0.2784, allocations: 251.8 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.2786, allocations: 104.8 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.2787, allocations: 8 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.2787, allocations: 42.56 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.473e-06/0.2787, allocations: 0 / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001047/0.2798, allocations: 418.2 kB / 439.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001814/0.28, allocations: 312.4 kB / 440.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.2803, allocations: 288.2 kB / 440.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.2803, allocations: 33.7 kB / 440.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.2805, allocations: 180.7 kB / 440.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001014/0.2806, allocations: 107.1 kB / 440.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.2807, allocations: 69.66 kB / 440.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.2808, allocations: 346.7 kB / 441.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.2811, allocations: 117.7 kB / 441.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004881/0.2816, allocations: 499.9 kB / 441.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004647/0.282, allocations: 267.5 kB / 442 MB, free: 11.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.282, allocations: 0 / 442 MB, free: 11.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006568/0.2827, allocations: 387.5 kB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.2827, allocations: 29.7 kB / 442.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.2827, allocations: 4 kB / 442.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001508/0.2829, allocations: 36.94 kB / 442.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009659/0.2838, allocations: 159.8 kB / 442.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003736/0.2876, allocations: 3.025 MB / 445.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.2879, allocations: 35.77 kB / 445.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.2879, allocations: 12 kB / 445.7 MB, free: 7.246 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.0002045/0.2881, allocations: 160.2 kB / 445.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.107e-05/0.2882, allocations: 31.81 kB / 445.9 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.594e-05/0.2882, allocations: 39.08 kB / 445.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2882, allocations: 4 kB / 445.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.2882, allocations: 3.938 kB / 445.9 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007359/0.289, allocations: 0.6539 MB / 446.6 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004099/0.2894, allocations: 300.7 kB / 446.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.2894, allocations: 11.98 kB / 446.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.2907, allocations: 207.8 kB / 447.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.706e-05/0.2908, allocations: 24.88 kB / 447.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.477e-05/0.2908, allocations: 11.98 kB / 447.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003317/0.2941, allocations: 2.818 MB / 449.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.2941, allocations: 0 / 449.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008903/0.295, allocations: 0.5092 MB / 450.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.2951, allocations: 67.84 kB / 450.5 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.728e-05/0.2952, allocations: 8 kB / 450.5 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.2955, allocations: 23.91 kB / 450.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.028e-05/0.2955, allocations: 23.95 kB / 450.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.2956, allocations: 8.062 kB / 450.6 MB, free: 1.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002374/0.2958, allocations: 207.1 kB / 450.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2958, allocations: 0 / 450.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004419/0.2962, allocations: 107.9 kB / 450.9 MB, free: 1.641 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.001247/0.2975, allocations: 1.061 MB / 452 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.2991, allocations: 0.5429 MB / 452.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.2991, allocations: 4.062 kB / 452.5 MB, free: 15.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001403/0.3005, allocations: 398.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.0005119/0.301, allocations: 92.47 kB / 453 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004995/0.306, allocations: 3.51 MB / 456.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001674/0.3061, allocations: 173.8 kB / 456.7 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001503/0.3063, allocations: 38.95 kB / 456.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.3064, allocations: 107.4 kB / 456.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3064, allocations: 0 / 456.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04356/0.35, allocations: 10.98 MB / 467.8 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.74/13.09, allocations: 11.58 kB / 467.8 MB, free: 0.793 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.765902364975773]