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.0008549/0.0008549, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.000821/0.000821, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9155/0.9155, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.763e-06/1.763e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.148e-05/1.324e-05, allocations: 2.281 kB / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002346/0.002359, allocations: 2.577 MB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.003475, allocations: 0.8139 MB / 327.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.003603, allocations: 4 kB / 327.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002205/0.003823, allocations: 83.28 kB / 328 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.00404, allocations: 146.9 kB / 328.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001702/0.00421, allocations: 79.83 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000383/0.004593, allocations: 454.7 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.004734, allocations: 67.94 kB / 328.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.004948, allocations: 243.5 kB / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.005104, allocations: 139.6 kB / 329.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.005145, allocations: 32 kB / 329.2 MB, free: 11.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.601e-05/0.005181, allocations: 36 kB / 329.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.087e-05/0.005232, allocations: 75.69 kB / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.749e-05/0.005329, allocations: 139.7 kB / 329.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003362/0.005665, allocations: 458.6 kB / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.005667, allocations: 0 / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.005668, allocations: 0 / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.005674, allocations: 0 / 329.9 MB, free: 10.62 MB / 298.7 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.0007357/0.00641, allocations: 0.6107 MB / 330.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.006445, allocations: 12.03 kB / 330.5 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.39e-05/0.006519, allocations: 71.12 kB / 330.5 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.742e-05/0.006576, allocations: 44.7 kB / 330.6 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.006861, allocations: 249.7 kB / 330.8 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.888e-05/0.00695, allocations: 106.2 kB / 330.9 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.006981, allocations: 24.38 kB / 331 MB, free: 9.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004372/0.007419, allocations: 0.6746 MB / 331.6 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.00743, allocations: 192 / 331.6 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/0.007452, allocations: 15.94 kB / 331.7 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.007458, allocations: 4 kB / 331.7 MB, free: 8.609 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002763/0.007734, allocations: 209.8 kB / 331.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009173/0.008652, allocations: 0.7241 MB / 332.6 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.009005, allocations: 258.9 kB / 332.8 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.009131, allocations: 100.8 kB / 332.9 MB, free: 7.273 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.009156, allocations: 7.984 kB / 332.9 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.00918, allocations: 42.56 kB / 333 MB, free: 7.215 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.273e-06/0.009182, allocations: 3.938 kB / 333 MB, free: 7.211 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006562/0.009838, allocations: 398.3 kB / 333.4 MB, free: 6.812 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.315e-05/0.009931, allocations: 324.4 kB / 333.7 MB, free: 6.422 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.01012, allocations: 284.2 kB / 334 MB, free: 6.133 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.01015, allocations: 33.7 kB / 334 MB, free: 6.094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.483e-05/0.01023, allocations: 176.8 kB / 334.2 MB, free: 5.918 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.629e-05/0.01029, allocations: 111 kB / 334.3 MB, free: 5.809 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.096e-05/0.01036, allocations: 69.44 kB / 334.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.893e-05/0.01045, allocations: 342.8 kB / 334.7 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.01059, allocations: 117.7 kB / 334.8 MB, free: 5.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.01084, allocations: 499.3 kB / 335.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/0.01111, allocations: 267.5 kB / 335.6 MB, free: 4.391 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.01112, allocations: 4 kB / 335.6 MB, free: 4.387 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004047/0.01152, allocations: 391.5 kB / 335.9 MB, free: 3.984 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.01155, allocations: 33.7 kB / 336 MB, free: 3.945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.01156, allocations: 3.984 kB / 336 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001143/0.01167, allocations: 36.84 kB / 336 MB, free: 3.902 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004645/0.01214, allocations: 163.9 kB / 336.2 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002093/0.01423, allocations: 3.006 MB / 339.2 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.01437, allocations: 35.86 kB / 339.2 MB, free: 484 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.01439, allocations: 11.94 kB / 339.2 MB, free: 472 kB / 298.7 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.0001252/0.01451, allocations: 164.3 kB / 339.4 MB, free: 300 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.036e-05/0.01455, allocations: 39.77 kB / 339.4 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.486e-05/0.0146, allocations: 35.08 kB / 339.5 MB, free: 228 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.0146, allocations: 4 kB / 339.5 MB, free: 224 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.0146, allocations: 96 / 339.5 MB, free: 224 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004277/0.01503, allocations: 0.654 MB / 340.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.01529, allocations: 312.4 kB / 340.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.01529, allocations: 0 / 340.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005938/0.01589, allocations: 211.7 kB / 340.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-05/0.01594, allocations: 28.84 kB / 340.7 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.01595, allocations: 8.125 kB / 340.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.01771, allocations: 2.822 MB / 343.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.01772, allocations: 0 / 343.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005069/0.01822, allocations: 0.5051 MB / 344 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.93e-05/0.01831, allocations: 59.75 kB / 344 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.512e-05/0.01834, allocations: 8 kB / 344.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.01847, allocations: 15.98 kB / 344.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.01853, allocations: 27.89 kB / 344.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.01854, allocations: 12 kB / 344.1 MB, free: 11.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001318/0.01868, allocations: 207.1 kB / 344.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01868, allocations: 96 / 344.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002807/0.01896, allocations: 111.8 kB / 344.4 MB, free: 10.85 MB / 314.7 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.0006992/0.01966, allocations: 1.061 MB / 345.5 MB, free: 9.758 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008275/0.02048, allocations: 0.5504 MB / 346 MB, free: 9.176 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.02049, allocations: 4 kB / 346 MB, free: 9.172 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006879/0.02117, allocations: 386.4 kB / 346.4 MB, free: 8.781 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.02153, allocations: 92.31 kB / 346.5 MB, free: 8.691 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/0.02479, allocations: 3.426 MB / 349.9 MB, free: 5.125 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.0249, allocations: 173.8 kB / 350.1 MB, free: 4.934 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.02501, allocations: 34.97 kB / 350.1 MB, free: 4.898 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.02512, allocations: 112.5 kB / 350.2 MB, free: 4.789 MB / 314.7 MB Notification: Performance of SimCode: time 6.71e-07/0.02512, allocations: 3.938 kB / 350.2 MB, free: 4.785 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.05, allocations: 10.97 MB / 361.2 MB, free: 10.07 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.134/8.184, allocations: 3.984 kB / 361.2 MB, free: 10.07 MB / 330.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/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: 10.018624282442033]