Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001561/0.001561, allocations: 118.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001856/0.001856, allocations: 198 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 55.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2649, allocations: 50.55 MB / 408.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003909/0.2688, allocations: 2.76 MB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001529/0.2704, allocations: 0.8568 MB / 412.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.2706, allocations: 7.938 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002772/0.2709, allocations: 71.42 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.2712, allocations: 134.9 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.2715, allocations: 95.75 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005226/0.272, allocations: 450.1 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2722, allocations: 99.33 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002205/0.2724, allocations: 159.5 kB / 413.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.2727, allocations: 179.2 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.191e-05/0.2728, allocations: 40 kB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.003e-05/0.2728, allocations: 36 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.631e-05/0.2729, allocations: 75.73 kB / 413.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.2731, allocations: 187.1 kB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004444/0.2735, allocations: 445.2 kB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2736, allocations: 0 / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2736, allocations: 0 / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.2736, allocations: 0 / 414.3 MB, free: 11.98 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.001157/0.2747, allocations: 0.6871 MB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.2748, allocations: 12.03 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.461e-05/0.2749, allocations: 67.23 kB / 415.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.939e-05/0.275, allocations: 48.66 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.2754, allocations: 295.7 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-05/0.2755, allocations: 58.81 kB / 415.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.689e-05/0.2756, allocations: 28.33 kB / 415.5 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005053/0.2761, allocations: 339.2 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2761, allocations: 0 / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.841e-05/0.2762, allocations: 12 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2762, allocations: 4 kB / 415.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004104/0.2766, allocations: 210.1 kB / 416 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.278, allocations: 0.8227 MB / 416.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005668/0.2786, allocations: 278.9 kB / 417.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.2788, allocations: 116.8 kB / 417.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.2789, allocations: 4 kB / 417.2 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.2789, allocations: 38.56 kB / 417.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.2789, allocations: 0 / 417.3 MB, free: 8.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.00106/0.28, allocations: 499.4 kB / 417.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001543/0.2802, allocations: 316.4 kB / 418.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.2804, allocations: 283 kB / 418.4 MB, free: 7.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.2805, allocations: 33.7 kB / 418.4 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.2806, allocations: 180.7 kB / 418.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.2807, allocations: 115 kB / 418.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.2808, allocations: 69.69 kB / 418.7 MB, free: 7.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.281, allocations: 342.8 kB / 419.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/0.2812, allocations: 91.95 kB / 419.2 MB, free: 6.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.2815, allocations: 216.1 kB / 419.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004387/0.282, allocations: 256.1 kB / 419.6 MB, free: 6.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.282, allocations: 7.984 kB / 419.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006358/0.2826, allocations: 369.8 kB / 420 MB, free: 5.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.2827, allocations: 29.7 kB / 420 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2827, allocations: 4 kB / 420 MB, free: 5.801 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001428/0.2828, allocations: 32.84 kB / 420.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009472/0.2838, allocations: 163.9 kB / 420.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003578/0.2874, allocations: 3.233 MB / 423.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.2877, allocations: 35.88 kB / 423.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.2877, allocations: 15.98 kB / 423.5 MB, free: 2.039 MB / 334.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.0001767/0.2879, allocations: 165.2 kB / 423.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.113e-05/0.288, allocations: 31.81 kB / 423.7 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.795e-05/0.288, allocations: 39.08 kB / 423.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2881, allocations: 4 kB / 423.7 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2881, allocations: 3.938 kB / 423.7 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000625/0.2887, allocations: 0.6501 MB / 424.4 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000413/0.2891, allocations: 393.2 kB / 424.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.2891, allocations: 0 / 424.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/0.2904, allocations: 207.7 kB / 425 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-05/0.2905, allocations: 20.84 kB / 425 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.2905, allocations: 8 kB / 425 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00307/0.2936, allocations: 3.046 MB / 428.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2936, allocations: 0 / 428.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000912/0.2945, allocations: 0.5131 MB / 428.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.2947, allocations: 140.8 kB / 428.7 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/0.2948, allocations: 15.94 kB / 428.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.2951, allocations: 19.92 kB / 428.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.585e-05/0.2952, allocations: 19.97 kB / 428.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.2952, allocations: 8 kB / 428.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002443/0.2955, allocations: 202 kB / 429 MB, free: 12.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2955, allocations: 0 / 429 MB, free: 12.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005271/0.296, allocations: 111.9 kB / 429.1 MB, free: 11.98 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.001253/0.2973, allocations: 1.053 MB / 430.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.2989, allocations: 0.5334 MB / 430.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.2989, allocations: 4 kB / 430.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.3003, allocations: 398.4 kB / 431.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006172/0.3009, allocations: 103.4 kB / 431.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004713/0.3057, allocations: 3.413 MB / 434.6 MB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.306, allocations: 0.7838 MB / 435.3 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001704/0.3062, allocations: 38.95 kB / 435.4 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.3064, allocations: 103.4 kB / 435.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3064, allocations: 0 / 435.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03091/0.3373, allocations: 9.613 MB / 445.1 MB, free: 11.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.63, allocations: 11.45 kB / 445.1 MB, free: 11.96 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches