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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 106.8 kB / 16.92 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00184/0.00184, allocations: 191.5 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001051/0.001051, allocations: 43.23 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08977/0.09084, allocations: 49.43 MB / 350.1 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003984/0.09486, allocations: 2.757 MB / 352.9 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001333/0.09622, allocations: 0.8256 MB / 353.7 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002197/0.09646, allocations: 4 kB / 353.7 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002947/0.09676, allocations: 71.41 kB / 353.8 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003744/0.09716, allocations: 134.9 kB / 353.9 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002551/0.09743, allocations: 91.81 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005254/0.09796, allocations: 442.2 kB / 354.5 MB, free: 20 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.09821, allocations: 99.36 kB / 354.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.09845, allocations: 163.4 kB / 354.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.09869, allocations: 163.3 kB / 354.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.003e-05/0.09877, allocations: 36 kB / 354.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.568e-05/0.09885, allocations: 36 kB / 354.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-05/0.09894, allocations: 83.67 kB / 355 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.09915, allocations: 191.1 kB / 355.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004015/0.09956, allocations: 438.8 kB / 355.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.09958, allocations: 0 / 355.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09959, allocations: 4 kB / 355.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.0996, allocations: 0 / 355.6 MB, free: 14.83 MB / 302.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.001052/0.1007, allocations: 0.678 MB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1007, allocations: 16.03 kB / 356.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.043e-05/0.1008, allocations: 67.19 kB / 356.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.805e-05/0.1009, allocations: 40.56 kB / 356.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003369/0.1012, allocations: 307.3 kB / 356.7 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.252e-05/0.1013, allocations: 50.83 kB / 356.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.1014, allocations: 32.25 kB / 356.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005132/0.1019, allocations: 335.3 kB / 357.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.1019, allocations: 3.938 kB / 357.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.102, allocations: 12 kB / 357.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.102, allocations: 4 kB / 357.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004391/0.1024, allocations: 214.1 kB / 357.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.1039, allocations: 0.8226 MB / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005494/0.1045, allocations: 274.3 kB / 358.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.1047, allocations: 124.8 kB / 358.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.1047, allocations: 7.984 kB / 358.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.1048, allocations: 38.56 kB / 358.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.1048, allocations: 0 / 358.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001036/0.1058, allocations: 491.2 kB / 359.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.106, allocations: 316.4 kB / 359.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002685/0.1062, allocations: 279 kB / 359.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.1063, allocations: 33.7 kB / 359.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.1064, allocations: 180.6 kB / 359.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.674e-05/0.1065, allocations: 102.5 kB / 360 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.1066, allocations: 65.69 kB / 360.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1067, allocations: 346.7 kB / 360.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.1069, allocations: 83.97 kB / 360.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.1072, allocations: 220.5 kB / 360.7 MB, free: 9.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004375/0.1077, allocations: 267.5 kB / 361 MB, free: 9.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1077, allocations: 0 / 361 MB, free: 9.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006203/0.1083, allocations: 365.6 kB / 361.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.602e-05/0.1084, allocations: 33.7 kB / 361.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1084, allocations: 0 / 361.4 MB, free: 8.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001531/0.1085, allocations: 36.84 kB / 361.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009729/0.1095, allocations: 163.8 kB / 361.6 MB, free: 8.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003532/0.1131, allocations: 3.248 MB / 364.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.1134, allocations: 31.88 kB / 364.8 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.1134, allocations: 8 kB / 364.8 MB, free: 4.91 MB / 302.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.0001704/0.1136, allocations: 157.8 kB / 365 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.357e-05/0.1137, allocations: 35.62 kB / 365 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.387e-05/0.1137, allocations: 35.08 kB / 365.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1138, allocations: 4 kB / 365.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1138, allocations: 3.938 kB / 365.1 MB, free: 4.668 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000644/0.1144, allocations: 0.65 MB / 365.7 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004083/0.1148, allocations: 389.2 kB / 366.1 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1148, allocations: 0 / 366.1 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.1162, allocations: 207.8 kB / 366.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.736e-05/0.1162, allocations: 28.78 kB / 366.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.341e-05/0.1163, allocations: 4.094 kB / 366.3 MB, free: 3.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1471/0.2634, allocations: 3.043 MB / 369.4 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.2634, allocations: 0 / 369.4 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009237/0.2643, allocations: 0.5074 MB / 369.9 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.2645, allocations: 138.6 kB / 370 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.213e-05/0.2646, allocations: 8.828 kB / 370 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.2649, allocations: 20.33 kB / 370.1 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.893e-05/0.265, allocations: 21.88 kB / 370.1 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.265, allocations: 10.69 kB / 370.1 MB, free: 24.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001956/0.2652, allocations: 201.5 kB / 370.3 MB, free: 24.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2652, allocations: 0.5625 kB / 370.3 MB, free: 24.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004606/0.2657, allocations: 103.6 kB / 370.4 MB, free: 24.71 MB / 302.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.000985/0.2666, allocations: 1.06 MB / 371.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.2682, allocations: 0.5512 MB / 372 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.2682, allocations: 1.375 kB / 372 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.2696, allocations: 411.4 kB / 372.4 MB, free: 23.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005831/0.2702, allocations: 85.94 kB / 372.5 MB, free: 23.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.2745, allocations: 3.432 MB / 375.9 MB, free: 21.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.2748, allocations: 0.781 MB / 376.7 MB, free: 21.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001817/0.275, allocations: 38.23 kB / 376.7 MB, free: 21.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.2751, allocations: 109.7 kB / 376.8 MB, free: 21.06 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2751, allocations: 0 / 376.8 MB, free: 21.06 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04278/0.3179, allocations: 9.461 MB / 386.3 MB, free: 18.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.33, allocations: 1.594 kB / 386.3 MB, free: 18.38 MB / 302.1 MB (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.0006 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) 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) Reference file matches